mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 18:01:37 +00:00
use mysql8 instead of mariadb for vito
This commit is contained in:
parent
543cc45e65
commit
71f9dabc24
@ -117,11 +117,11 @@ export V_MARIADB_VERSION="10.3"
|
|||||||
export V_DB_USER="vito"
|
export V_DB_USER="vito"
|
||||||
export V_DB_NAME="vito"
|
export V_DB_NAME="vito"
|
||||||
export V_DB_PASS=$(openssl rand -base64 12)
|
export V_DB_PASS=$(openssl rand -base64 12)
|
||||||
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
|
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb
|
||||||
chmod +x mariadb_repo_setup
|
dpkg -i mysql-apt-config_0.8.22-1_all.deb
|
||||||
./mariadb_repo_setup --mariadb-server-version="mariadb-${V_MARIADB_VERSION}"
|
|
||||||
apt update
|
apt update
|
||||||
apt install mariadb-server mariadb-backup -y
|
apt install mysql-server -y
|
||||||
|
service mysql enable
|
||||||
service mysql start
|
service mysql start
|
||||||
mysql -e "CREATE DATABASE IF NOT EXISTS ${V_DB_NAME} CHARACTER SET utf8 COLLATE utf8_general_ci"
|
mysql -e "CREATE DATABASE IF NOT EXISTS ${V_DB_NAME} CHARACTER SET utf8 COLLATE utf8_general_ci"
|
||||||
mysql -e "CREATE USER IF NOT EXISTS '${V_DB_USER}'@'localhost' IDENTIFIED BY '${V_DB_PASS}'"
|
mysql -e "CREATE USER IF NOT EXISTS '${V_DB_USER}'@'localhost' IDENTIFIED BY '${V_DB_PASS}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user