Skip to content

Commit

Permalink
no server needed?
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWTQ committed Jul 18, 2024
1 parent 8aa4f55 commit 5a1cfb5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,20 @@ EXTRA_INCLUDE_FILE=$4
if [ "$USE_MYSQL" = "true" ]; then
DB_TYPE="mysql"
DB_SERVER="127.0.0.1"
# We need to start MySQL, but not sqlite
sudo systemctl start mysql
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
else
DB_TYPE="sqlite"
DB_SERVER="localhost"
fi

# Install composer dependencies
cd mediawiki && composer install

# We can have --dbpass with 'root' for MySQL without breaking SQLite since
# the SQLite installer just clears that, it doesn't use a password
php maintenance/install.php \
--dbtype $DB_TYPE \
--dbserver $DB_SERVER \
--dbpass 'root' \
--dbuser root \
--dbname mw \
Expand Down

0 comments on commit 5a1cfb5

Please sign in to comment.