[Tutor] where is my MySQL database
Michael Janßen
mi.janssen at gmail.com
Wed Jul 25 03:58:43 CEST 2012
On 25 July 2012 00:51, Zhenzhen <zhenzhen.qi at 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.
>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120725/726ed63f/attachment.html>
More information about the Tutor
mailing list