On 25 July 2012 00:51, Zhenzhen <[email protected]> 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.
>

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  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to