📜  mysql xampp 重置 root 密码 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:10.484000             🧑  作者: Mango

代码示例1
/* Go to the phpMyAdmin panel and select the SQL tab.
** Then run this lines:
*/
UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root';
FLUSH PRIVILEGES;

/* Open the file C:\xampp\phpMyAdmin\config.inc.php
** Search for this line and set the new password.
*/
$cfg\['Servers'\]\[$i\]['password'] = 'new_password'