You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

CREATE DATABASE `yxt_supervise_monitor` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */
grant select,insert,update,delete on yxt_supervise_monitor.* to monitor@"%" Identified by "monitor";
grant all privileges on *.* to 'yangxin'@'%' identified by 'yangxin123456' with grant option;
grant all privileges on yxt_supervise_monitor.* to 'monitor'@'%' identified by 'monitor' with grant option;
39.104.100.138
monitor
monitor
create user 'monitor'@'%' identified by 'monitor';
grant all privileges on yxt_supervise_monitor.* to 'monitor'@'%' with grant option;
flush privileges;
JDBC allowPublicKeyRetrieval=true
MySql8有新的安全要求
1.
create user 'username'@'host' identified by 'password';
1
username为自定义的用户名host为登录域名host为'%' IPlocalhost时表示本机IP地址paasword为密码
2.
grant all privileges on *.* to 'username'@'%' with grant option;
1
*.****username为指定的用户%
3.
flush privileges;
1
4.
#()
REVOKE ALL PRIVILEGES ON *.* FROM user_name;
REVOKE ALL PRIVILEGES ON user_name.* FROM user_name;
#
REVOKE GRANT OPTION ON *.* FROM user_name;
#
flush privileges;