Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set default path for MySQL scripts

Status
Not open for further replies.

DeepDiverMom

Programmer
Jul 28, 2003
122
US
What commands/parameters can I use to specify the path/directory for MySQL to look in for scripts?
 
Sleipnir214, Please forgive my MySQL terminological naïveté. If you don't call them "scripts", then I'll rephrase: What command do I use to specify the default path/directory for the argument of MySQL's "source" command?
Example: MySQL> source <filename>
...where <filename> is a list of one or more valid MySQL commands that I store in a file and execute as a stream via the MySQL &quot;source&quot; command.

I wish to avoid specifying:
source <drive:\dir1\dir2\dir3\dir4\dir5\filename.sql>
I wish to specify, instead:
source <filename.sql>

So, what MySQL specification designates
&quot;drive:\dir1\dir2\dir3\dir4\dir5\&quot; as the default path in which to look for a &quot;source&quot; argument?
 
Thanks for the confirmation of what I feared was the case. So that I don't offend the senses in the future, if one does not refer to the argument of the &quot;source&quot; command as a &quot;script&quot;, what is the correct MySQL-purist term?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top