时间:2021-07-01 10:21:17 帮助过:3人阅读
visible > mysql -uroot -p
visible > mysqladmin -uroot password "**"
visible > mysql -uroot -p
MariaDB > GRANT ALL PRIVILEGES ON *.* TO {账户名}@"{ip}" IDENTIFIED BY "***" WITH GRANT OPTION;
MariaDB > flush privileges;
visible > mysql -uroot -p
MariaDB > CREATE DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
visible > mysql -uidcv -p
mariadb > use tbs_system_db
mariadb > set names utf8;
mariadb > source /webapp/**.sql
visible > mysql -uroot -p
MariaDB [(none)]> show databases; //查看数据库
MariaDB [(none)]> drop database ***; //删除数据库
MariaDB [(none)]> show variables like ‘character_set%‘; //查看数据库的字符设置
//查看连接进程
SHOW FULL PROCESSLIST
linux 常用Mysql脚本命令
标签:tab root adb show variable 创建 ons ble one