mysql 4.0.2 startup problems

mysql 4.0.2 startup problems

am 16.07.2002 20:27:21 von mmokrejs

Hi,
first of all, it seems bin/safe_mysqld has been accidentally omitted
from binary dist. for linux libc6. I use the one from 3.23.51 binary tree.
However, I get:

How-To-Repeat:

/usr/local/mysql/log# cp /dev/null jerboas.log
/usr/local/mysql/log# cp /dev/null jerboas.err
/usr/local/mysql/log# /etc/rc3.d/S98mysql start
/usr/local/mysql/log# Starting mysqld daemon with databases from /data1/mysql
020716 20:21:26 mysqld ended


/usr/local/mysql/log# less jerboas.err
020716 20:21:26 mysqld started
020716 20:21:26 Can't find messagefile 'mysql-4.0.2-alpha-pc-linux-gnu-i686/share/mysql/english/err msg.sys'
020716 20:21:26 Aborting

020716 20:21:26 mysqld ended

/usr/local/mysql/log# cd ../..
/usr/local# /etc/rc3.d/S98mysql start
/usr/local# Starting mysqld daemon with databases from /data1/mysql

/usr/local# cat /etc/rc3.d/S98mysql
/usr/bin/nice -n -19 /usr/local/mysql/bin/safe_mysqld --skip-name-resolve &
/usr/local#

Hope this helps.
--
Martin Mokrejs
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12188@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 16.07.2002 21:23:58 von Sinisa Milivojevic

=3D?iso-8859-2?Q?Martin_MOKREJ=3DA9?=3D writes:
> Hi,
> first of all, it seems bin/safe_mysqld has been accidentally omitte=
d
> from binary dist. for linux libc6. I use the one from 3.23.51 binary =
tree.
> However, I get:
>=20
> How-To-Repeat:
>=20

[skip]

> /usr/local# cat /etc/rc3.d/S98mysql
> /usr/bin/nice -n -19 /usr/local/mysql/bin/safe_mysqld --skip-name-res=
olve &
> /usr/local#
>=20
> Hope this helps.
> --=20
> Martin Mokrejs
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> MIPS / Institute for Bioinformatics
> GSF - National Research Center for Environment and Health
> Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
> tel.: +49-89-3187 3683 , fax:=A0+49-89-3187 3585
>=20
>=20

The above is hardly a bug, but we shall check it out ...

--=20
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic >
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12190@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 17.07.2002 10:31:01 von Alexander Keremidarski

Martin MOKREJ© wrote:
> Hi,
> first of all, it seems bin/safe_mysqld has been accidentally omitted
> from binary dist. for linux libc6. I use the one from 3.23.51 binary tree.
> However, I get:

In 4.0.x startup script is renamed to mysqld_safe. This is documented.

www.mysql.com/doc/N/e/News-4.0.0.html

>
> How-To-Repeat:
>
> /usr/local/mysql/log# cp /dev/null jerboas.log
> /usr/local/mysql/log# cp /dev/null jerboas.err
> /usr/local/mysql/log# /etc/rc3.d/S98mysql start
> /usr/local/mysql/log# Starting mysqld daemon with databases from /data1/mysql
> 020716 20:21:26 mysqld ended

Use mysql.server script from 4.0.2 tree. It knows where to find mysqld_safe

cp mysql.server /etc/rc.d/initd/mysql
chmod +x /etc/rc.d/initd/mysql
chkconfig --add mysql

or use your favorite method to link it in appropriate runlevel dirs.



Please check with manual before you post to bugs@




------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12197@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 17.07.2002 12:14:07 von Melvyn Sopacua

At 22:23 7/16/2002 +0300, you wrote:

>=?iso-8859-2?Q?Martin_MOKREJ=A9?= writes:
> > Hi,
> > first of all, it seems bin/safe_mysqld has been accidentally omitted
> > from binary dist. for linux libc6. I use the one from 3.23.51 binary tree.

