ubuntu16全程安裝mysql5.7.15!

ubuntu16全程安裝mysql5.7.15!mysql


ubuntu16安裝mysql5.7.15;sql


sudo dpkg -i  mysql-common_5.7.15-1ubuntu16.04_amd64.deb ubuntu

sudo apt-get -f installide

sudo apt-get install libaio-devspa

sudo dpkg -i mysql-community-client_5.7.15-1ubuntu16.04_amd64.deb server

sudo dpkg -i mysql-client_5.7.15-1ubuntu16.04_amd64.deb ip

sudo dpkg -i mysql-community-server_5.7.15-1ubuntu16.04_amd64.deb get

sudo dpkg -i mysql-server_5.7.15-1ubuntu16.04_amd64.deb string


查看mysql服務ubuntu16.04

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

相關文章
相關標籤/搜索