Resetting MySQL Root Password with XAMPP on Localhost

后端 未结 15 1621
北荒
北荒 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 22:00

    You want to edit this file: "\xampp\phpMyAdmin\config.inc.php"

    change this line:

    $cfg['Servers'][$i]['password'] = 'WhateverPassword';
    

    to whatever your password is. If you don't remember your password, then run this command within the Shell:

    mysqladmin.exe -u root password WhateverPassword
    

    where WhateverPassword is your new password.

提交回复
热议问题