Ehm - is the version in your subject correct?

The safe wrapper for 4.x tree is `mysqld_safe' not `safe_mysqld'



Best regards,

Melvyn Sopacua
WebMaster IDG.nl
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
If it applies, where it applies - this email is a personal
contribution and does not reflect the views of my employer
IDG.nl.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12199@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 17.07.2002 13:34:24 von mmokrejs

On Wed, 17 Jul 2002, Alexander Keremidarski wrote:

Hi,

> Martin MOKREJ© wrote:
> > Hi,
> > first of all, it seems bin/safe_mysqld has been accidentally omitted
> > from binary dist. for linux libc6. I use the one from 3.23.51 binary tree.
> > However, I get:
>
> In 4.0.x startup script is renamed to mysqld_safe. This is documented.
>
> www.mysql.com/doc/N/e/News-4.0.0.html

Hmm, this I missed, thanks. Actually I've read the INSTALL-BINARY, but as
I see now it's also mentioned there (I have read probably the only first
line):

shell> bin/safe_mysqld --user=mysql &
or
shell> bin/mysqld_safe --user=mysql &
if you are running MySQL 4.x

:(

>
> >
> > How-To-Repeat:
> >
> > /usr/local/mysql/log# cp /dev/null jerboas.log
> > /usr/local/mysql/log# cp /dev/null jerboas.err
> > /usr/local/mysql/log# /etc/rc3.d/S98mysql start
> > /usr/local/mysql/log# Starting mysqld daemon with databases from /data1/mysql
> > 020716 20:21:26 mysqld ended
>
> Use mysql.server script from 4.0.2 tree. It knows where to find mysqld_safe
>
> cp mysql.server /etc/rc.d/initd/mysql
> chmod +x /etc/rc.d/initd/mysql
> chkconfig --add mysql
>
> or use your favorite method to link it in appropriate runlevel dirs.

Thanks!

--
Martin Mokrejs
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12200@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 12.08.2002 11:59:33 von mmokrejs

Hi,
it's a bit late reply, to my original mail sent to bugs list. Now the
problem reappeared as the box got rebooted. I was receiving in
$hostname.err:

020812 11:34:20 mysqld started
020812 11:34:20 Can't find messagefile 'mysql-4.0.2-alpha-pc-linux-gnu-i686/share/mysql/english/err msg.sys'
020812 11:34:20 Aborting

020812 11:34:20 mysqld ended


$ diff -u -w mysql-4.0.2-alpha-pc-linux-gnu-i686/support-files/mysql.serv er /etc/init.d/mysql
--- mysql-4.0.2-alpha-pc-linux-gnu-i686/support-files/mysql.serv er Mon Jul 1 14:52:15 2002
+++ /etc/init.d/mysql Mon Aug 12 11:42:30 2002
@@ -29,11 +29,11 @@
# If you want to affect other MySQL variables, you should make your changes
# in the /etc/my.cnf or other configuration files.

-PATH=/sbin:/usr/sbin:/bin:/usr/bin
+PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/mysql/bin
export PATH

# Set some defaults
-datadir=/usr/local/mysql/data
+datadir=/data1/mysql
basedir=
pid_file=
if test -z "$basedir"
@@ -45,7 +45,7 @@
fi
if test -z "$pid_file"
then
- pid_file=$datadir/`@HOSTNAME@`.pid
+ pid_file=$datadir/jerboas.pid
else
case "$pid_file" in
/* ) ;;
@@ -116,7 +116,7 @@
then
# Give extra arguments to mysqld with the my.cnf file. This script may
# be overwritten at next upgrade.
- $bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file &
+ $bindir/mysqld_safe --skip-innodb --datadir=$datadir --pid-file=$pid_file &
# Make lock for RedHat / SuSE
if test -w /var/lock/subsys
then


On Wed, 17 Jul 2002, Alexander Keremidarski wrote:
> > Martin MOKREJ© wrote:
> > How-To-Repeat:
> >
> > /usr/local/mysql/log# cp /dev/null jerboas.log
> > /usr/local/mysql/log# cp /dev/null jerboas.err
> > /usr/local/mysql/log# /etc/rc3.d/S98mysql start
> > /usr/local/mysql/log# Starting mysqld daemon with databases from /data1/mysql
> > 020716 20:21:26 mysqld ended
>
> Use mysql.server script from 4.0.2 tree. It knows where to find mysqld_safe

Thanks, I copied that file over. See above the diff.

> cp mysql.server /etc/rc.d/initd/mysql
> chmod +x /etc/rc.d/initd/mysql
> chkconfig --add mysql
>
> or use your favorite method to link it in appropriate runlevel dirs.

I've suspected that mysqld operates in unexpected current directory, and this
really helped:

cd /usr/local/mysql (which is a symlink to /usr/local/mysql-4.0.2-alpha-pc-linux-gnu-i686)
ln -s . mysql-4.0.2-alpha-pc-linux-gnu-i686

Now when mysqld is in /usr/local/mysql and want's to see mysql-4.0.2-alpha-pc-linux-gnu-i686/share*,
it can get it. Please note that I dod not re-set "$bindir" inside /etc/my.cnf.
However, $basedir is reported by 'mysqladmin variables' to be set to
'mysql-4.0.2-alpha-pc-linux-gnu-i686/'. Maybe that's my problem?

TIA
Please Cc: me in replies, if possible.
--
Martin Mokrejs
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail
To unsubscribe, e-mail
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Re: mysql 4.0.2 startup problems

am 21.10.2002 13:26:28 von mmokrejs

On Mon, 12 Aug 2002, Martin MOKREJ© wrote:

Hi,
few more nfor about this problem still apearing with 4.0.5-bk:

/scratch$ /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql2 --user=mysql --pid-file=/usr/local/mysql/var/kulan.pid2 --skip-locking --port=3305
021021 13:07:15 Warning: setrlimit couldn't increase number of open files to more than 1024 (request: 32878)
021021 13:07:15 Can't find messagefile 'mysql-BK-20021018/share/mysql/english/errmsg.sys'
021021 13:07:15 Aborting

/scratch$

Please ignore the setrlimit(), I'm running this test as a wrong user.

I post full debug, as it is short and I'll comment few lines:

/scratch$ strace -a -f /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql2 --user=mysql --pid-file=/usr/local/mysql/var/kulan.pid2 --skip-locking --port=3305
execve("/usr/local/mysql/libexec/mysqld", ["/usr/local/mysql/libexec/mysqld", "--basedir=/usr/local/mysql", "--datadir=/data/mysql2", "--user=mysql", "--pid-file=/usr/local/mysql/var/kulan.pid2", "--skip-locking", "--port=3305"], [/* 26 vars */]) = 0
fcntl64(0, F_GETFD) = 0
fcntl64(1, F_GETFD) = 0
fcntl64(2, F_GETFD) = 0
uname({sys="Linux", node="kulan", ...}) = 0
geteuid32() = 1001
getuid32() = 1001
getegid32() = 1001
getgid32() = 1001
getrlimit(0x3, 0xbffff580) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid() = 1645
rt_sigaction(SIGRTMIN, {0x81acf20, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x81acf88, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x81ad064, [], 0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff388, 35, (nil), 0}) = 0
brk(0) = 0x82ee4e8
brk(0x82ee518) = 0x82ee518
brk(0x82ef000) = 0x82ef000
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 4096) = 837
close(3) = 0
munmap(0x40000000, 4096) = 0
time(NULL) = 1035198446
uname({sys="Linux", node="kulan", ...}) = 0
open("/etc/my.cnf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=5592, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
read(3, "# Example mysql config file for "..., 4096) = 4096
brk(0x82f0000) = 0x82f0000
read(3, "ing Innobase tables\n#innodb_data"..., 4096) = 1496
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40000000, 4096) = 0
open("/usr/local/mysql/var/my.cnf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/home/users/bioadmin/.my.cnf", O_RDONLY|O_LARGEFILE) = 3

