Why have a lost tables when moving from phpmyadmin to local MySQL Workbench

纵然是瞬间 提交于 2019-12-12 02:53:12

问题


I have a Huge database in phpmyadmin. It have 1500 tables because I'm using Drupal. I used the command

mysqldump -u [username] -p[password] [databasename] > [filename.sql]

To create a .sql file on the server. It took some time but was 100% complete. I then tried to copy the file to my local machine with Filezilla, it kept crashing and stopping so I used the command

scp [my_username]@[my_host]:[filename.sql] /some/local/directory.sql

This took a couple of hours but also said It was 100% complete. After this I opened MySQL workbench and imported from the file on my local machine. When the import was finished I have 1024 tables. I thought this was less than it should be and checked phpmyadmin with this sql command

SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = <MyDatabaseName>;

This command returned table like this

So from this result I'm missing 484 tables. Where have they gone? are they meaningless tables or will this cause problems if I try to deploy?

My thoughts were that one of these commands leave behind some tables that Drupal creates because it sees them as pointless or broken.

Any help is really appreciated.

来源:https://stackoverflow.com/questions/31141585/why-have-a-lost-tables-when-moving-from-phpmyadmin-to-local-mysql-workbench

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