Home > Database > Mysql Tutorial > MySQL安全管理_MySQL

MySQL安全管理_MySQL

WBOY
Release: 2016-06-01 13:10:38
Original
1109 people have browsed it

1、创建用户 

create user linda identified by 'linda'

 

2、查看权限

show grants for linda

 

3、授予权限

  grant select on demo.* to linda

 

4、更改密码

  set password for linda = Password('newbaby');

 

5、dump数据

   mysqldump -uusername  dataname -h host -P port -ppassword >db.sql

   导出表结构

   mysqldump -u root -p -d --add-drop-table db>d:/db.sql

   -d 没有数据 --add-drop-table 在每个create语句之前增加一个drop table 

  导入数据

  登录后,source d:/db.sql

 

 

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template