Home  >  Article  >  Database  >  MySql局域网连接权限问题_MySQL

MySql局域网连接权限问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:41:311209browse

bitsCN.com
MySql局域网连接权限问题 解决办法:只需要在MySql控制台执行一条命令即可,即分配局域网连接权限命令: grant all privileges on *.* to identified by '1';解释:对192.168.1.19主机,开放对本连接中的MySql的所有数据库的所有表全部操作,用户名为joe,密码为1执行后:就可以在localhost主机上用用户joe 密码1 进行登陆了**192.168.1.19可以是局域网中的任意主机
 -----------------------------------------------------------------------------------------------命令详解:mysql> grant权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by‘密码;权限有:    select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个全部权限:all privileges或者all表示赋予用户全部权限。?表选择:数据库名.表名,*.*表示所有数据库的所有表
 例子:mysql>grant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by ‘123′;例子解释:开放,vtdc数据库的,employee表的,select,insert,update,delete,create,drop 权限,给10.163.225.87的用户,用户名joe 密码123  作者 万宗生 bitsCN.com

Statement:
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