Hello, I tried to upgrade to the latest mysql version but the installation failed and then when I tried to install the old version again I took this error:
Does anyone knows any solution for that? I had mysql 5.1.41 I run the ./build update_versions and it downloaded mysql 5.1.43 along with some other updates which installed successfully...
Thanks
EDIT:
Also when I try to build php I'm getting:
EDIT2:
When I try to restart mysql manually I'm getting this error:
Is there a way to reinstall mysql somehow?
Code:
server:/usr/local/directadmin/custombuild# ./build mysql
Stopping mysqld ...
Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]
Giving mysqld a few seconds to start up...
/usr/local/mysql/bin/mysqld_safe: line 315: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
/usr/local/mysql/bin/mysqld_safe: line 321: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
./build: line 2697: /usr/local/mysql/bin/mysql_upgrade: cannot execute binary file
./build: line 2703: /usr/local/mysql/bin/mysqlcheck: cannot execute binary file
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 315: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
/usr/local/mysql/bin/mysqld_safe: line 321: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
server:/usr/local/directadmin/custombuild#
Does anyone knows any solution for that? I had mysql 5.1.41 I run the ./build update_versions and it downloaded mysql 5.1.43 along with some other updates which installed successfully...
Thanks
EDIT:
Also when I try to build php I'm getting:
Code:
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.16: wrong ELF class: ELFCLASS64
EDIT2:
When I try to restart mysql manually I'm getting this error:
Code:
server:/usr/local# /etc/init.d/mysqld restart
Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]
server:/usr/local# /usr/local/mysql/bin/mysqld_safe: line 315: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
/usr/local/mysql/bin/mysqld_safe: line 321: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
Is there a way to reinstall mysql somehow?
Last edited: