phpmyadmin 忘記密碼怎麼辦?Linux 經過命令重設 phpmyadmin root 密碼

phpmyadmin 忘記密碼,使用如下代碼進行修改:
1.中止mysql服務:php

/etc/init.d/mysql stop

2.跳過驗證啓動MySQLmysql

/usr/local/mysql/bin/mysqld_safe –-skip-grant-tables >/dev/null 2>&1 &

3.準備從新設置新密碼sql

/usr/local/mysql/bin/mysql -u root mysql

4.重置新密碼code

update user set authentication_string = Password('新密碼') where User = 'root';

5.更新權限ip

flush privileges;

6.退出string

exit;

7.從新啓動MYSQLit

killall mysqld
/etc/init.d/mysql start

endio

相關文章
相關標籤/搜索