PDA

View Full Version : target `/usr/lib/mysql/' is not a directory: No such file or directory



najdmen
05-09-2008, 05:30 AM
when I want to build mysql i get :


/build mysql
Stopping mysqld ...
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
Giving mysqld a few seconds to start up...
Looking for 'mysql' in: /usr/local/mysql-5.0.51a-linux-i686/bin/mysql
Looking for 'mysqlcheck' in: /usr/local/mysql-5.0.51a-linux-i686/bin/mysqlcheck
Running 'mysqlcheck'...
/usr/local/mysql-5.0.51a-linux-i686/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
cp: target `/usr/lib/mysql/' is not a directory: No such file or directory
Restarting MySQL.
Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]

najdmen
05-10-2008, 04:16 AM
it's ok, user smtalk helped me, thanks smtalk !


when I want to build mysql i get :


/build mysql
Stopping mysqld ...
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
Giving mysqld a few seconds to start up...
Looking for 'mysql' in: /usr/local/mysql-5.0.51a-linux-i686/bin/mysql
Looking for 'mysqlcheck' in: /usr/local/mysql-5.0.51a-linux-i686/bin/mysqlcheck
Running 'mysqlcheck'...
/usr/local/mysql-5.0.51a-linux-i686/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
cp: target `/usr/lib/mysql/' is not a directory: No such file or directory
Restarting MySQL.
Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]

daride
11-15-2008, 08:16 AM
Would be great if either you or him posted the answer to this, as i'm having the same issues....

smtalk
11-15-2008, 08:40 AM
You get this error (but it doesn't cause any problems) because of the following code in doMySQL() for Debian systems:


# Fixing "gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory"
if [ ! -e /usr/lib/mysql/libmysqlclient.so ]; then
cp -f /usr/lib/libmysqlclient.* /usr/lib/mysql/
fi
It shouldn't be there.

daride
11-15-2008, 09:08 AM
smtalk, thank you for your reactions.
To bad my error has rather changed :) but it's nice so other people know it as well.