reset root password with wrong mysql config

后端 未结 3 2012
轻奢々
轻奢々 2020-12-01 03:37

I have installed xampp, I did the security settings, but after a time I have forgot the root password. I have google it, how to reset, the problem seems he can\'t create low

相关标签:
3条回答
  • 2020-12-01 03:40

    I'd suggest to forget the bat file and do it manually:

    • Go to your xampp\mysql\bin\ folder
    • Edit my.ini and insert skip-grant-tables below [mysqld]
    • Restart MySQL
    • Set new password for your root user by running UPDATE mysql.user SET Password=PASSWORD('new_password') WHERE User='root' in phpMyAdmin in the mysql database (or just leave it like this if MySQL cannot be accessed from remote hosts)
    0 讨论(0)
  • 2020-12-01 03:42

    Here is a great link

    In short goto

    http://localhost/security/

    and there you can reset the password. It is web interface rather than you have to look for a file somewhere.

    0 讨论(0)
  • 2020-12-01 03:55

    I face the same problem & simply update the password with below SQL query With HeidiSQL (Free mySQL editor).

    UPDATE mysql.user SET Password=PASSWORD('your_password') WHERE User='root'
    

    Then, stop mysql from xampp control panel & start it again.

    0 讨论(0)
提交回复
热议问题