Re: Mysqld logs

2024-12-07 Thread Paul Sopka

Thanks for your reply!


One thing, though -- MariaDB is the fork of MySQL that I use, and
it has a `--console` option that causes those messages to be written
to stdout already. Perhaps MySQL has that option as well?
That would be even simpler.

Mysqld has this option too, but it does not seem to work.

Regards

Paul



OpenPGP_0x71C7C85A2EA30F62.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Mysqld logs

2024-12-07 Thread Brett Neumeier via supervision
On Sat, 7 Dec 2024 15:40:30 +0100
Paul Sopka  wrote:

> Hey everybody
> 
>  From what I could find, mysqld, a server deamon for mysql,
> seems to only be able to output logs to files.
> Is it a bad idea to run it in the following way?
> 
>      mysqld --log_error=/dev/stdout
> 
> e.g. in that there any Unix you know about that does not support 
> /dev/stdout?

I don't know of any. If you're concerned, though, you can always
create a FIFO and write log output to it, and then read from that
FIFO in your logging service. That's my common practice when a
program prefers to write log messages to a file. (Or when I set up
a program to write to several different logs, like nginx.)

One thing, though -- MariaDB is the fork of MySQL that I use, and
it has a `--console` option that causes those messages to be written
to stdout already. Perhaps MySQL has that option as well?
That would be even simpler.

Cheers,

Brett

-- 
Brett Neumeier 


Mysqld logs

2024-12-07 Thread Paul Sopka

Hey everybody

From what I could find, mysqld, a server deamon for mysql,
seems to only be able to output logs to files.
Is it a bad idea to run it in the following way?

    mysqld --log_error=/dev/stdout

e.g. in that there any Unix you know about that does not support 
/dev/stdout?


Regards

Paul



OpenPGP_0x71C7C85A2EA30F62.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature