squid代理加用户认证 用authentication helpers添加身份验证 有如下几种认证方式 :=> NCSA: Uses an NCSA-style username and password file.=> LDAP: Uses the Lightweight Directory Access Protocol=> MSNT: Uses a Windows NT authentication domain.=> PAM: Uses the Linux Pluggab
MongoDB常用命令 > show dbs #显示数据库列表 > show collections #显示当前数据库中的集合(类似关系数据库中的表)> show users #显示用户> use <db name> #切换当前数据库,如果数据库不存在则创建数据库. > db.help() #显示数据库操作命令,里面有很多的命令 > db
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
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";
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