it really work

This commit is contained in:
kinou-p 2022-10-09 14:46:24 +02:00
parent 2014a71dba
commit efb9827051

View File

@ -1,9 +1,10 @@
#!/bin/bash
echo "----mysql start----"
service mysql start
echo "----mysql start done----"
if [ ! -d /var/lib/mysql/wordpress ]
then
echo "----sql config----"
mysql << EOF
@ -14,6 +15,11 @@ FLUSH PRIVILEGES;
EOF
mysql -u root < pwd.sh
echo "----sql config done----"
fi
echo "----mysql restart----"
service mysql stop
echo "----mysql stop done----"
mysqld
#mysqld -u root -p${MARIADB_PASSWORD}