Error after replacing CMOS battery and memory stick/updates

I have an error popping up and will not let me apply config. Here is what shows when I try.

exit: 1
[FATAL] SQLSTATE[HY000] [2005] Unknown MySQL server host ‘localhost:3306’ (1) SQLSTATE[HY000] [2005] Unknown MySQL server host ‘localhost:3306’ (1)

Trace Back:

/var/www/html/admin/libraries/BMO/Database.class.php:70 PDO->__construct()
[0]: mysql:host=localhost:3306;dbname=asteriskcdrdb
[1]: freepbxuser
[2]: 1e7121ad5ed1

/var/www/html/admin/modules/cdr/Cdr.class.php:35 Database->__construct()
[0]: mysql:host=localhost:3306;dbname=asteriskcdrdb
[1]: freepbxuser
[2]: 1e7121ad5ed1

/var/www/html/admin/libraries/BMO/Self_Helper.class.php:116 Cdr->__construct()

/var/www/html/admin/libraries/BMO/Self_Helper.class.php:36 Self_Helper->autoLoad()
[0]: Cdr

/var/www/html/admin/libraries/BMO/Hooks.class.php:163 Self_Helper->__get()
[0]: Cdr

/var/www/html/admin/libraries/BMO/Hooks.class.php:37 Hooks->preloadBMOModules()

/var/lib/asterisk/bin/retrieve_conf:26 Hooks->updateBMOHooks()

William Clarke Jr
[email protected]

This is pretty clear. Is MySQL up and running properly?

Do you have localhost in your /etc/hosts file?

Log into the console of the server and type “mysql -uroot” and see what happens.

SQL state unknown.So no it is not. Query the init.d for mysql pls.

See next comment

service start mysqld

should start it. You need to look through the logs (start with /var/log/messages, then /var/db/something/error, then /var/log/asterisk/full) and see if you can spot where it’s failing to start.

Obviously, the error log for MySQL is going to give you the most answers.

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