Resetting MySQL Root Password with XAMPP on Localhost

后端 未结 15 1649
北荒
北荒 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:45

    Steps:

    1. Open your phpMyadmin dashboard
    2. go to user accounts
    3. on the user section Get the root user and click [ Edit privileges ]
    4. in the top section you will find change password button [ click on it ]
    5. make a good pass and fill 2 pass field .
    6. now hit the Go button.

    7 . now open your xampp dir ( c:/xampp ) --> 8 . to phpMyadmin dir [C:\xampp\phpMyAdmin]

    1. open [ config.inc.php ] file with any text editor

    10 .find [ $cfg['Servers'][$i]['auth_type'] = 'config'; ]line and replace 'config' to ‘cookie’

    1. go to [ $cfg['Servers'][$i]['AllowNoPassword'] = true; ] this line change ‘true’ to ‘false’.

    last : save the file .

    here is a video link in case you want to see it in Action [ click Here ]

提交回复
热议问题