--------------------------^ so where does mysql read the /etc/my.cnf?
Did I compile binaries with some other defaults, hmm?

fstat64(3, {st_mode=S_IFREG|0600, st_size=314, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
read(3, "[client]\nhost=127.0.0.1\nuser=ped"..., 4096) = 314
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40000000, 4096) = 0
readlink("/usr/local/mysql", "mysql-BK-20021018", 511) = 17

------------------------^ now mysql realizes /usr/local/mysql is a softlink to /usr/local/mysql-BK-20021018

rt_sigaction(SIGINT, {0x81ad4f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
rt_sigaction(SIGALRM, {0x81ad4f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGSEGV, {0x81ad4f8, [], SA_NOMASK|SA_ONESHOT|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGBUS, {0x81ad4f8, [], SA_NOMASK|SA_ONESHOT|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGILL, {0x81ad4f8, [], SA_NOMASK|SA_ONESHOT|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGFPE, {0x81ad4f8, [], SA_NOMASK|SA_ONESHOT|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x81ad4f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0
rt_sigaction(SIGHUP, {0x81ad4f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [HUP], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [HUP QUIT PIPE TERM TSTP RTMIN], NULL, 8) = 0
open("mysql-BK-20021018/share/mysql/charsets/Index", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

-----------------------------------------------^ But wait. mysqld_safe expects current working directory
to be /usr/local/mysql, right. Then, why is the mysqld searching for
mysql-BK-20021018/share/.... That's the reason I have to make a soflink
to itself (see original post below).

But did mysqld inspect, what is current directory?
In my situation it does not work (note that cd /usr/local/mysql
doesn't help, unless I create the softlink -- see below).

I just guess, that for others it works as their /etc/my.cnf is found
at the very beginning of startup.


sched_setscheduler(0x66d, 0, 0xbffff9b8) = -1 EINVAL (Invalid argument)
sched_get_priority_max(0) = 0
sched_get_priority_min(0) = 0
getrlimit(0x7, 0xbffff974) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=32878, rlim_max=32878}) = -1 EPERM (Operation not permitted)
time(NULL) = 1035198446
write(2, "021021 13:07:26 ", 17021021 13:07:26 ) = 17
write(2, "Warning: setrlimit couldn\'t incr"..., 92Warning: setrlimit couldn't increase number of open files to more than 1024 (request: 32878)) = 92
write(2, "\n", 1
) = 1
getpid() = 1645
time(NULL) = 1035198446
open("mysql-BK-20021018/share/mysql/english/errmsg.sys", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
time(NULL) = 1035198446
write(2, "021021 13:07:26 ", 17021021 13:07:26 ) = 17
write(2, "Can\'t find messagefile \'mysql-BK"..., 73Can't find messagefile 'mysql-BK-20021018/share/mysql/english/errmsg.sys') = 73
write(2, "\n", 1
) = 1
time(NULL) = 1035198446
write(2, "021021 13:07:26 ", 17021021 13:07:26 ) = 17
write(2, "Aborting\n", 9Aborting
) = 9
write(2, "\n", 1
) = 1
unlink("/usr/local/mysql/var/kulan.pid2") = -1 ENOENT (No such file or directory)

----------------------------------------^ the PID file has not been created yet!?

_exit(1) = ?
/scratch$



Please note that the text below I've sent to mysql@lists....

> Hi,
> it's a bit late reply, to my original mail sent to bugs list. Now the
> problem reappeared as the box got rebooted. I was receiving in
> $hostname.err:
>
> 020812 11:34:20 mysqld started
> 020812 11:34:20 Can't find messagefile 'mysql-4.0.2-alpha-pc-linux-gnu-i686/share/mysql/english/err msg.sys'
> 020812 11:34:20 Aborting
>
> 020812 11:34:20 mysqld ended

[...]

> I've suspected that mysqld operates in unexpected current directory, and this
> really helped:
>
> cd /usr/local/mysql (which is a symlink to /usr/local/mysql-4.0.2-alpha-pc-linux-gnu-i686)
> ln -s . mysql-4.0.2-alpha-pc-linux-gnu-i686
>
> Now when mysqld proscess is in /usr/local/mysql and want's to see mysql-4.0.2-alpha-pc-linux-gnu-i686/share*,
> it can get it. Please note that I did not re-set "$bindir" inside /etc/my.cnf.
> However, $basedir is reported by 'mysqladmin variables' to be set to
> 'mysql-4.0.2-alpha-pc-linux-gnu-i686/'. Maybe that's my problem?
>
> TIA
> Please Cc: me in replies, if possible.

--
Martin Mokrejs ,
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12811@lists.mysql.com
To unsubscribe, e-mail

Re: mysql 4.0.2 startup problems

am 11.11.2002 15:34:16 von Michael Widenius

Hi!

>>>>> "M" == Martin MOKREJ writes:

M> On Mon, 12 Aug 2002, Martin MOKREJ=1B-B=A9 wrote:=1B-A
M> Hi,
M> few more nfor about this problem still apearing with 4.0.5-bk:



M> readlink("/usr/local/mysql", "mysql-BK-20021018", 511) =3D 17

M> ------------------------^ now mysql realizes /usr/local/mysql is a s=
oftlink to /usr/local/mysql-BK-20021018



M> open("mysql-BK-20021018/share/mysql/charsets/Index", O_RDONLY|O_LARG=
EFILE) =3D -1 ENOENT (No such file or directory)

The above probably happens because you have a relative softlink to the =
data
directory, something that MySQL doesn't support.

The reason for this is that MySQL wants to know where it's really
located to be able to compare pathnames.

Currently we use readlink() for this, which works as long as the path
is an absolute one.

Easy fix for the moment is:

rm /usr/local/mysql
ln -s -f /usr/local/mysql-BK-20021018 /usr/local/mysql

I will for 4.0.6 fix that we will use realpath() instead, which will
work better as this returns an absolute path to the given directory.


M> -----------------------------------------------^ But wait. mysqld_sa=
fe expects current working directory
M> to be /usr/local/mysql, right.

mysqld_safe assumes that you are either starting it from the 'basedir'
directory or from the directory specified at configure time.


M> Then, why is the mysqld searching for
M> mysql-BK-20021018/share/.... That's the reason I have to make =
a soflink
M> to itself (see original post below).

This is becasue MySQL reads the symlink for 'basedir' and uses this
as the real basedir.

M> But did mysqld inspect, what is current directory?

No; It didn't have to do that.

M> In my situation it does not work (note that cd /usr/local/mysq=
l
M> doesn't help, unless I create the softlink -- see below).

M> I just guess, that for others it works as their /etc/my.cnf is=
found
M> at the very beginning of startup.

For most people this works because they are using either softlinks
with full paths or starting mysqld_safe from the 'basedir' directory.
(The later one is the recommend way)



M> unlink("/usr/local/mysql/var/kulan.pid2") =3D -1 ENOENT (No such fil=
e or directory)

M> ----------------------------------------^ the PID file has not been =
created yet!?

This is done in the standard cleanup code and doesn't cause any
problems.




>> However, $basedir is reported by 'mysqladmin variables' to be set to=

>> 'mysql-4.0.2-alpha-pc-linux-gnu-i686/'. Maybe that's my problem?

Yes, that's the problem.

Regards,
Monty

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread12958@lists.mysql.com
To unsubscribe, e-mail