MySQL database giving errors. Not sure where to change db?
damboyer
Joined: 2004-12-03
Posts: 5 |
Posted: Sun, 2005-01-23 17:52 |
http://dontravels.existhost.com/gallery/main.php Warning: mysql_pconnect(): Lost connection to MySQL server during query in /hsphere/local/home/damboyer/dontravels.existhost.com/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 354 Error (ERROR_STORAGE_FAILURE) * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 233 (gallerystatus::error) * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 181 (mysqldatabasestorage::_getconnection) * in modules/core/classes/GalleryStorage.class at line 212 (mysqldatabasestorage::init) * in modules/core/classes/Gallery.class at line 176 (gallerystorage::search) * in modules/core/classes/helpers/GalleryUserGroupHelper_medium.class at line 246 (gallery::search) * in modules/core/classes/GalleryCoreApi.class at line 1523 (galleryusergrouphelper_medium::fetchgroupsforuser) * in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 89 (gallerycoreapi::fetchgroupsforuser) * in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 57 (galleryuserhelper_simple::hasitempermission) * in modules/core/classes/GalleryCoreApi.class at line 322 (galleryuserhelper_simple::asserthasitempermission) * in modules/core/ShowItem.inc at line 81 (gallerycoreapi::asserthasitempermission) * in modules/core/classes/GalleryView.class at line 245 (showitemview::loadtemplate) * in main.php at line 281 (showitemview::doloadtemplate) * in main.php at line 47 * in main.php at line 40 Warning: mysql_pconnect(): Lost connection to MySQL server during query in /hsphere/local/home/damboyer/dontravels.existhost.com/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 354 Error (ERROR_STORAGE_FAILURE) * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 233 (gallerystatus::error) * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 181 (mysqldatabasestorage::_getconnection) * in modules/core/classes/GalleryStorage.class at line 384 (mysqldatabasestorage::init) * in main.php at line 59 (gallerystorage::committransaction) * in main.php at line 40 Warning: mysql_pconnect(): Lost connection to MySQL server during query in /hsphere/local/home/damboyer/dontravels.existhost.com/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 354 Warning: mysql_pconnect(): Lost connection to MySQL server during query in /hsphere/local/home/damboyer/dontravels.existhost.com/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 354 I am not sure where to change the database user information. My hosting company was recently screwing around with MySQL updates and this broke the Gallery app. The blog still works but... photos are more fun. Thanks for any help. Don |
|
Posts: 7994
Hm. You're using persistent connections but it looks like the database is disconnecting them on you. I wonder if your hosting company is trying to restrict that..
Upgrade to the latest nightly snapshots and edit your config.php to set this:
If you don't have that line, just add it right before this line:
that should disable persistent connections and may resolve this problem.
Posts: 5
I tried adding that line, but I still recieve the same error. What do you recommend for next steps? Thanks for your help.
Don
Posts: 7994
Did you upgrade to the latest nightly snapshot of G2?
Posts: 5
I have been trying to upgrade to the latest nightly version. I downloaded the version I have on Sunday evening.
This is the error I am getting at Step 5 Database Setup:
At first I was using the exact same database as used in the previous install. Since that failed I created a new database. I know all of the parameters are identical to the intial install because I have copied them from the config.php file. I'm not sure what is going on...
Posts: 7994
Hm. We're not doing anything very special here. Our connection to the database is dying right at the point where we try to initiate it. My guess is that something is wrong with your database. Do other database apps work properly? Is there anything in the db error logs?