nohup: redirecting stderr to stdout

I just create /etc/mysql/conf.d/ as I see it's empty in another server with debian 4

But always error message, impossible to install :
Code:
(root@web)-(/usr/local/directadmin/custombuild) $ ./build mysql
       Dumping database da_roundcube
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
       Dumping database dlbdd_bdd1
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
       Dumping database mysql
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
       Dumping database test
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Stopping mysqld ...
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]
Giving mysqld a few seconds to start up...
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Restarting MySQL.
Stopping mysqld:                [ FAILED ]
Starting mysqld:                [ OK ]
It is recommended to do "./build php n" after MySQL update.
 
Again, check the log. It doesn't help to copy those messages, they are inherent to clients that try to connect to the socket, which is not active because MySQL is not running. The error log is the only thing that can help me figure out what's wrong.
 
Ok, I delete /etc/my.cnf

I run
aptitude purge mysql-server
aptitude purge mysql-server-5.0
aptitude purge mysql-server-5.1

So all mysql are deleted (I suppose)

I open
/etc/mysql/my.cnf and comment the line
#!includedir /etc/mysql/conf.d/

So I suppose I have now to reinstall mysql, but I prefer to ask you, I am totally loss... Never had so much problem.

So just run ?
./build mysql

Or something else to do ?
 
You are not able to recompile MySQL with CustomBuild because you have the backup feature on, but that's not a problem: you shouldn't need to recompile it. Just run /etc/init.d/mysql restart and tail the log.
 
Code:
100315 14:55:11 [Note] 
100315 14:55:11 mysqld_safe mysqld from pid file /usr/local/mysql/data/web.pid ended
100315 14:56:01 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
100315 14:56:01 [ERROR] Can't find messagefile '/usr/share/mysql/english/errmsg.sys'
100315 14:56:01 [ERROR] Fatal error: Can't change to run as user 'mysql' ;  Please check that the user exists!

100315 14:56:01 [ERROR] Aborting

100315 14:56:01 [Note] 
100315 14:56:01 mysqld_safe mysqld from pid file /usr/local/mysql/data/web.pid ended
 
Well of course, now that you purged the package (I told you not to do that) you have to reinstall the complete distribution :) remove the backup feature of CustomBuild from the options.conf and recompile it.
 
thanks for all your help.
Always the same error.

I give up, and ask the company to reinstall, with centos. It s better for me
 
Back
Top