diff --git a/install.sh b/install.sh index b164d4c..4f2c546 100755 --- a/install.sh +++ b/install.sh @@ -11,11 +11,12 @@ if [ "$USE_MYSQL" = "true" ]; then DB_TYPE="mysql" DB_SERVER="127.0.0.1" echo "SET PASSWORD FOR root@localhost='mysql';" > ~/sql_start.txt - sudo /usr/sbin/mysqld --init-file=~/sql_start.txt & + sudo /usr/sbin/mysqld --skip-grant-tables & + sudo mysqladmin processlist systemctl status mysql - sudo systemctl start mysql + # sudo systemctl start mysql echo "going to create the database" - mysql -u mysql -e "CREATE DATABASE mw" + mysql -u root -e "CREATE DATABASE mw" # for file in /usr/share/mysql/*; do printf '%s\n' "$file"; sudo cat "$file"; done sudo systemctl cat mysql.service cat /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf ~/.mylogin.cnf