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

前端 未结 16 856
萌比男神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:54

    Simply edit my.ini file in C:\xampp\mysql\bin path. Just add:

    skip-grant-tables
    

    line in between lines of # The MySQL server [mysqld] and port=3306. Then restart the MySQL server.

    Looks like:

    0 讨论(0)
  • 2020-11-22 15:55

    Use mysql -u root -p It will ask for password, insert password and enter.

    0 讨论(0)
  • 2020-11-22 15:59
    mysqladmin -u root -p password
    

    enter your current password

    then

    enter your new password

    0 讨论(0)
  • 2020-11-22 16:01

    Make sure the MySQL service is running on your machine, then follow the instructions from MySQL for initially setting up root (search for 'windows' and it will take you to the steps for setting up root):

    http://dev.mysql.com/doc/refman/5.1/en/default-privileges.html

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