instalar desinstalar configurar mysql timeout centos

desinstalar - mysql server rpm



Se produjo un error de tiempo de espera al intentar iniciar MySQL Daemon. CentOS 5 (5)

Me encontré con problemas con MySQL en mi CentOS. Tuve algunos problemas y hice una copia de seguridad de mi base de datos y eliminé mysql con todas las dependencias. Después de eso corrí reinstalado:

yum groupinstall "MySQL Database"

Instalado sin errores.

Ejecutando el demonio mysql:

service mysqld start Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]

Yo tambien corri

# /usr/bin/mysql_install_db --user=mysql Installing MySQL system tables... 120112 1:49:44 [ERROR] Error message file ''/usr/share/mysql/english/errmsg.sys'' had only 480 error messages, but it should contain at least 481 error messages. Check that the above file is the right version for this program! 120112 1:49:44 [ERROR] Aborting Installation of system tables failed! Examine the logs in /var/lib/mysql for more information. You can try to start the mysqld daemon with: /usr/libexec/mysqld --skip-grant & and use the command line tool /usr/bin/mysql to connect to the mysql database and look at the grant tables: shell> /usr/bin/mysql -u root mysql mysql> show tables Try ''mysqld --help'' if you have problems with paths. Using --log gives you a log in /var/lib/mysql that may be helpful. The latest information about MySQL is available on the web at http://www.mysql.com Please consult the MySQL manual section: ''Problems running mysql_install_db'', and the manual section that describes problems on your OS. Another information source is the MySQL email archive. Please check all of the above before mailing us! And if you do mail us, you MUST use the /usr/bin/mysqlbug script!

Comprobando los registros:

less /var/log/mysqld.log

El archivo de registro está vacío. Ni siquiera sé cómo depurarlo y no estoy seguro de qué hacer.

¿Alguna recomendación?

Gracias


Antes de iniciar el servidor mysql, cambie el nombre de los archivos /var/lib/mysql/ib_logfile0 y /var/lib/mysql/ib_logfile0 y reinicie el servidor

en linux / unix

mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0_old mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1_old

entonces

service mysqld restart


En mi caso, la causa fue que configuré key_buffer_size en /etc/my.cnf cuando lo comenté, mysqld comenzó bien.


Oye, a veces es porque te quedaste sin espacio en el disco ... ¡así que ejecuta un df -h superficial para estar seguro! (Esto solo me pasó a mí: P).


Prueba esto:

rm $(grep socket /etc/my.cnf | cut -d= -f2) && service mysqld start


Sé que lo pediste hace mucho tiempo, pero desde que la gente buscó "Error de tiempo de espera al intentar iniciar MySQL Daemon". Puede terminar aquí, hay varias soluciones posibles a ese error. Éstos son algunos de ellos:

Primero, en lugar de ejecutar el service mysqld start o service mysqld restart intente ejecutarlo:

$ service mysqld stop; mysqld_safe &

Hay problemas conocidos con las líneas mysqladmin en el script /etc/init.d/mysqld .

Si esto no funciona, intente lo siguiente: compruebe si hay suficiente espacio libre en el disco (especialmente en /var ):

$ df -h

Verifique los posibles mensajes de error en estos archivos (no todos pueden existir):

# tail -n 30 /var/log/messages

# tail -n 30 /var/log/mysqld.log

# tail -n 30 /var/lib/mysql/*.err

# tail -n 30 /var/log/mysql/error.log

A continuación, asegúrese de que /etc/my.cnf use ...

socket=/var/lib/mysql/mysql.sock

... y que el directorio /var/lib/mysql/ realmente existe.

Establezca los permisos y las propiedades correctas:

# chown -R mysql.mysql /var/lib/mysql/

# chmod g+w /var/run/mysqld/

# chgrp mysql /var/run/mysqld/

¿Sigue sin funcionar? Intente cambiar la dirección de my.cnf en my.cnf a 127.0.0.1 o 0.0.0.0, o comente esa línea.

Si aún no tiene suerte, busque más información sobre mysql_install_db y, dado que su base de datos InnoDB puede estar dañada, también busque set-variable=innodb_force_recovery=6 .