mysqldump -uroot -p -h spread > spread.sql
当前目录下 使用root账号 将数据库spread导出到spread.sql文件里面。
导入数据语句:
mysql -uroot -p terrace < terrace.sql
导出单表(test)数据
mysqldump -uroot -pdbpasswd dbname test>db.sql;
新增索引
alter table 表名 add index 索引名 (字段名1[,字段名2 …]); navicat下可以成功

被折叠的 条评论
为什么被折叠?



