Quantcast
Channel: Plesk Forum
Viewing all articles
Browse latest Browse all 45852

SELECT COMMAND IN MYSQL QUERY FROM SHELL SCRIPT

$
0
0
I need do clean up and optimize a table from one of my customers databases.
It is a LOG table and i'm trying to create a way to automate the process.

So i'm trying to create a shell script that runs with the SQL command, but it isn't working.
The command i'm using is:

--------------------------
# SETTING VIRIABLES
mysql_user="admin"
mysql_password="`cat /etc/psa/.psa.shadow `"
mysql_database="xxxxxxxxxxxx"

# COMMAND AND SQL
mysql --user=${mysql_user} --password=${mysql_password}...

Read more

Viewing all articles
Browse latest Browse all 45852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>