Wednesday, August 1, 2012

How to create the tables in db 'sunsaferoad' using one command line only


1
if exists db drop database sunsaferoad
create database sunsaferoad

2
create user
grant this user permissions to database sunsaferoad

3
mysql -u root --password="D******" sunsaferoad < /home/leeubi/Desktop/create_insert_table.txt


Skip step #3, that doesn't work and is not necessary, instead, use the
syncdb from Django's own samn.py instead.




No comments:

Post a Comment