Skip to content

Creating a new database in phpMyAdmin

Damodar Dahal edited this page Feb 4, 2018 · 1 revision

After installing all the necessary softwares/dependencies including XAMPP,

  1. Launch XAMPP Control Panel.
  2. Start Apache and MySQL. Ensure that these texts are highlighted in green.
  3. Go to browser and type localhost/phpmyadmin
  4. On the left pane of databases, click the "New" button.
  5. Type in the name of your database, say my_database for this tutorial. The click on the "Create" button next to it.

If you are going to use this database for your CodeSlammers project, update the database name in config/dev_config.py file. The database path is stored in the SQLALCHEMY_DATABASE_URI variable. If it has a value of mysql://root@localhost/pythonbase, change it to mysql://root@localhost/my_database.

To ensure that the everything is working fine, you may run the CodeSlammers project using python main.py in a Command prompt/Terminal, and then visit http://localhost:5000/app. If all is well, you should be getting a welcome message.

Clone this wiki locally