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

najdmen

Verified User
Joined
May 9, 2008
Messages
13
Location
Kraków - Poland
when I want to build mysql i get :

Code:
/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 ]
 
it's ok, user smtalk helped me, thanks smtalk !

when I want to build mysql i get :

Code:
/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 ]
 
Would be great if either you or him posted the answer to this, as i'm having the same issues....
 
You get this error (but it doesn't cause any problems) because of the following code in doMySQL() for Debian systems:
Code:
# 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.
 
smtalk, thank you for your reactions.
To bad my error has rather changed :) but it's nice so other people know it as well.
 
Back
Top