Home > Database > Mysql Tutorial > 解决:java.sql.SQLException: Access denied for user '&a

解决:java.sql.SQLException: Access denied for user '&a

WBOY
Release: 2016-06-07 15:50:01
Original
1330 people have browsed it

这些天刚学习MySQL,今天在MyEclipse下连接数据库,可是连接的代码检查了几遍,老师出现java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES)的错误。 于是请教谷歌、百度。都说是密码错误,让改密码。。。。 可是明明密码

这些天刚学习MySQL,今天在MyEclipse下连接数据库,可是连接的代码检查了几遍,老师出现java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES)的错误。

解决:java.sql.SQLException: Access denied for user '&a


于是请教谷歌、百度。都说是密码错误,让改密码。。。。  可是明明密码就是没有错误的呀!

还有说是权限低,让改权限。查资料,权限也是最大的!!

试了下,无果。甚是郁闷!!于是搁置了,继续往下学习!

过了不少很久,一次偶然一瞥。哎,自己太马虎了! 看图。。。


解决:java.sql.SQLException: Access denied for user '&a

原来是自己将user写成了uesr,简直太不仔细了。吸取教训!

仔细很重要呀!


http://blog.csdn.net/xn4545945

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template