no mysq after upgrading

danny12345

New member
Joined
Nov 7, 2014
Messages
6
Hello

I tried to update my php, mysql directadmin and apache this way: http://duntuk.com/update-directadmin-server-custombuild-20

Only the mysql has errors, i can load the direcadin, but going to mysql i get:

Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Well, i used putty and after upgrading mysql, i got an internet connection error and fatal shutoff.
I can not use mysql and all my website anymore.
Then when i want to re-install mysql etc, i get :


[root@b08s48aq custombuild]# ./build mysql

error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.6.21-1.linux_glibc2.5.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.6.21-1.linux_glibc2.5.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.6.21-1.linux_glibc2.5.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.6.21-1.linux_glibc2.5.x86_64.rpm
Stopping mysqld ...
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
MySQL server PID file could not be found! [FAILED]
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Upgrading MySQL to 5.6
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [ 25%]
2:MySQL-client ########################################### [ 50%]
3:MySQL-devel ########################################### [ 75%]
Some previous upgrade was not finished:
-rw-r--r-- 1 root root 427 Nov 7 09:22 /var/lib/mysql/RPM_UPGRADE_MARKER
Please check its status, then do
rm /var/lib/mysql/RPM_UPGRADE_MARKER
before repeating the MySQL upgrade.
error: %pre(MySQL-server-5.6.21-1.linux_glibc2.5.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping MySQL-server-5.6.21-1.linux_glibc2.5
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
Starting MySQLCouldn't find MySQL server (/usr/bin/mysqld_s[FAILED]
Giving mysqld a few seconds to start up...
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
cp: `/usr/lib/libmysqlclient.so' and `/usr/lib/mysql/libmysqlclient.so' are the same file
Restarting MySQL.
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
MySQL server PID file could not be found! [FAILED]
/etc/init.d/mysqld: line 256: my_print_defaults: command not found
Starting MySQLCouldn't find MySQL server (/usr/bin/mysqld_s[FAILED]
It is recommended to do "./build php n" after MySQL update.

Could you please help and tell me what should i do ???

Regards

Danny
 
Back
Top