Home > Database > Mysql Tutorial > body text

Mysql----创建新用户_MySQL

WBOY
Release: 2016-05-31 08:47:06
Original
924 people have browsed it

用途: 增加一个用户test1密码为abc,让他可以在本地主机上登录,并对所有数据库有查询、插入、修改、删除的权限。

步骤:

1. 以root用户连入MYSQL

2. 查看数据库

show databases;

3. 使用数据库mysql

use mysql;

3. 键入以下命令: 

  grant select,insert,update,delete on *.* to "test1"@“localhost” Identified by “abc”;

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!