How do I fix WordPress MySQL tables in phpMyAdmin?

2019-07-13 18:10发布

Backstory:

I used MAMP on Mac to set up a local dev server and database for creating a WordPress site. All was going well. Yesterday, the MySQL server did not start up, so I took the advice of an answer on StackOverflow to remove the ib_logfile0, ib_logfile1, and ibdata1 files from the mysql56 folder. This started a chain of events that ended up corrupting my tables on phpMyAdmin.

I kept the ib_ and database files, and after reinstalling MAMP, have placed them in MAMP/db/mysql, but now have errors with my tables in phpMyAdmin (see attachment). All of the tables have the same type of errors and are listed as 0 bytes. I've tried dropping the table, setting up a new database, downloading fresh copies of MAMP, etc. How can I fix these tables so I can export MySQL?

phpMyAdmin Errors:

Backtrace: 'Warning in ./libraries/controllers/table/TableStructureController.php#1‌​339 Illegal string offset 'Data_length' Backtrace ./libraries/controllers/table/TableStructureController.php#1‌​258: PMA\libraries\controllers\table\TableStructureController->ge‌​tTableStats() ./libraries/controllers/table/TableStructureController.php#3‌​54: PMA\libraries\controllers\table\TableStructureController->di‌​splayStructure( array, array, array, boolean false, array, array, ) ./tbl_structure.php#49: PMA\libraries\controllers\table\TableStructureController->in‌​dexAction()'

1条回答
Deceive 欺骗
2楼-- · 2019-07-13 18:37

This seems to be an issue where the table and/or column is defined in UPPERCASE. I also faced a similar issue and checked open issues on GitHub and got the following link.

https://github.com/phpmyadmin/phpmyadmin/issues/13178

I suggest that after the creation of your table or editing the structure of the table, go back to phpmyadmin home and come again to the same table. You won't see that error. This is my personal workaround.

查看更多
登录 后发表回答