หน้า 1 จากทั้งหมด 1

รีเซ็ตรหัสผ่าน root MySQL บน Ubuntu Linux แล้วแต่ยังเข้าไม่ได้

โพสต์แล้ว: 02/04/2016 2:35 pm
โดย M034
ทำตามวิธีข้างล่างแล้วแต่ยังเข้า 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;

ทำตามแล้วเป็นแบบรูปด้านล่างค่ะ
te.png
te.png (39.35 KiB) Viewed 5667 times

Re: รีเซ็ตรหัสผ่าน root MySQL บน Ubuntu Linux แล้วแต่ยังเข้าไม่ได้

โพสต์แล้ว: 03/05/2016 10:47 am
โดย sclass26
จะลองทำตามดูครับ