mysqldump exports only one table

前端 未结 4 1902
清酒与你
清酒与你 2021-01-29 23:58

I was using mysqldump to export the database, like this:

mysqldump -u root -ppassword my_database > c:\\temp\\my_database.sql

Somehow, it on

4条回答
  •  灰色年华
    2021-01-30 00:28

    In case you encounter an error like this

    mysqldump: 1044 Access denied when using LOCK TABLES

    A quick workaround is to pass the –-single-transaction option to mysqldump.

    So your command will be like this.

    mysqldump --single-transaction -u user -p DBNAME > backup.sql

提交回复
热议问题