@ -31,15 +31,6 @@ and run the following sql command:
UNINSTALL PLUGIN validate_password;
```
For the Android app to be able to reach the API, you need to provide a route either through your public IP or though your router using your LAN IP. In either case you need to tell the MySQL server *where to listen* by modifying the file `/etc/mysql/mysql.conf.d/mysqld.cnf`. Use a preferred editor to change the line starting with `bind-address` to `bind-address = YOUR_IP`.
**WARNING:** You may not be able to connect to the MySQL server again, until you revert this change!
When done, run the command bellow to restart MySQL server:
```bash
sudo systemctl restart mysql.service
```
You are now ready to setup the database and API application using the command bellow and following the instructions:
3. Revert changes to the file `/etc/mysql/mysql.conf.d/mysqld.cnf`. Use an editor to change the line starting with `bind-address` to `bind-address = 127.0.0.1`.
4. Reinstall MySQL's password validation plugin. Login to the mysql server as root:
3. Reinstall MySQL's password validation plugin. Login to the mysql server as root:
5. Connect to MySQL server and drop the flavoursWithoutBorders schema:
4. Connect to MySQL server and drop the flavoursWithoutBorders schema:
```bash
mysql -h localhost -u root -p -e "DROP DATABASE IF EXISTS flavoursWithoutBorders;"
```
---
<sub>Hyrieus was a Greek mythical figure known for his son, Orion. Gods gave Orion to Hyrieus because he was super lonely, like me when working on this assignment. 😔</sub>