Re: From bash script (Debian Bookworm) login and query to MariaDB
"J.O. Aho" <[email protected]> Sat, 4 Nov 2023 10:09:25 +0100
| Newsgroups | comp.databases.mysql |
|---|---|
| Message-ID | <[email protected]> |
On 04/11/2023 09.42, ^Bart wrote:
>> perhaps adding 'mysql' would help?
>>
>
> I did it but I didn't past it on my reply! :)
>
> I also inserted the full path of Mysql but... nothing appened...
Did you look at the mail from crontab? by default it goes to the
localhost root user (you can change that with setting the MAILTO
variable), if something wen t wrong while running the mysql command it
will be in that mail (if no output, no mail).
You could check your /var/log/mysql/mysql.{err,log} too
I hope the "-u MY_USER" was a typo, otherwise loose the space after '-u'.
--
//Aho