MySQL Workbench cannot load mysql.proc

前端 未结 16 1457
予麋鹿
予麋鹿 2020-12-23 12:50

I am starting to use MySQL Workbench tool especially for data modeling. So, the first I would like to do is reverse engineering of my existing database on web server. But I

相关标签:
16条回答
  • 2020-12-23 13:09

    I am using Centos 6.5 for Server purposes. And Mysql Workbench for ERR Diagram. I got the same error. Answers above did not work for me.

    This answer is based on changing data type for comment column. And works like charm.

    Connect mysql from console.

    use mysql;
    show create table mysql.proc;
    

    Then look for comment column. If it's datatype is char, change to text.

    You can also use any other gui for making changes.

    0 讨论(0)
  • 2020-12-23 13:10

    This happens due to schema changes required for different server versions.

    mysql_upgrade -uroot -p
    

    will filx the issue.

    Sometimes you require to uninstall server and clean its data directory. And re-install to make a fresh copy of data files.

    0 讨论(0)
  • 2020-12-23 13:11

    I used XAMPP in CentOS and manually upgraded the XAMPP except the existing data folder. With the new server software of MySQL and old database files, I got the same error.

    I did with this solution and worked fine:

    cd /opt/lampp/bin
    ./mysql_upgrade -uroot -p
    

    It looped through almost all tables in the system, but ended with a fixed issue.

    0 讨论(0)
  • 2020-12-23 13:13

    I'm using MySQL version 5.5.9 on MAC. I fixed this problem by running:

    mysql_upgrade -uroot -p
    
    0 讨论(0)
  • 2020-12-23 13:14

    I use MAMP on mac and failed to upgrade the my databases via command line as suggested above, but it worked when i used MAMP PRO->TOOLS menu options (top of OS X screen) to 'Check', 'Repair' and 'Upgrade' databases.

    I presume that the GUI supplies the underlying CLI tools with the necessary options, so that you don't have to think about what those options need to be (as opposed to running the CLI tools manually).

    Upgrading my MAMP in this way (via MAMP PRO's GUI Tools) made my (separate) Oracle mysqlWorkbench 6.0 app work just fine with my local MAMP PRO 2.0.5 databases on OS X 10.8.5 (Mountain Lion), which mysqlworkbench had said were corrupt previously (but MAMP's phpmyadmin worked fine on them whilst they were "corrupt", curiously). Now, both mysqlWorkbench 6.0 and MAMP PRO's phpmyadmin tools are both happy, and so am I.

    0 讨论(0)
  • 2020-12-23 13:20

    Using MAMP PRO (version 2.2) I tried pmking's suggestion and was still getting nowhere. So I edited the two files: /Applications/MAMP/bin/repairMysql.sh /Applications/MAMP/bin/upgradeMysql.sh

    changing 'proot' to 'p' in each. This creates a prompt for the MySQL root password and it worked!

    I hope that helps someone else.

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