Question :
Is there anyway to change the current working directory from the MySQL client prompt?
That would allow me to use relative paths for the tee
, source
, and another command which I don’t recall just now (I just noticed that the post got truncated my copy/pasting, and I had listed a few example commands in the original text file draft — being new to MySQL, I’m that familiar with the commands off the top of my head).
I found from other apps that changing the working directory is extremely useful in general, e.g., in Vim and Matlab.
Answer :
You can’t. There is no code in the mysql client executable to change directory.