Contacto

CONTACTAR EN CASO DE EMERGENCIAS Móvil +56963679637 - MAIL : CONSULTADBABLOCK@GMAIL.COM
- SOPORTE REMOTO EN BASE DE DATOS ORACLE - ORACLE LINUX - ORACLE VM SERVER - ORACLE RAC - ORACLE DATA GUARD
- UPGRADES - CAPACITACION

Sunday, August 29, 2010

error while loading shared libraries: libmysqlclient.so.15

Para instalar la base de datos MYSQL versión 5.1 en OEL 5 x86_64bit se debe configurar el package MySQL-server-community-5.1.49-1.rhel5.x86_64.rpm de la siguiente manera:

[root@localhost home]# rpm -Uvh MySQL-server-community-5.1.49-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

Starting MySQL.[ OK ]
Giving mysqld 2 seconds to start
[root@localhost home]# service mysql status
MySQL running (26156) [ OK ]

Hasta aquí la instalación funciona sin problemas; pero al momento de ejecutar cualquier comando, se genera el siguiente error:

[root@localhost home]# /usr/bin/mysqladmin -u root password 'heretic'
/usr/bin/mysqladmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

Solucionando el problema de la librería compartida libmysqlclient.so.15




1.- Acceder al directorio /usr/lib64

2.- Con el comando wget bajar directamente el archivo libmysqlclient.so.15 en el directorio /usr/lib64. Es muy importante tener acceso a Internet para acceder al sitio
http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15

3.- Para verificar que efectivamente la librería obtenida este funcionando correctamente y se encuentre en el lugar corresponde, se debe ejecutar el comando "locate":

[root@localhost home]# locate libmysqlclient
/usr/lib64/mysql/libmysqlclient.so.15
/usr/lib64/mysql/libmysqlclient.so.15.0.0
/usr/lib64/mysql/libmysqlclient_r.so.15
/usr/lib64/mysql/libmysqlclient_r.so.15.0.0

BONUS:

Para crear una base de datos en MYSQL, se debe ejecutar el siguiente comando:

mysqladmin -u root -p create dbprueba


Saludos.

Atte.,
Alberto Silva G.
Viva Linux!!!

No comments: