1.Communication failure during handshake. Is there a server running on localhost:3306?
解决办法:
下载最新的jdbc驱动,解压到jdk路径下的jre/lib/ext目录下,更新CLASSPATH
2. Server configuration denies access to data source
解决办法:
grant all privileges on *.* to <username>@<servername>identified by '<password>' with grant option;
flush privileges;
3.Client does not support authentication protocol requested by server
解决办法:
set password for <username>@<servername> = old_password('<password>');