使用前須先更改密碼
1.
sudo /usr/local/mysql/support-files/mysql.server stop sudo mysqld_safe --skip-grant-tables
2.In command line
mysql -u root UPDATE user SET authentication_string=PASSWORD('xxxxx') where USER='root';
3.
sudo /usr/local/mysql/support-files/mysql.server stop sudo /usr/local/mysql/support-files/mysql.server start
Last updated 5 years ago
Was this helpful?