[PHP-DB] newbe: how to import a whole db from an .sql file

2002-02-21 Thread steven
I'm moving a mySQL db from my own server over to an external hosting company. there I don't have any root access of course... so I log in the mySQL-console. I made a 'db-dump' of my mySQL db (with Webmin), so I've got a textfile with a large amount of SQL-statements inside. (CREATE TABLE and

Re: [PHP-DB] newbe: how to import a whole db from an .sql file

2002-02-21 Thread Billy S Halsey
Hi Steven, The problem is that when doing mysql_query (et al) from PHP, you DON'T specify the semicolon (;) at the end of a query. If you want to import this back into MySQL, do the following: 1. Go into mysql and recreate the database manually -- the dump from mysqldump does NOT have a