Brendan, Thanks for the quick response. I tried the command but I can't tell if it has created a file. That is I can't find one. Is their anyway to tell it to write to a certain directory. I don't have direct access to my MySQl directory as Iam on a shared server.
I tried:
mysql> mysql -u username -p --exec='select * from Items' cigstore | tr "\t" "," > /tmp/cigstore.txt
->
It looked like it was waiting for another command.
Actually, you want to execute that command from your shell prompt (on many Linux systems, this ends with a $ symbol), rather than the MySQL client. It will write the file to whatever directory you are currently logged into, provided that you have write permissions on that directory. You don't have to have access to the real MySQL directory.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.