-
Notifications
You must be signed in to change notification settings - Fork 0
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,
- Launch XAMPP Control Panel.
- Start Apache and MySQL. Ensure that these texts are highlighted in green.
- Go to browser and type
localhost/phpmyadmin - On the left pane of databases, click the "New" button.
- Type in the name of your database, say
my_databasefor 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.pyfile. The database path is stored in theSQLALCHEMY_DATABASE_URIvariable. If it has a value ofmysql://root@localhost/pythonbase, change it tomysql://root@localhost/my_database.
To ensure that the everything is working fine, you may run the CodeSlammers project using
python main.pyin a Command prompt/Terminal, and then visithttp://localhost:5000/app. If all is well, you should be getting a welcome message.
Code Slammers, 2018. Program run by Damodar Dahal <damodar[dot]dahal[at]selu[dot]edu>. All contents provided under the MIT License.