安装
更新源
sudo apt-get update
更新软件
`sudo apt-get upgrade
下载
wget https://dev.mysql.com/get/mysql-apt-config_0.8.14-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.14-1_all.deb
sudo apt-get update
sudo apt-get install mysql-community-server
遇到问题 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 在mysql配置文件中添加mysqld.cnf
skip-grant-tables进入mysql
mysql刷新
FLUSH PRIVILEGES;
use mysql;
select user,host from user`