mysql -u root -p;
mysql> create database ghost;
mysql> show databases;
mysql> exit
mysql> select user(); // 查看当前登录的用户
mysql> show global variables like "port"; // 端口号
mysql默认账号
vim /etc/mysql/debian.cnf
mysql config
vim /etc/mysql/mysql.conf.d/mysqld.cnf
标签:show,mysql,vim,cnf,etc,linux
From: https://www.cnblogs.com/lbx6935/p/17135956.html