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
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