create_user.sql 423 B

12345678910111213
  1. -- 打开 my.ini 给 [mysqld] 增加如下配置:
  2. -- sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
  3. set global read_only=0;
  4. create user 'jeesite'@'%' identified by 'jeesite';
  5. create database jeesite DEFAULT CHARSET 'utf8' COLLATE 'utf8_general_ci';
  6. grant all privileges on jeesite.* to 'jeesite'@'%' identified by 'jeesite';
  7. flush privileges;