-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c3p0数据库连接池连接不了MySQL,什么原因呢 #11
Comments
我也是同样的问题,正在找解决方法 |
我可以正常运行饿 |
表的名称不对吧 |
注意database的名称,和表的名称。 |
报错的原因是,没有连接上数据库,你需要输入自己的数据库名称 |
终端可以连接MySQL,可以使用customer数据库,但是运行项目添加客户还是出现java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)问题,这是什么原因? |
项目中的数据库配置文件jdbc.properties是否配置正确呢?
… 在 2018年9月27日,上午11:06,master Po ***@***.***> 写道:
终端可以连接MySQL,可以使用customer数据库,但是运行项目添加客户还是出现java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)问题,这是什么原因?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#11 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQfn7H6ZPJN5l5gB-G16FTfJB9Rf9xK3ks5ufECvgaJpZM4QMZuJ>.
|
我把jdbc:mysql://localhost:3306/customer中的localhost改为127.0.0.1就可以了,有啥区别吗? |
没区别,你是改了本地的hosts文件吗
… 在 2018年9月27日,上午11:16,master Po ***@***.***> 写道:
我把jdbc:mysql://localhost:3306/customer中的localhost改为127.0.0.1就可以了,有啥区别吗?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#11 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AQfn7Gg86ylqR6JeLquLaB1svE3mmDtxks5ufELxgaJpZM4QMZuJ>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES).....
jdbc连上MySQL了,应该不是MySQL和root密码的问题
The text was updated successfully, but these errors were encountered: