如何创建mysql数据库模式的文件?

时间:2021-06-14 12:45:12

I need some help about how to dump only database schema, not the data.

我需要一些关于如何只转储数据库模式而不是数据的帮助。

Our database already has data.But i want to create a database dump only for schema with out data.

我们的数据库已有data.But我想只为没有数据的模式创建数据库转储。

I think mysqldump dumps schema along with data. Are there any options i can specify which will let me to dump schema without data.

我认为mysqldump会将模式与数据一起转储。是否有任何我可以指定的选项可以让我在没有数据的情况下转储模式。

1 个解决方案

#1


3  

mysqldump --no-data DATABASENAME

mysqldump --no-data DATABASENAME

Or use MysqlAdministrator, phpMyAdmin or any other tool.

或者使用MysqlAdministrator,phpMyAdmin或任何其他工具。

#1


3  

mysqldump --no-data DATABASENAME

mysqldump --no-data DATABASENAME

Or use MysqlAdministrator, phpMyAdmin or any other tool.

或者使用MysqlAdministrator,phpMyAdmin或任何其他工具。