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

后端 未结 8 543
灰色年华
灰色年华 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

提交回复
热议问题