ubuntu16全程安装mysql5.7.15!

前端之家收集整理的这篇文章主要介绍了ubuntu16全程安装mysql5.7.15!前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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> use MysqL;


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

猜你在找的Ubuntu相关文章