i would like to import a dumped local database into a remote "azure database for mysql server" using cronjob.
in terminal it works fine with this command:
mysql -u[USER] -p[PASSWORD] -h[REMOTE-HOST] --ssl-mode=REQUIRED --ssl-ca=sslCert/BaltimoreCyberTrustRoot.crt.pem remotedb < localdb.sql
it also works, if i put that command in a shell script and call it manually.
why doesn't it work within /etc/crontab?
### import db into azure mysql server ###
*/3 * * * * itsme /home/itsme/backup/app/dumps/import_db_into_remote.sh
the same happens if i'm trying to dump a database from remote to local via cron. it does not work.