build mysql d > wont work - mysql dead

Tim

Verified User
Joined
Oct 8, 2003
Messages
117
hello

ive got a problem with a server, today de mysql stopped working and never came back ....

I trying to reinstall mysql, but got this:

Code:
./build mysql d
Stopping mysqld ...
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: line 487: /usr/local/mysql/bin/my_print_defaults: No such file or directory
/usr/local/mysql/bin/mysqld_safe: line 493: /usr/local/mysql/bin/my_print_defaults: No such file or directory
./build: line 3126: /usr/local/mysql/bin/mysql_upgrade: No such file or directory
Restarting MySQL.
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]
It is recommended to do "./build php n" after MySQL update.
/usr/local/mysql/bin/mysqld_safe: line 487: /usr/local/mysql/bin/my_print_defaults: No such file or directory
/usr/local/mysql/bin/mysqld_safe: line 493: /usr/local/mysql/bin/my_print_defaults: No such file or directory
srv01:/usr/local/directadmin/custombuild#

who has any sollution ?

i deleted the .tar.gz files, tried mysql 5.1 and 5.5 (5.1 was running!)
tried to 'delete' /usr/local/mysql/

the directorys is there, (symlink to /usr/local/mysql-5.1.58-linux-x86_64)

something stranges:

srv01:/usr/local# mysqld --help
mysqld Ver 5.0.32-Debian_7etch8-log for pc-linux-gnu on i486 (Debian etch distribution)

Its a 64bits Debian !


help!
 
Last edited:
Run the script for mysql that is in /usr/local/directadmin/scripts

After that you can use custombuild to update it.
 
Run the script for mysql that is in /usr/local/directadmin/scripts

After that you can use custombuild to update it.

i did, but mysql.sh is coming with version 5.0.x ! ?
Do I need to change anything?
 
allright, i removed /home/mysql & /usr/local/mysql and run mysql.sh: thats working

# mysql --version
mysql Ver 14.12 Distrib 5.0.67, for pc-linux-gnu (i686) using EditLine wrapper

but now start "./build mysql d" Still errors
Code:
# ./build mysql d
Stopping mysqld ...
Stopping mysqld:                [ OK ]
Starting mysqld:                [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: line 316: /usr/local/mysql/bin/my_print_defaults: No such file or directory
/usr/local/mysql/bin/mysqld_safe: line 322: /usr/local/mysql/bin/my_print_defaults: No such file or directory
./build: line 3126: /usr/local/mysql/bin/mysql_upgrade: No such file or directory
./build: line 3132: /usr/local/mysql/bin/mysqlcheck: No such file or directory
Restarting MySQL.
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]
It is recommended to do "./build php n" after MySQL update.
/usr/local/mysql/bin/mysqld_safe: line 316: /usr/local/mysql/bin/my_print_defaults: No such file or directory
/usr/local/mysql/bin/mysqld_safe: line 322: /usr/local/mysql/bin/my_print_defaults: No such file or directory

edit:

lrwxrwxrwx 1 mysql mysql 25 2011-08-31 17:37 mysql -> mysql-5.1.58-linux-x86_64
 
Last edited:
Try:

./build update
./build clean
./build mysql d

no solutions, allready did. (Always that way ;))

weird thing, the mysql.sh script wants the i686 version .. but the OS is debian x86_64 bits version
 
Last edited:
I think .. the last option, cause i allready searched there ... !
 
it seems to be a x86 vs x86_64 problem.

Debian 4.0 x86_64 AMD version
but directadmin doesnt have that option ! only 5.0+ 64bits
....
Confused
 
Why would you have debian 4 ... thats really old.
l

I know, we are setting up our VPS setup at the moment, but still testing ..

at the moment ive 5.0.67 working, but none of the users can login.
I see in the mysql.user table all users so far i can see.
all the databases are accissable ...but stil no access...

what should the best solution
edit : it looks like the wrong data is been used now !


EDIT: FIXED ! ln -s /var/lib/mysql /usr/local/mysql/data
but ... OLD version (5.0.67...)
if i change de LN -s /usr/local/mysql to 5.1.58-i686 MySQL wont work anymore ...
 
Last edited:
Back
Top