2006 mysql 服务器已离线,MySQL“#2006 - MySQL服务器已经消失”在phpMyAdmin

当尝试使用phpMyAdmin打开MySQL数据库时,遇到错误#2006-MySQL server has gone away。问题出现在MySQL升级到5.6之后,其他数据库不受影响。通过在终端运行`mysql_upgrade -u root -p`并输入密码,等待升级完成,成功解决了这个问题。
摘要由CSDN通过智能技术生成

The Problem

My MySQL database works fine for my web application. However, when I try to open the database with phpMyAdmin, I get this error message:

#2006 - MySQL server has gone away

And phpMyAdmin disconnects back to the login screen. Other databases work fine.

My ax_allowed_packet is set to 16. I also tried 64, but it didn't work.

Also this error occured eventually. The database is about 3 MB in size, so not very big.

Used Software

Debian Squeeze x64

MySQL (current version)

phpMyAdmin (current version)

Question

How can I fix this error in order to view and edit my database in phpMyAdmin again?

解决方案

I finally found it.

Apparently, there were some incompatibility issues after upgrading to MySQL 5.6.

In order to check for such issues and fix them, you will need to do a MySQL Upgrade.

Just run the following on a terminal:

mysql_upgrade -u root -p

Enter your password, and wait until the upgrade finishes.

This fixed the problem for me.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值