浏览代码

chore[litemall-db]: 数据库脚本设置允许任意ip访问。

Junling Bu 6 年之前
父节点
当前提交
d2ff854e25
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      litemall-db/sql/litemall_schema.sql

+ 3 - 3
litemall-db/sql/litemall_schema.sql

@@ -1,8 +1,8 @@
 drop database if exists litemall;
-drop user if exists 'litemall'@'localhost';
+drop user if exists 'litemall'@'%';
 -- 支持emoji:需要mysql数据库参数: character_set_server=utf8mb4
 create database litemall default character set utf8mb4 collate utf8mb4_unicode_ci;
 use litemall;
-create user 'litemall'@'localhost' identified by 'litemall123456';
-grant all privileges on litemall.* to 'litemall'@'localhost';
+create user 'litemall'@'%' identified by 'litemall123456';
+grant all privileges on litemall.* to 'litemall'@'%';
 flush privileges;