Resetting MySQL Root Password with XAMPP on Localhost

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

    If you indeed forgot the root password to the MySQL server, you need to start it with the option skip-grant-tables. Search for the appropriate Ini-File my.ini (C:\ProgramData\MySQL Server ... or something like this) and add skip-grant-tables to the section [mysqld] like so:

    [mysqld]
    skip-grant-tables
    

提交回复
热议问题