导出:mysqldump -h {{ip}} -P {{port}} -u{{user}} -p{{password}} {{dbname}} {{tablename}} > {{filename}}.sql
导入:mysql -h {{ip}} -P {{port}} -u{{user}} -p{{password}} {{dbname}} < {{filename}}.sql
MySQL数据库导入导出
最新推荐文章于 2024-09-01 13:09:09 发布
导出:mysqldump -h {{ip}} -P {{port}} -u{{user}} -p{{password}} {{dbname}} {{tablename}} > {{filename}}.sql
导入:mysql -h {{ip}} -P {{port}} -u{{user}} -p{{password}} {{dbname}} < {{filename}}.sql