In <
035d50c7-7f95-447f...@googlegroups.com>, on 08/28/21
at 09:55 AM, David McKenna <
davidmc...@gmail.com> said:
Hi David,
>mysqld_safe --user=mysql --datdir=C:/Data/mysql5
> But I get this error:
>[C:\programs\mysql57\bin]sh mysqld_safe --user=mysql
>--datadir=C:/Data/mysql5
>UMASK must be a 3-digit mode with an additional leading 0 to indicate
>octal. The first digit will be corrected to 6, the others may be 0, 2, 4,
>or 6.
If you look at the script, you will notice it's not been fully ported to
OS/2. The above message is just a warning you can ignore.
>2021-08-28T12:15:42.600000Z mysqld_safe error: log-error set to
>'C:/Data/mysql5/C:/var/log/mysql/error.log', however file don't exists.
>Create writable for user 'mysql'.
This one is another bit of unported code. Recall *ix does not do drive
letters.
This code is checking if $err_log is an absolute path:
mysqld_safe:589
case "$err_log" in
/* ) ;;
* ) err_log="$DATADIR/$err_log" ;;
esac
since it is not, $DATADIR gets prepended and you end up with a borked
path. What may work is
--datadir=/Data/mysql5
I'm not yet seeing where err_log gets set to C:/var/log/mysql/error.log,
but I probably have looked hard enough.
BTW, mysqld-safe is just a wrapper for mysqld, so if mysqld is not going
to run, you are not going to get very far, even if you tweak the script
for OS/2.
Steven
--
----------------------------------------------------------------------
"Steven Levine" <
ste...@earthlink.net> Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------