Mysql configuration

Set password for root.

$mysql -u root

mysql>set password = password('root_password');

mysql>flush privilege;

 

Allow root connect to this mysql server from anywhere.

mysql>grant all privileges on *.* to 'root'@'%' identified by 'root_password';

mysql>flush privilege;

你可能感兴趣的:(mysql)