init.sql 396 B

12345678
  1. # grant all privileges on dbname.tablename to 'userName'@'%';
  2. # 比如想给用户nacos赋予数据库test所有的表的权限并且不限制nacos用户的连接地址,代码如下
  3. CREATE USER 'omind'@'%' IDENTIFIED BY 'omind';
  4. grant all privileges on *.* to 'omind'@'%';
  5. # 刷新权限
  6. flush privileges;
  7. use mysql;
  8. alter user 'omind'@'%' IDENTIFIED WITH mysql_native_password BY 'omind2023';