MySQL Forums
Forum List  »  Newbie

Re: mysqlimport
Posted by: Felix Geerinckx
Date: April 19, 2005 01:47PM

Doug Hairfield wrote:
> Is it possible to use mysqlimport to load a .sql
> file on your local machine into the database on a
> remote host? I can't seem to get the syntax
> right.

mysqlimport is not for "loading" sql-files; it's for loading data.
If you want to execute a file with sql-code on a remote host, use

mysql -h yourhost -u username -ppassword <yourfile.sql

--
felix

Options: ReplyQuote


Subject
Written By
Posted
April 19, 2005 01:25PM
Re: mysqlimport
April 19, 2005 01:47PM
April 19, 2005 02:26PM
April 19, 2005 02:38PM
April 19, 2005 03:44PM
April 20, 2005 12:48AM
April 20, 2005 07:18AM
April 20, 2005 07:45AM
April 20, 2005 08:22AM
April 20, 2005 08:49AM
April 20, 2005 08:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.