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

Jerry Stuckle <[email protected]> Sat, 4 Nov 2023 12:56:23 -0400
Newsgroups comp.databases.mysql
Organization A noiseless patient Spider
Message-ID <[email protected]>
On 11/4/2023 5:09 AM, J.O. Aho wrote:
> 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'.
> 

The space after the -u is fine.  It's only the password that can't have 
the space.

-- 
==================
Remove the "x"'s from my email address
Jerry Stuckle
[email protected]
==================