1. 程式人生 > >centos6.8安裝mysql並配置遠程登陸

centos6.8安裝mysql並配置遠程登陸

配置 server ack span body 改密 mmu pos spa

1.wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

2.yum install mysql-community-release-el6-5.noarch.rpm

3.yum install mysql-community-server

4.service mysqld start

5.mysql

6.修改密碼

  mysql> SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘newpass‘);

7.

  grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘上一部的newpass

‘ with grant option;

  FLUSH PRIVILEGES;

8.service mysqld restart

  

centos6.8安裝mysql並配置遠程登陸