Update README.md

See way easier
This commit is contained in:
Kevin Ramharak 2018-01-02 14:52:13 +01:00 committed by GitHub
parent 0e15797645
commit b5a9a13b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,22 +7,12 @@ Easiest way to configure the database:
```bash
$ pwd
~/Much-Assembly-Required-Frontend/
$ mysql -u root -p
Enter password: # type your MySQL root user password
MariaDB [(none)]>
MariaDB [(none)]> CREATE DATABASE mar;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON mar.* to 'mar'@'localhost' identified by 'mar';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> USE mar;
MariaDB [mar]> \. database.sql
MariaDB [(none)]> exit
Bye
$ # if '\. database.sql' failed you were not in the right directory. make sure you are in the repo root directory
$ # before running these commands
$ mysql -u root -p < database.sql
Enter password: # type your MySQL root user password if you set any
# on a fresh install the password is empty
# NOTE: on a fresh install you might have to run the command with sudo
# NEVER blindly run commands as sudo. Check the contents of the 'database.sql' file first!
```
Make sure to change the configuration in /include/config.php.
> Tough if you used the snippet above there is nothing to change (except the title if you want)
More information about the game [here.](https://github.com/simon987/Much-Assembly-Required)
HTML template by ajlkn