Skip to content

Commit

Permalink
show process list
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWTQ committed Jul 18, 2024
1 parent 8c3504e commit 9bc22d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bc22d5

Please sign in to comment.