Resetting MySQL Root Password with XAMPP on Localhost

后端 未结 15 1596
北荒
北荒 2020-11-30 21:11

So for the past hour I\'ve been trying to figure out how to reset my \'root\' password for MySQL as I cannot log into PHPMyAdmin. I\'ve tried changing the password in the co

15条回答
  •  再見小時候
    2020-11-30 21:43

    1. Start the Apache Server and MySQL instances from the XAMPP control panel.
    2. Now goto to your localhost.
    3. Click on user accounts -> Click on Edit privileges -> You will find an option change password just change password as you want click on go. Image are given below
    4. If you refresh the page, you will be getting a error message. This is because the phpMyAdmin configuration file is not aware of our newly set root passoword. To do this we have to modify the phpMyAdmin config file.
    5. Open terminal window (not mac default terminal please check attached image)
    6. Then Run apt-get update in the newly opened terminal.
    7. Then run apt-get install nano this will install nano
    8. CD to cd ../opt/lampp/phpmyadmin
    9. Open and Edit nano config.inc.php and save.

提交回复
热议问题