jaysun
11-14-2002, 11:08 AM
Hi all,
Being a mySQL virgin this is my first post and I apologise if it is a bit basic and has been answered many times before. I have searched this and other forums and cannot find an answer and am about to kill my computer, my pets and then myself ;)
I have a Windows 2000 setup (sorry!) and mySQL v2.32.52-nt and have been working with it for about a week now and have been getting on just fine. :)
However.......................
I started playing with using sql files to create databases and tables and insert data and everything was working fine and then all of a sudden things stopped working completely. SQL that had worked without a hitch started chucking up errors and I simply couldn't use files anymore????????
Now when I try to use a file to create db's, tables or insert data i simply get the following error:
ERROR 1102: Incorrect database name "<the location of the file>"
I have tried many things like creatibng the db first, using just the table create code and adding the db name in the command line call like so:
mysql -u root -D <dbname> -p "<the location of the file>"
And every other permatation of this just to make sure it's not me being an arse ;)
If anyone can help me I would REALLY appreciate it and you could save my life :)
TIA - Jaysun
.................now where's that cat!!!!!
P.S. Can anyone point me to some decent beginners web sites, forums etc. etc. apart from this one - Cheers :)
Being a mySQL virgin this is my first post and I apologise if it is a bit basic and has been answered many times before. I have searched this and other forums and cannot find an answer and am about to kill my computer, my pets and then myself ;)
I have a Windows 2000 setup (sorry!) and mySQL v2.32.52-nt and have been working with it for about a week now and have been getting on just fine. :)
However.......................
I started playing with using sql files to create databases and tables and insert data and everything was working fine and then all of a sudden things stopped working completely. SQL that had worked without a hitch started chucking up errors and I simply couldn't use files anymore????????
Now when I try to use a file to create db's, tables or insert data i simply get the following error:
ERROR 1102: Incorrect database name "<the location of the file>"
I have tried many things like creatibng the db first, using just the table create code and adding the db name in the command line call like so:
mysql -u root -D <dbname> -p "<the location of the file>"
And every other permatation of this just to make sure it's not me being an arse ;)
If anyone can help me I would REALLY appreciate it and you could save my life :)
TIA - Jaysun
.................now where's that cat!!!!!
P.S. Can anyone point me to some decent beginners web sites, forums etc. etc. apart from this one - Cheers :)