ubuntu16全程安装MysqL5.7.15!
ubuntu16安装MysqL5.7.15;
sudo dpkg -i MysqL-common_5.7.15-1ubuntu16.04_amd64.deb
sudo apt-get -f install
sudo apt-get install libaio-dev
sudo dpkg -i MysqL-community-client_5.7.15-1ubuntu16.04_amd64.deb
sudo dpkg -i MysqL-client_5.7.15-1ubuntu16.04_amd64.deb
sudo dpkg -i MysqL-community-server_5.7.15-1ubuntu16.04_amd64.deb
sudo dpkg -i MysqL-server_5.7.15-1ubuntu16.04_amd64.deb
查看MysqL服务
sudo service MysqL status
MysqL -uroot -proot
出错,
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
修改root密码:
sudo MysqLd_safe --skip-grant-tables &
MysqL -uroot;
MysqL> update user set authentication_string=password('root') where user='root';
MysqL> flush privileges;
exit
启动MysqL服务:
sudo service MysqL start
原文链接:https://www.f2er.com/ubuntu/356505.html