Home > Database > Mysql Tutorial > MySql 管理操作常用命令_MySQL

MySql 管理操作常用命令_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-31 08:46:38
Original
1093 people have browsed it

登陆mysql

mysql -u username -p
Copy after login

创建用户名配置权限,这里为该用户配置tablename表的全部权限,也可以指定

GRANT ALL PRIVILEGES ON tablename.* TO 'username'@'hostname' IDENTIFIED BY 'password';
Copy after login

删除用户权限,使用revoke操作

REVOKE ALL PRIVILEGES ON table.* FROM 'username'@'host';
Copy after login

删除一个用户

DROP USER ‘username'@'host';
Copy after login

 

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