Skip to content

Commit

Permalink
password is just root?
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWTQ committed Jul 18, 2024
1 parent 023c1e3 commit b709a0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ inputs:
runs:
using: 'composite'
steps:
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand Down
15 changes: 1 addition & 14 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ EXTRA_INCLUDE_FILE=$4
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 --skip-grant-tables &
sudo mysqladmin processlist
systemctl status mysql
# sudo systemctl start mysql
echo "going to create the database"
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
cat /var/log/mysqld.log
cat /etc/mysql/conf.d/* /etc/mysql/mysql.conf.d/*
cat /var/log/mysql/error.log
else
DB_TYPE="sqlite"
DB_SERVER="localhost"
Expand All @@ -33,7 +20,7 @@ cd mediawiki && composer install
php maintenance/install.php \
--dbtype $DB_TYPE \
--dbserver $DB_SERVER \
--dbpass '' \
--dbpass 'root' \
--dbuser root \
--dbname mw \
--dbpath $(pwd) \
Expand Down

0 comments on commit b709a0c

Please sign in to comment.