Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

后端 未结 8 497
灰色年华
灰色年华 2020-11-28 09:51

I am using 000webhost.com and I am using phpMyAdmin there. I am getting this error from MySQL when I run my PHP script as the title says:

Column count of

相关标签:
8条回答
  • 2020-11-28 10:11

    A similar error appeared in MySQL Workbench 8.0.21 after installing XAMPP 7.4.8 on Ubuntu 18.04. There were no problems using phpMyAdmin.

    Error Code: 1558 Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100108, now running 100413. Please use mysql_upgrade to fix this error
    

    Solution:

    sudo /opt/lampp/lampp start
    /opt/lampp/bin/mysql_upgrade
    

    Problem solved

    Credits: There appear to be a bug in XAMPP - https://community.apachefriends.org/f/viewtopic.php?f=17&t=78386&sid=3d3824dd0b6aa2e33c3adc73c744b4b4

    0 讨论(0)
  • 2020-11-28 10:13

    I am using xampp on Ubuntu 20.04 and the my problem that return this same message error was solved with this solution:

    1. Go to the xampp directory: cd /opt/lampp/
    2. Go to the bin directory: cd bin
    3. Execute the script: sudo ./mysql_upgrade

    Credits: https://askubuntu.com/questions/1171409/how-to-run-mysql-upgrade-when-using-xampp

    0 讨论(0)
  • 2020-11-28 10:14

    I had this error as well. I fixed it by running

    mysql_upgrade -u root -p
    

    Also, restart the mysql service by running

    service mysqld restart
    
    0 讨论(0)
  • 2020-11-28 10:25

    I had the same problem when I updated XAMPP from xampp-osx-7.2.10 to 7.3.9 in MacOS Mohave. So the solution was:

    Find the file mysql_upgrade in "Macintosh HD⁩ ▸ ⁨Applications⁩ ▸ ⁨XAMPP⁩ ▸ ⁨xamppfiles⁩ ▸ ⁨bin⁩" and double click on it.

    0 讨论(0)
  • 2020-11-28 10:32

    This error happens when a bad upgrade is done. For example, it happens if you upgrade from 5.0 to 5.1 but don't run the mysql_upgrade script; or, in rare cases, it probably happens if you directly upgrade from 5.0 to 5.5. (Many people does this, but such updrages are not officially supported) You say you are using a hosting service - well, I think that you should create a ticket and tell them about the problem. If you don't have the SUPER privilege, there is nothing you can do. But if you have that right, simply run mysql_upgrade: http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html

    0 讨论(0)
  • 2020-11-28 10:32

    I had the same problem when I updated the mysql server from 5.5 to 5.7 in Debian 8 (jessie). In my case, it worked fine when I executed the follow command:

    mysql_upgrade --force -uroot -p
    

    Hope it will help you

    0 讨论(0)
提交回复
热议问题