You can do that easily enough without django... one way is to do: mysql -u<user> -p<password> <database> < file.sql
the other is to go into mysql and there do: \. file.sql You can open a mysql shell with: manage.py dbshell --- Amit * Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-25 17:32 +0100]: > > Hello, > > At the installation stage of the software (Django bases, of course) I'm > developing, I have to insert data in a database. Is there any easy way to > tell django to execute the SQL directives contained in a .sql file ? > > I tried using manage.py but I don't know the good options. > So I would like to do sth like : > ./manage.py action file.sql > That is what I was trying to do. > > TIA. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---