php - Reverting a grant privileges statement in MySQL -


So I'm hacking on some software and I decide to run MySQL order

 * At all private. * Identify 'password' by 'root' @ '%';  

Then I came to know that my bug tracker uses the same local MySQL server on my development PC.

Good darn ..

Now when I try to use my bug tracker (mantis), I get an error message.

Application Error # 400 Database Connection Failed. Error # 1045 from database: User denied access to 'root' @ 'localhost' (using password: no). To return to the previous page, please use the "back" button in your web browser, you can correct any problems that are being recognized in this error or you can select another action. You can click on an option from the menu bar to go directly to a new section.

The previous non-fatal error occurred. Follow the content of the page. System Warning: 'mysql_connect () [function.mysql-connect]: User denied access to' root '@' localhost '(using password: no)' in 'C: \ xampp \ Htdocs \ mantis \ library \ adodb \ drivers \ adodb-mysql.inc.php 'line 365

I checked inside php file and is the line where the MySQL connection is established

  function_connect ($ argHostname, $ argUsername, $ argPassword, $ argDatabasename) {if (! Below ($-this-> port)) $ argHostname = ":". $ This- & gt; Harbour; If (ADODB_PHPVER & gt; = 0x4300) $ this- & gt; _connectionID = mysql_connect ($ argHostname, $ argU name, $ argPassword, $ this-> connect connect, $ this-> client flags); Else if (ADODB_PHPVER> = 0x4200) $ this- & gt; _connectionID = mysql_connect ($ argHostname, $ argU name, $ argPassword, $ this-> resonance connect); And $ this- & gt; _connectionID = mysql_connect ($ argHostname, $ argUsername, $ argPassword); If returned ($ this-> _connectionID === incorrect); If ($ argDatabasename) $ $ - Will return - SelectDB ($ argDatabasename); Back true; }  

By using the MySQL workspace, I can see that

show the crawl;

grant

This first line appears to be criminal .. I think ...

Is there a way to get it back?

Thank you :)

I have been able to work with Manitus again By

SET password for the root @ localhost = PASSWORD (''); Recommended


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -