Mysql error connect failed Freepbx 11

hi, i’m having this same problem, my server was shutting down several times power outage now i have this error?

FATAL ERROR

DB Error: connect failed

Trace Back

/var/www/html/admin/libraries/db_connect.php:71 die_freepbx()
[0]: DB Error: connect failed

/var/www/html/admin/bootstrap.php:91 require_once()
[0]: /var/www/html/admin/libraries/db_connect.php

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:99 include_once()
[0]: /etc/freepbx.conf

What happens when you try to start mysql(d) ?

When I try to start it I get this error:
[FAILED]

Inadequate info. what OS are you using?

uname -a

I have a freepbx 11 distribution

again

uname -a

Linux prestamosNacho 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux

service mysqld status

mysqld is stopped

service mysqld start

this message:
[FAILED]

Then its broken, now just type

mysqld

-bash: mysqld: command not found

I think that the mysql base is damaged, I need to know how I can recover it

mysqlcheck --repair --all-databases

mysqlcheck: Got error: 2002: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) when trying to connect

mysqldump --all-databases |tee dump.sql

?

this error:
mysqldump: Got error: 2002: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111) when trying to connect

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.