Home >Database >Mysql Tutorial >Mysql cannot be connected. Can anyone help me find out why? Thank you.

Mysql cannot be connected. Can anyone help me find out why? Thank you.

WBOY
WBOYOriginal
2016-09-25 09:23:491075browse

mysql

mysql cannot be connected, please help to find out the reason, thank you
Error message:
Caused by:java.sql.SQLException:Access denied for user 'admin'@'localhost' (using password:YES)

I have been looking online for a long time and there is no one who can really solve the problem

Reply content:

The prompt means that the account does not have permission when logging in. It may be because the password entered is incorrect. It does not mean that the password is YES. It means that a password must be used to log in to this account, but the password you provided is incorrect.

-- ps: This C coin given is too fake

You entered the wrong password
This error means that you need to enter the password, but the password is incorrect

The username or password was entered incorrectly,

The username and password of the database do not correspond, so the login failed

Maybe the monitoring service has not been started. Go to Computer Services to start monitoring. It may also be that tnsnames.name is not configured.

Whether the mysql service is started. Also check whether the mysql port is listening. Only in this way can we know where the problem is

First check if the service is enabled?
Check your username and password to see if there are any login errors
The password will definitely not be yes

Use the command line first to see if you can log in

Are you connecting to the database remotely or locally? If it is remote, you need to check whether the database is open and whether the remote access permission is enabled.

http://blog.csdn.net/u013451048/article/details/52651190

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn