Estoy cansado de instalar MySQL y que todo vaya de lujo hoy lunes por eso de ser Lunes he decidio que esta instalacion me de algunos problemas para pelarme hasta dar con la solucion:)

 

El caso es que sobre ubuntu 9.10 instalando un servidor de pruebas aparece el siguiente mensaje de error al intentar iniciar MySQL.

 

Un paquete no se pudo instalar. Intentado recuperarse:
Configurando mysql-server-5.1 (5.1.37-1ubuntu5.5) …
* Stopping MySQL database server mysqld                                                                                                                               [ OK ]
* /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
* Starting MySQL database server mysqld                                                                                                                               [fail]
invoke-rc.d: initscript mysql, action «start» failed.
dpkg: error al procesar mysql-server-5.1 (–configure):
el subproceso script post-installation instalado devolvió el código de salida de error 1
dpkg: problemas de dependencias impiden la configuración de mysql-server:
mysql-server depende de mysql-server-5.1; sin embargo:
El paquete `mysql-server-5.1′ no está configurado todavía.
dpkg: error al procesar mysql-server (–configure):
problemas de dependencias – se deja sin configurar
Se encontraron errores al procesar:
mysql-server-5.1
mysql-server
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
Leyendo la información de estado extendido
Inicializando el estado de los paquetes… Hecho
Escribiendo información de estado extendido… Hecho

 

En en log messages aparece lo siguiente.

 

Mar 28 09:22:24 OPENERB910 kernel: [5170500.952616] type=1503 audit(1301296944.681:425): operation=»open» pid=28679 parent=28678 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:24 OPENERB910 kernel: [5170501.040582] type=1503 audit(1301296944.769:426): operation=»open» pid=28688 parent=28687 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:24 OPENERB910 kernel: [5170501.163194] type=1503 audit(1301296944.893:427): operation=»open» pid=28703 parent=28702 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.289635] type=1503 audit(1301296945.021:428): operation=»open» pid=28724 parent=28723 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.835438] type=1503 audit(1301296945.565:429): operation=»open» pid=28839 parent=28730 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.842411] type=1503 audit(1301296945.573:430): operation=»mknod» pid=28839 parent=28730 profile=»/usr/sbin/mysqld» requested_mask=»w                                 ::» denied_mask=»w::» fsuid=0 ouid=0 name=»/var/lib/mysql/OPENERB910.lower-test»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.844073] type=1503 audit(1301296945.573:431): operation=»mknod» pid=28839 parent=28730 profile=»/usr/sbin/mysqld» requested_mask=»w                                 ::» denied_mask=»w::» fsuid=0 ouid=0 name=»/var/lib/mysql/OPENERB910.lower-test»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.852587] type=1503 audit(1301296945.581:432): operation=»open» pid=28839 parent=28730 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=114 ouid=114 name=»/var/lib/mysql/mysql/plugin.frm»
Mar 28 09:22:25 OPENERB910 kernel: [5170501.890034] type=1503 audit(1301296945.621:433): operation=»open» pid=28839 parent=28730 profile=»/usr/sbin/mysqld» requested_mask=»rw                                 ::» denied_mask=»rw::» fsuid=114 ouid=114 name=»/var/lib/mysql/ibdata1″
Mar 28 09:22:26 OPENERB910 kernel: [5170502.418679] type=1503 audit(1301296946.149:434): operation=»open» pid=28851 parent=28850 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:30 OPENERB910 kernel: [5170506.744744] __ratelimit: 9 callbacks suppressed
Mar 28 09:22:30 OPENERB910 kernel: [5170506.744748] type=1503 audit(1301296950.473:438): operation=»open» pid=28891 parent=28890 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:31 OPENERB910 kernel: [5170507.830529] type=1503 audit(1301296951.561:439): operation=»open» pid=28901 parent=28900 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:32 OPENERB910 kernel: [5170508.904763] type=1503 audit(1301296952.637:440): operation=»open» pid=28911 parent=28910 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:33 OPENERB910 kernel: [5170509.991610] type=1503 audit(1301296953.721:441): operation=»open» pid=28921 parent=28920 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:34 OPENERB910 kernel: [5170511.065987] type=1503 audit(1301296954.797:442): operation=»open» pid=28931 parent=28930 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:35 OPENERB910 kernel: [5170512.130652] type=1503 audit(1301296955.861:443): operation=»open» pid=28941 parent=28940 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:36 OPENERB910 kernel: [5170513.224413] type=1503 audit(1301296956.953:444): operation=»open» pid=28951 parent=28950 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:38 OPENERB910 kernel: [5170514.328227] type=1503 audit(1301296958.057:445): operation=»open» pid=28961 parent=28960 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:39 OPENERB910 kernel: [5170515.423061] type=1503 audit(1301296959.153:446): operation=»open» pid=28971 parent=28970 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:40 OPENERB910 kernel: [5170516.499496] type=1503 audit(1301296960.229:447): operation=»open» pid=28981 parent=28980 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»
Mar 28 09:22:40 OPENERB910 kernel: [5170516.569083] type=1503 audit(1301296960.301:448): operation=»open» pid=28990 parent=28989 profile=»/usr/sbin/mysqld» requested_mask=»r:                                 :» denied_mask=»r::» fsuid=0 ouid=0 name=»/sys/devices/system/cpu/»

 

He buscado documentacion en google y aparece referencia al apparmor pero ese al final no era lo que me ocurria. Investingado mas los log´s

grep mysqld /var/log/daemon.log

Mar 28 09:15:24 OPENERB910 /etc/init.d/mysql[28145]: error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’
Mar 28 09:15:24 OPENERB910 /etc/init.d/mysql[28145]: Check that mysqld is running and that the socket: ‘/var/run/mysqld/mysqld.sock’ exists!
Mar 28 09:21:50 OPENERB910 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Mar 28 09:21:50 OPENERB910 mysqld: 110328  9:21:50 [Warning] Can’t create test file /var/lib/mysql/OPENERB910.lower-test
Mar 28 09:21:50 OPENERB910 mysqld: 110328  9:21:50 [Warning] Can’t create test file /var/lib/mysql/OPENERB910.lower-test
Mar 28 09:21:50 OPENERB910 mysqld_safe: mysqld from pid file /var/lib/mysql/OPENERB910.pid ended
Mar 28 09:22:05 OPENERB910 /etc/init.d/mysql[28626]: error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’
Mar 28 09:22:05 OPENERB910 /etc/init.d/mysql[28626]: Check that mysqld is running and that the socket: ‘/var/run/mysqld/mysqld.sock’ exists!
Mar 28 09:22:25 OPENERB910 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Mar 28 09:22:25 OPENERB910 mysqld: 110328  9:22:25 [Warning] Can’t create test file /var/lib/mysql/OPENERB910.lower-test
Mar 28 09:22:25 OPENERB910 mysqld: 110328  9:22:25 [Warning] Can’t create test file /var/lib/mysql/OPENERB910.lower-test
Mar 28 09:22:25 OPENERB910 mysqld_safe: mysqld from pid file /var/lib/mysql/OPENERB910.pid ended
Mar 28 09:22:40 OPENERB910 /etc/init.d/mysql[28997]: error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’
Mar 28 09:22:40 OPENERB910 /etc/init.d/mysql[28997]: Check that mysqld is running and that the socket: ‘/var/run/mysqld/mysqld.sock’ exists!

 

Finalmente decido mover la cambiar la carpeta de mysql de la instalacion para que genere una nueva pero sin mucha suerte.

 

Al final la solucion fue la siguente.

 

root@OPENERB910:/var/log/samba# sudo sed -i ‘s/dkip-bdb/#skip-bdb/’ /etc/mysql/my.cnf

root@OPENERB910:/var/log/samba# apt-get install mysql-server
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
mysql-server ya está en su versión más reciente.
0 actualizados, 0 se instalarán, 0 para eliminar y 332 no actualizados.
2 no instalados del todo o eliminados.
Se utilizarán 0B de espacio de disco adicional después de esta operación.
Configurando mysql-server-5.1 (5.1.37-1ubuntu5.5) …
* Stopping MySQL database server mysqld                                                                                                                               [ OK ]
* Starting MySQL database server mysqld                                                                                                                               [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.

 

 

Pero la verdadera raiz del problema es que mi compi me habia llenado el disco con pruebas y no tenia sitio para escribir, pero con lo comentado arriba funciona y sin espacio 🙂

 

 

 

 

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO