mysql创建用户授权
2015-12-01 13:05
246 查看
服务器上好多库,为了不让某用户误操作别人的数据库,给他单独建个用户并授权。
insert into mysql.user(Host,User,Password, ssl_cipher, x509_issuer, x509_subject) values("192.168.1.2","test",password("123"), '', '', '');
FLUSH PRIVILEGES;
grant all privileges on test.* to test@192.168.1.1 identified by '123';
怎么让他登录,不能让他上sh,在他web上安装个phpMyAdmin,配置文件加上$cfg['Servers'][$i]['host'] = '192.168.1.2';
让他用test 123 登陆就能操作这个test库了。
insert into mysql.user(Host,User,Password, ssl_cipher, x509_issuer, x509_subject) values("192.168.1.2","test",password("123"), '', '', '');
FLUSH PRIVILEGES;
grant all privileges on test.* to test@192.168.1.1 identified by '123';
怎么让他登录,不能让他上sh,在他web上安装个phpMyAdmin,配置文件加上$cfg['Servers'][$i]['host'] = '192.168.1.2';
让他用test 123 登陆就能操作这个test库了。
相关文章推荐
- mysql基础
- MySql之简单SQL用法整理
- mysql关系(二维表)的设计规范,范式
- mysql数据库时间戳与正常时间格式之间的转换
- mysql超时异常的问题查询
- 内联,外联,全联结,交叉联结
- Mysql的索引
- mysql的point类型查询处理
- MySQL数据库将多条记录的单个字段合并成一条记录
- 我心中的mysql dba
- pymysql与skip-networking
- mysql 命令行登录详解
- mysql 命令行登录详解
- mysql5.7 修改root密码
- MySql实现动态分页
- Mysql字符串位置函数locate,可检测是否包含字符串
- ubuntu下mysql 开启远程连接
- ubuntu14.04 mysql-workbench Connecting to MySQL server ... Native table 'performance_schema'.'session_variables' has the wrong structure错误解决
- [Windows Server 2012] 手工破解MySQL密码
- Mysql文件太大导入失败解决办法总结