0

I tried to run my application on my localhost, but I am stuck with some problem.

Someone told me that I would need to give password for Users and Privileges. As a result, I have tried giving all permissions to users in Users and Privileges. But I don't know the username and password clearly (due to some problem).

Can I disable MySQL protection allowing access without any authentication in phpmyadmin (XAMPP)?

This is my error (during execution at localhost):

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Unheilig
  • 16,196
  • 193
  • 68
  • 98
Boopathi Raja
  • 19
  • 2
  • 6

1 Answers1

0

First, authentication is not done at the phpMyAdmin level but at the MySQL level. To disable MySQL server's "protection" (authentication) you have to restart the MySQL server with a special option. So you have to find, depending on the XAMPP version, where the my.ini file is located, then edit it as described in How to start MySQL with --skip-grant-tables? (in the answer by tonycoupland) and restart the MySQL service.

Community
  • 1
  • 1
Marc Delisle
  • 8,879
  • 3
  • 29
  • 29