| 24 | |
| 25 | '''Creating MySQL Database''' |
| 26 | 1. In your pythonanywhere account go to Databases Tab |
| 27 | 2. Go to MySQL Tab |
| 28 | 3. Set the password for you MySQL connection then proceed |
| 29 | 3. In the Create Database portion enter the database name that you want, then click create. |
| 30 | 4 The details of you database will be shown once you have successfully created it. |
| 31 | Database host address : ''username.mysql.pythonanywhere-services.com''[[BR]] |
| 32 | Database name : username$databasename |
| 33 | |
| 34 | '''Connecting your Database to Eden''' |
| 35 | 1. Proceed to the File Tab and navigate to your ''000_config.py'' file. if you didn't change the name in the setup it will be in /home/username/web2py/applications/eden/models |
| 36 | 2. Uncomment and edit the following lines[[BR]]settings.database.db_type = "mysql"[[BR]]settings.database.host = "''username.mysql.pythonanywhere-services.com''"[[BR]]settings.database.database = "''username$databasename''"[[BR]]settings.database.username = "''your pythonanywhere username''"[[BR]]settings.database.password = "''MySQL password you created''" |
| 37 | 3. Save it. |
| 38 | 4. Go back to your dashboard and proceed to Web Tab |
| 39 | 5. Click Reload and then proceed to accessing your Eden Site |