Home > Database > Mysql Tutorial > body text

mysq创建用户并分配到某个数据库上_MySQL

WBOY
Release: 2016-06-01 13:32:25
Original
943 people have browsed it

bitsCN.com


mysq创建用户并分配到某个数据库上

 

Sql代码  

 

create user 'kent'@'%' identified by 'kentpassword';  

 

create user 'kent'@'localhost' identified by 'kentpassword';  

 

grant all privileges on kentdb.* to 'kent'@'%' with grant option;  

 

grant all privileges on kentdb.* to 'kent'@'localhost' with grant option;  

bitsCN.com
Related labels:
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