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 ...

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

问题描述:Eclipse导入Maven项目后,执行 mvn clean install后,出现如下错误:[INFO] -----------------------------------------...

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

起因 阿超的电脑前几天由于特殊原因无法开机,无奈重装系统,这几天在做数据迁移的时候,碰到了一些问题,特做一个说明,也给同样碰到这个问题的朋友一个解答。  no-jdk 问题说明 Eclipse导入M...

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

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

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

maven 编译或打包的时候碰到这个问题,搞了很久才解决;记录一下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-c...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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