sudo apt-get install mysql-server
MySQL server卸载命令: sudo apt-get autoremove mysql-server
sudo apt-get install mysql-client
MySQL client卸载命令: $sudo apt autoremove mysql-client
sudo apt-get install libmysqlclient-dev
libmysqlclient-dev卸载命令: sudo apt autoremove libmysqlclient-dev
$sudo netstat -tap |grep mysql
mysql -u root -p
sudo vim /etc/mysql/debian.cnf
命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password';
drop user 用户名@’%’;
drop user 用户名@ localhost;
update mysql.user set authentication_string=password('password') where user='name'and Host = 'localhost'; flush privileges; 暂时还不会修改root的密码
sudo mysql -u root -p mysql,用空密码进入mysql管理命令行
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P