Home > Database > Mysql Tutorial > body text

mysql创建超级用户_MySQL

WBOY
Release: 2016-06-01 13:39:29
Original
1669 people have browsed it

bitsCN.com
mysql创建超级用户 在安装MySql后只有一个超级管理权限的用户ROOT,而且ROOT限制只能在数据库本机上使用,如果我们要远程管理MySql咋办呢?那么事实上我们需要添加一个具有超级管理权限并且可能远程访问的超级用户,我们以增加一个超级权限管理用户admin为例来说明。  你可以通过发出GRANT语句增加新用户:首先在数据库本机上用ROOT用户登录上MySql,然后: mysql>GRANT ALL PRIVILEGES ON *.* TO [email=admin@localhost]admin@localhost[/email] IDENTIFIED BY 'something' WITH GRANT OPTION;    mysql>GRANT ALL PRIVILEGES ON *.* TO [email=admin@"%]admin@"%[/email] " IDENTIFIED BY 'something' WITH GRANT OPTION;  第一句增加了一个admin用户授权通过本地机(localhost)访问,密码“something”。第二句则是授与admin用户从任何其它主机发起的访问(通配符%)。 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!