Home > database >  Java. SQL. SQLException: Access denied for user 'root' @ 'localhost' (using pass
Java. SQL. SQLException: Access denied for user 'root' @ 'localhost' (using pass

Time:11-26

I have solved the two times, in ensuring that drive, password, under the condition of plane would have no problem, or access denied, generally is MySQL privileges, use the most stupid way, add MySQL file into a compressed file (for convenience) behind, and then win + r, type regedit and delete registry MySQL, specific in
1) HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL - directory delete

(2) the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL - directory delete

(3) HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL - directory delete
Not all directory, are generally need to delete a MySQL file, and then the next step is to delete MySQL file (to stop the MySQL service to delete the net stop MySQL), reinstall MySQL, decompression, in the original position, the file name, format as before, as far as possible (it's not in the configuration system environment variables), which can be installed directly in the DOS command (administrator command to start the command window), installation configuration method refer to the https://blog.csdn.net/queen00000/article/details/90727996, configured to library, may need to be repeated several times to just go

Error of image:
Successful connection picture:
When you can't, you can try this stupid
Come on, the keyboard!!!!!!!
  • Related