faiz14

fix cannot login phpmyadmin

Feb 17th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. Stop the MySQL Server.
  2.  
  3. sudo /etc/init.d/mysql stop
  4.  
  5. Start the mysqld configuration.
  6.  
  7. sudo mysqld --skip-grant-tables &
  8.  
  9. Login to MySQL as root.
  10.  
  11. mysql -u root mysql
  12.  
  13. Replace YOURNEWPASSWORD with your new password
  14.  
  15. UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
Add Comment
Please, Sign In to add comment