Also you can do mysql -u userid -p -h hostname dbname < /path/to/your/script.sql
Regards, Kelly Black Linux was very clearly the answer, but what was the question again? -----Original Message----- From: Anderson Pereira Ataides [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:37 AM To: [EMAIL PROTECTED] Subject: Re: mysql scripts Dan, you can use: mysql -e "YOUR SQL STATEMENT" []s Anderson Pereira Ataides Em Qui 27 Mar 2003 08:03, Daniel Kiss escreveu: > Hi all, > > I have a question about mysql client. How can I use it in such a way that > it just executes a script on a specified database and then exists? > > Thanks, > Dan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]