From d2ff854e251215ee37d07c9d5dd73b4b9f8cbe45 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Wed, 8 Jan 2020 21:32:24 +0800 Subject: [PATCH] =?UTF-8?q?chore[litemall-db]:=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=84=9A=E6=9C=AC=E8=AE=BE=E7=BD=AE=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E4=BB=BB=E6=84=8Fip=E8=AE=BF=E9=97=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-db/sql/litemall_schema.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litemall-db/sql/litemall_schema.sql b/litemall-db/sql/litemall_schema.sql index dae8ead5..e4c9457e 100644 --- a/litemall-db/sql/litemall_schema.sql +++ b/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; \ No newline at end of file