From 9bc22d541b880df84d4c2deef68f0096db5128ab Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 18 Jul 2024 14:29:04 -0700 Subject: [PATCH] show process list --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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