时间:2021-07-01 10:21:17 帮助过:13人阅读
1. Mysqldump >outfile.sql
2. Mysql –uxxx –pxxx < backfile.sql
3. Create user ‘username’@’host’ identified by ‘password’
4. Grant all privileges on DBNAME.*to ‘username’@’host’//增加权限,特别要注意DBNAME后面的*号
5. revoke all privileges on DBNAME.* to .*‘username’@’host’//取消权限特别要注意DBNAME后面的*号
6. Mysql的存储引擎类型直接的影响约束的效用(比如说外键约束,在MyISM中是没有用的,在InnoDB中才有用)