Access denied for user 'root@localhost' (using password:NO)

前端 未结 16 853
萌比男神i
萌比男神i 2020-11-22 15:30

I\'m new to MySQL, I\'m trying to run WordPress in my Windows desktop and it needs MySQL.

I install everything with Web Platform Installer which is prov

16条回答
  •  孤街浪徒
    2020-11-22 15:49

    For MySQL 5.7. These are the below steps:

    Stop your MySQL server completely. This can be done by accessing the Services window inside Windows XP and Windows Server 2003, where you can stop the MySQL service.

    Open your MS-DOS command prompt using "cmd" inside the Run window. Inside it navigate to your MySQL bin folder, such as C:\MySQL\bin using the cd command.

    Execute the following command in the command prompt: mysqld.exe -u root --skip-grant-tables

    Leave the current MS-DOS command prompt as it is, and open a new MS-DOS command prompt window.

    Navigate to your MySQL bin folder, such as C:\MySQL\bin using the cd command.

    Enter mysql and press enter.

    You should now have the MySQL command prompt working. Type use mysql; so that we switch to the "mysql" database.

    Execute the following command to update the password:

    update user set authentication_string=password('1111') where user='root';

提交回复
热议问题