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