在执行 mysqldump 时,会跳过一些表,因为 mysqldump 将它们视为视图而不是表,尽管它们是 100% 的表。
所以对于某些表,它看起来像
-- Retrieving table structure for table services...
-- Sending SELECT query...
-- Retrieving rows...
Run Code Online (Sandbox Code Playgroud)
对于一些:
-- Retrieving view structure for table users...
-- It's base table, skipped
Run Code Online (Sandbox Code Playgroud)
我看到这个问题已经提到过几次了,但是没有解决方案。
显示创建表用户;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
...
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8915 DEFAULT CHARSET=utf8
Run Code Online (Sandbox Code Playgroud)
SHOW TABLE STATUS LIKE 'users' \G;
*************************** 1. row ***************************
Name: users
Engine: InnoDB
Version: 10 …Run Code Online (Sandbox Code Playgroud)