Resetting ROOT password in MySQL 5.6

前端 未结 9 1951
名媛妹妹
名媛妹妹 2020-11-27 17:24

I have been following these instructions for resetting root password for local installation of MySQL 5.6 on Windows 7 laptop.

I stopped

9条回答
  •  我在风中等你
    2020-11-27 17:53

    In case if you have Xampp installed.

    1. Goto C:\xampp\mysql\bin
    2. Open my.ini file
    3. Put skip-grant-tables under [mysqld]
    4. Goto windows services and stop mysql service
    5. Trigger this command from command prompt C:\xampp\mysql\bin\mysql
    6. Now, reset the root password with the MySQL query update mysql.user set password=PASSWORD('root') where user='root';
    7. Exit the command prompt.
    8. Restart the mysql windows service that was turned off in step 4.
    9. Now you will be able to login to mysql using password as root.

提交回复
热议问题