Home  >  Article  >  Database  >  Mysql数据备份与恢复,用户创建,授权_MySQL

Mysql数据备份与恢复,用户创建,授权_MySQL

WBOY
WBOYOriginal
2016-06-01 12:59:351114browse

Mysql 数据备份与恢复,用户创建,授权

1. Mysqldump >outfile.sql

2. Mysql –uxxx –pxxx

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中才有用)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn