Error: Conexion con la Base de Datos

Error: Conexion con la Base de Datos

de Marta Mañani -
Número de respuestas: 4

Hola, soy novata. Pero ya me ha pasado dos veces que me sale el error:

Error: database driver problem detected

The site administrator should verify server configuration

Unknown driver native/mysql

Tamppoco puedo entrar en phpmyadmin:

MySQL ha dicho: Documentación

#2002 - No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión.

El servidor no está respondiendo (o el zócalo local al servidor MySQL no está configurado correctamente). 

 

Una de ellas fue cuando instalé un nuevo modulo, al día siguiente me salía eso. Desinstale e instale otra vez XAMPP y moodle, y lo deje instalado todo correctamente o eso parecia, no cree un curso nuevo, y al entrar hoy de nuevo me vuelve a salir el error.

He mirado el config.php y el usuario y pass son los que yo puse. Estoy en window vista con moodle 2.6 y xampp 1.8.

Al intentar arrancar mysql me sale este error: 

12:06:26 [mysql] Error: MySQL shutdown unexpectedly.
12:06:26 [mysql] This may be due to a blocked port, missing dependencies,
12:06:26 [mysql] improper privileges, a crash, or a shutdown by another method.
12:06:26 [mysql] Press the Logs button to view error logs and check
12:06:26 [mysql] the Windows Event Viewer for more clues
12:06:26 [mysql] If you need more help, copy and post this
12:06:26 [mysql] entire log window on the forums

¿Alguna idea de qué puede pasar?

Promedio de valoraciones: -
En respuesta a Marta Mañani

Re: Error: Conexion con la Base de Datos

de JC IP -

Que tal Marta, una pregunta ¿haz visto lo que te sale en los logs de MySQL?, ¿podrías compartir dicha información?.

Algo de lo que te sugiere el error es que cheques que el puerto MySQL (3306) no se este bloqueado por el firewall, si ese esto añade una excepción en el firewall o si no es problema "bajalo", o también es probable que te falte algún módulo entre PHP y MySQL

Te comento que en varias ocaciones a mi me ha pasado que no corre el MySQL(en linux) por que tengo llena la partición (por diferentes razones) no se si sea tu caso.

Salu2.

En respuesta a Marta Mañani

Re: Error: Conexion con la Base de Datos

de Adolfo Juárez Briones -

Saludos.

Según yo te falta el driver de conexión externa php-mysql algo así, el web y la base están en el mismo servidor  cierto?

 

 

En respuesta a Adolfo Juárez Briones

Re: Error: Conexion con la Base de Datos

de Marta Mañani -

2014-02-21 10:17:57 5836 [Note] Plugin 'FEDERATED' is disabled.
2014-02-21 10:17:57 4ec InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2014-02-21 10:17:57 5836 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-21 10:17:57 5836 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-02-21 10:17:57 5836 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-21 10:17:57 5836 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-21 10:17:57 5836 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2014-02-21 10:17:57 5836 [Note] InnoDB: Completed initialization of buffer pool
2014-02-21 10:17:58 5836 [Note] InnoDB: Highest supported file format is Barracuda.
2014-02-21 10:17:58 5836 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 6511607 in the ib_logfiles!
2014-02-21 10:17:58 5836 [Note] InnoDB: Database was not shutdown normally!
2014-02-21 10:17:58 5836 [Note] InnoDB: Starting crash recovery.
2014-02-21 10:17:58 5836 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-02-21 10:17:58 5836 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace moodle/mdl_config_plugins uses space ID: 2 at filepath: .\moodle\mdl_config_plugins.ibd. Cannot open tablespace mysql/innodb_index_stats which uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd
InnoDB: Error: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.

Ese es el log de mysql error

Y si, al usar xampp tengo base de datos y servidor todo en mi equipo. Y tambien lo tengo un poco "lleno". Probare a limpiarlo un poco. Y el driver donde lo consigo?

muchas gracias!