Communication failure during handshake. Is there a server running on localhost:3306?

原创 2006年06月01日 16:53:00

今天重新部署我的工作环境,是一个Apache+PHP+Tomcat+Mysql的集成环境。

我有个追新的毛病,看到Mysql的新的stable版本释放出来我就下了一个,安装上了。其它的几个服务都调试通过了,但是Tomcat和 Mysql却连结不上,提示错误Communication failure during handshake. Is there a server running on localhost:3306?,当时以为是mm.mysql的驱动的问题,去网上察看了一下,这个2.0.4的驱动居然是2001年的,新的版本叫做作Connector/J 3.x了,。以为是这个驱动的问题,但询问了朋友,说他们那个工作正常。

Google一下吧。

先是国内有个地方说是因为root将默认的空密码设置了密码造成这个问题,我重新建立了一个用户,但是还是抱这个错误。

继续,结果在Mysql.com的官方网站上看到这个解释,是因为新的Mysql的认证机制发生了一些变化造成的,解决方法如下:

I'd to change the authentication method at the mysql server:
set password for <username>@<servername> = old_password('<password>');

将红色那部分敲进去就解决了,呵呵,特此记录一下。

Jboss提示:Server already running on localhost

最近在做项目中,经常遇到JBoss报如下提示:Server already running on localhost。这时Jboss显示已启动,但页面显示不出来。提示中给出了两种解决办法,运行新的服务...

Jboss Server Error:Server already running on localhost

使用Jboss的时候报如下错误: 在网上寻求帮助,只找到了[一篇帖子],英文的,仔细阅读帮助不大。网上没有太多这样的帖子,那就自己对上面的问题做个分析,然后一篇帖子吧,人人为我,我也要为人人嘛...

Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法

接上一篇继续Server2012R2的问题,因为自己先在R2上部署的IFD报错后上网查了很多资料,但毕竟R2是新出的CRM2013也是新出的,网上基本还没有相关的问题反馈,基本都是2012以前的系统版...

Errors occurred during the build.Errors running builder 'Checkstyle Builder' on

每次保存项目时总是报错:Errors occurred during the build.Errors running builder 'Checkstyle Builder' on project ...

Errors occurred during the build. Errors running builder 'Integrated External Tool Builder' on proje

Errors occurred during the build. Errors running builder 'Integrated External Tool Builder' on proje...

On NTFS there is metadata (data which "lives above" your data).

On NTFS there is metadata (data which "lives above" your data).Metadata are special files that the N...

Eclipse中,No compiler is provided in this environment. Perhaps you are running on a JRE rather than a

Eclipse中,No compiler is provided in this environment. Perhaps you are running on a JRE rather than...

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK

使用Maven中的maven-build来本地调试项目,启动后在console出现如下错误信息 [ERROR] Failed to execute goal org.apache.maven.plug...

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

控制台输出的错误信息如下:[INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifec...

XAMPP Apache Service is already running on port 443

20:44:57 [main] Initializing Control Panel 20:44:57 [main] Windows Version: Windows 7 Professional ...
  • jaray
  • jaray
  • 2012年09月20日 15:13
  • 4247
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Communication failure during handshake. Is there a server running on localhost:3306?
举报原因:
原因补充:

(最多只允许输入30个字)