忘記MySQL的root用戶密碼的解決方法

1. 中止運行的MySQL進程,後配置跳過受權表啓動MySQL service mysqld stop 1.1. 先打開一個Terminal,在 /usr/local/mysql/bin ,下執行: sudo mysqld_safe --skip-grant-tables 1.2. 或者 在/etc/my.cnf文件的[mysqld]下添加: skip-grant-tables, 重啓mysql服
相關文章
相關標籤/搜索