1. 程式人生 > >centos 安裝MySQL後,過遠端管理 無法連線

centos 安裝MySQL後,過遠端管理 無法連線

1.#service mysql stop


2. Mysql> /usr/bin/mysqld_safe mysqld_safe --user=mysql --skip-grant-tables --skip-networking & mysql -u root mysql


3.mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'pa4ssword'  WITH GRANT OPTION

mysql> FLUSH PRIVILEGES