INSERT INTO mysql.user(HOST,USER,authentication_string,ssl_cipher,x509_issuer,x509_subject,select_priv) VALUES('192.168.60.%','hzx',PASSWORD('123'),'','','','Y'); UPDATE USER SET authentication_string=PASSWORD("123") WHERE USER="hzx";…
mysql>grant select on *.* to read@'%' identified by 'j'; //给予read用户只读全部库的权限 mysql>grant select,delete,update,create,drop on *.* to test@"%" identified by "1234"; //test用户对所有数据库都有select,delete,update,create,drop 权限. mysql>flu…
1.开通操作权限和表权限 GRANT CREATE,ALTER,DROP,INSERT,UPDATE,DELETE,SELECT ON interface.* TO test1@'%' identified by 'test' WITH GRANT OPTION; GRANT all ON interface.* TO test1@'%' identified by 'test' WITH GRANT OPTION; 2.移除权限 REVOKE select,CREATE,ALTER,DROP…
MySQL 5.7版本据说已经在了很大的性能提升以及做得更加安全了,想了解更多MySQL 5.7的新特性可以参考我转载叶金荣老师的MySQL 5.7的新特性说明.这里我简单演示一下MySQL 5.7的安装已经一些新特性的使用,希望大家能一起进去,一起探讨技术. MySQL 5.7的官方下载地址:http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.10-linux-glibc2.5-x86_64.tar.gz 下面简单介绍一下安装: [root@…