码迷,mamicode.com
首页 > 数据库 > 详细

ubuntu16全程安装mysql5.7.15!

时间:2016-10-20 15:47:30      阅读:290      评论:0      收藏:0      [点我收藏+]

标签:ubuntu mysql deb dpkg

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




ubuntu16全程安装mysql5.7.15!

标签:ubuntu mysql deb dpkg

原文地址:http://36006798.blog.51cto.com/988282/1863817

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!