รีเซ็ตรหัสผ่าน root MySQL บน Ubuntu Linux แล้วแต่ยังเข้าไม่ได้
โพสต์แล้ว: 02/04/2016 2:35 pm
ทำตามวิธีข้างล่างแล้วแต่ยังเข้า phpmyadmin ไม่ได้ค่ะ มีวิธีอื่นไหมค่ะ ช่วยแนะนำด้วยค่ะ
reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.
1.Stop the MySQL Server.
sudo /etc/init.d/mysql stop
2.Start the mysqld configuration.
sudo mysqld --skip-grant-tables &
3.Login to MySQL as root.
mysql -u root mysql
4.Replace YOURNEWPASSWORD with your new password!
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
ทำตามแล้วเป็นแบบรูปด้านล่างค่ะ
reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.
1.Stop the MySQL Server.
sudo /etc/init.d/mysql stop
2.Start the mysqld configuration.
sudo mysqld --skip-grant-tables &
3.Login to MySQL as root.
mysql -u root mysql
4.Replace YOURNEWPASSWORD with your new password!
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
ทำตามแล้วเป็นแบบรูปด้านล่างค่ะ