reset root password with wrong mysql config

后端 未结 3 2053
轻奢々
轻奢々 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)

提交回复
热议问题