On Tue, Jul 24, 2012 at 9:58 PM, Michael Janßen <mi.jans...@gmail.com> wrote: > On 25 July 2012 00:51, Zhenzhen <zhenzhen...@gmail.com> wrote: >> >> hi, I'm working on setting up my database for django by editing the >> following file: >> mysite/settings.py >> >> for the field "name", I am suppose to put down the full path of my mySQL >> database. > That is not true. You need to read the tutorial at https://docs.djangoproject.com/en/dev/intro/tutorial01/#database-setup
You new the path only if you are using sqlite3, which you are not. > > for mysql, it needs to be the database name, specified in the CREATE TABLE > statement. With sqlite3, it would be indeed the filename (an non-existent > filename, sqlite3 would create the file) > >> >> I did create a few databases in MySQL, however, I don't seem to be able to >> find them anywhere. >> >> I have tried 'grep datadir /etc/my.cnf' but found out my.cnf file doesn't >> even exist in my /etc/ directory. > > > for me it is /etc/mysql/my.cnf > > cu, Michael > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > -- Joel Goldstick _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor