mysql数据库报错The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
1.去服务里查看,发现没有mysql服务,mysql数据库安装没有问题。
2.打开命令提示符,进入mysql安装目录的bin目录(cd C:\Program Files\MySQL\MySQL Server 5.7\bin),运行以下命令mysqld.exe -install ,提示权限不足。
3.关闭,重新以管理员身份打开命令提示符,重复以上操作
出现service successfully installed 说明操作成功
4.重新运行mysql服务
https://blog.csdn.net/fan_lulu/article/details/82011994
mysql数据库报错The last packet sent successfully to the server was 0 milliseconds ago. The driver has not
最新推荐文章于 2023-09-07 13:13:07 发布