I have a shell script on server a. The script spits out a csv file to a local directory. The problem is the database server is on server b. How do I use select * int
Use the command below:
mysql -uusername -ppassword -h DBIP DBNAME -e \ "SELECT * FROM tablename" > /destinationpath/outputfilename.csv