How do I fix WordPress MySQL tables in phpMyAdmin?

家住魔仙堡 提交于 2019-12-12 17:24:00

问题


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:


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.



来源:https://stackoverflow.com/questions/41636575/how-do-i-fix-wordpress-mysql-tables-in-phpmyadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!