From 7b2ad0cb34d747401c67a106008ac4494093d17e Mon Sep 17 00:00:00 2001 From: Akatsukiro Date: Mon, 22 Jan 2024 16:17:43 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E4=BF=A1=E6=81=AF=E7=9A=84=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0f6f5c8..e54632e 100644 --- a/install.sh +++ b/install.sh @@ -213,8 +213,8 @@ setup_database() { echo -e "${green}开始配置数据库${plain}" echo -e "${yellow}请无比妥善保存以下信息${plain}" read -e -r -p "请输入数据库用户名: " db_user - read -e -r -p "请输入数据库密码: " db_password read -e -r -p "请输入数据库名称: " db_name + read -e -r -p "请输入数据库密码: " db_password mysql -e "CREATE DATABASE IF NOT EXISTS ${db_name} DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci;" mysql -e "GRANT ALL PRIVILEGES ON ${db_name}.* TO '${db_user}'@'localhost' IDENTIFIED BY '${db_password}';" mysql -e "FLUSH PRIVILEGES;"