elsenorjose
Technical User
Hello and apologies in advance if this topic has been covered. I don't recall seeing it posted before but if it has, thanks in advance for pointing me to the thread.
I have a MySQL 4.1.5-gamma-nt-max instance running on a Windows 2000 Server box. I have tried creating a script to restore a mysqldump backup file to a schema on that server. Here is my syntax:
set foreign_key_checks=0;
source b:/folderwithdata/data.043006
set foreign_key_checks=1;
When I execute this locally on the server from the command line, it executes without a hitch. However, the server is going to be located in a server farm where I will not have access so I have tried to execute this from my workstation using Query Browser. I launch Query Browser and execute the script and get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use. ErrorNr: 1064 near 'SOURCE B:/FOLDERWITHDATA/DATA.043006 SET FOREIGN_KEY_CHECKS=1' at
line 1
Like I said, it executes fine on the server via command line so I know it's not bombing out on some syntax within the file itself. So I'm assuming it has something to do with how I'm writing the script in the GUI itself. Any thoughts? Thank you all.
I have a MySQL 4.1.5-gamma-nt-max instance running on a Windows 2000 Server box. I have tried creating a script to restore a mysqldump backup file to a schema on that server. Here is my syntax:
set foreign_key_checks=0;
source b:/folderwithdata/data.043006
set foreign_key_checks=1;
When I execute this locally on the server from the command line, it executes without a hitch. However, the server is going to be located in a server farm where I will not have access so I have tried to execute this from my workstation using Query Browser. I launch Query Browser and execute the script and get the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use. ErrorNr: 1064 near 'SOURCE B:/FOLDERWITHDATA/DATA.043006 SET FOREIGN_KEY_CHECKS=1' at
line 1
Like I said, it executes fine on the server via command line so I know it's not bombing out on some syntax within the file itself. So I'm assuming it has something to do with how I'm writing the script in the GUI itself. Any thoughts? Thank you all.