###TextTrade### ##Database Instructions## The reason why we are using the root account of MySQL is because so far, we haven't created any database users with restricted access rights. We will fix this later. Until then, be careful because our database is not secure. #Creating your database#
- As soon as you downloaded XAMPP, start MySQL.
- Open the shell for MySQL.
- Type in the command: "mysql -u root -p" (command is "/Applications/xampp/xamppfiles/bin/mysql -u root -p" if using XAMPP on mac).
- When the prompt requests your password, just press enter.
- You are now in the MySQL command. Type in "create database ecomm;"
- Done. You have created your database. Type "exit" to exit MySQL. #Updating your database from db.sql#
- Start XAMPP, and press the "Start" button for MySQL
- Open the shell for MySQL and cd into the directory of your Github repository
- Type the command: "mysql -u root -p ecomm < db.sql"
- When the prompt requests your password, just press enter.
- Your database is udpated. Exit MySQL. #Pushing your changes onto db.sql#
- Start XAMPP, and press the "Start" button for MySQL
- Open the shell for MySQL and cd into the directory of your Github repository
- Type the command: "mysqldump -u root -p ecomm > db.sql"
- You have updated the shared database.