您的位置:首页 > 编程语言 > Qt开发

Error while performing database login with the com.mysqtest driver

2016-12-20 10:15 856 查看
Error while performing database login with the com.mysqtest driver: Communications link failure. The last packet sent successfully to the server was 0 milliseconds ,the driver has not received any packets from the server.

解决方式如下
使用cmd调出dos终端,先自己连接一次数据库,看是否成功
C:\Users\Administrator>mysql -uroot -p test
Enter password: ******
ERROR 2003 (HY000): Can't connect to MySQL

C:\Users\Administrator>mysql -uroot -p
Enter password: ******
ERROR 2003 (HY000): Can't connect to MySQL

C:\Users\Administrator>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。

C:\Users\Administrator>mysql -uroot -p
Enter password: ******


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  数据库
相关文章推荐