Missing SQL Files

Missing SQL Files

Postby jdornski on Tue Oct 09, 2012 3:09 pm

I get the error below on my lifetype-1.2.11_r7114 site

My control panel has a tool to check/repair sql databases, and it can not find the sql database???

I have a full site backup from a week ago, but before I do a full recover, does anyone have an idea to recover
selected files/folders without creating even more of a mess?

Any idea how this happened?
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'fmartens_lfty1'@'localhost' (using password: YES) in /home/pennyfm/public_html/class/database/pdb/drivers/pdbmysqldriver.class.php on line 103

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/pennyfm/public_html/class/database/pdb/drivers/pdbmysqldriver.class.php on line 133

Fatal error: Uncaught exception 'Exception' with message 'Fatal error: could not connect to the database! Error: ' in /home/pennyfm/public_html/class/database/db.class.php:76 Stack trace: #0 /home/pennyfm/public_html/class/config/configdbstorage.class.php(83): Db->getDb() #1 /home/pennyfm/public_html/class/config/configdbstorage.class.php(63): ConfigDbStorage->_initializeDatabase() #2 /home/pennyfm/public_html/class/config/configdbstorage.class.php(56): ConfigDbStorage->_loadAllValuesFromDatabase() #3 /home/pennyfm/public_html/class/config/config.class.php(103): ConfigDbStorage->ConfigDbStorage(NULL) #4 /home/pennyfm/public_html/plugins/badbehavior/index.inc.php(97): Config::getConfig() #5 /home/pennyfm/public_html/plugins/badbehavior/index.inc.php(137): bb2_read_settings() #6 /home/pennyfm/public_html/plugins/badbehavior/index.inc.php(164): bb2_install() #7 /home/pennyfm/public_html/class/object/loader.class.php(7): include('/home/pennyfm/p...') #8 /home/pennyfm/public_html/index.php(29): lt_include() #9 {main} thrown in /home/pennyfm/public_html/class/database/db.class.php on line 76
Posts: 1
Joined: Wed Sep 12, 2012 2:56 pm
LifeType Version: 1.2.11_r7114

Re: Missing SQL Files

Postby jondaley on Mon Oct 22, 2012 7:39 pm

Sorry that no one answered you until now.

And my answer isn't that great - if the database can't be found, there isn't much you can do except to restore from a backup. (and ask your host what could have happened to your database).
Lifetype Expert
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Return to Other Problems