Re: From bash script (Debian Bookworm) login and query to MariaDB

^Bart <[email protected]> Fri, 3 Nov 2023 15:42:01 +0100
Newsgroups comp.databases.mysql
Organization A noiseless patient Spider
Message-ID <[email protected]>
> No space between your -p and your password.  This is different from 
> other parameters.

You got the point, it works without space from -p and password but...

It works from command line:
$ mysql -u MY_USER -pMY_PASSWORD < /home/itoffice/query.sql

It doesn't work from crontab -e also from root:
*/5 * * * * -u MY_USER -pMY_PASSWORD < /home/itoffice/query.sql

I don't know why... :\

^Bart