PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 3rd, 2007, 03:02 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Location: New York City
Posts: 23
SQL connect error

Sorry, posted this in the wrong place.

Hi:

Just upgraded to 6.01 from 5.6 and everything appeared to go fine. Only problem is I get this error when I click on a thumbnail in the gallery: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/birds/www/www/photopro/showphoto.php on line 83

Also I get this error when I try to access the admin control panel: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql5.sock:3306' (2) in /home/birds/www/www/photopro/pp-inc.php on line 200
I cannot connect to the PhotoPost database. [$php_errormsg]

Clearly I am not connecting to the db but can't for the life of me figure out why.

I recently migrated the db to mySQL5 but didn't have any problem. I am using the db host name recommended by the hosting company instead of localhost.

Thanks.

Cal
calvorn is offline   Reply With Quote
Old December 3rd, 2007, 03:33 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
You need to use the valid mysql information to connect to mysql and it appears with that error your information is indeed incorrect. Editing the config-inc.php file with the proper info would stop your issue.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 3rd, 2007, 03:38 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Location: New York City
Posts: 23
sql connect error

This is what my ISP says I should use and that's what I am using--

Local (web applications): Host: localhost | Socket: /tmp/mysql5.sock
Note: Most PHP applications/scripts will accept the following syntax:
MySQL Host: localhost:/tmp/mysql5.sock

I am using the part in bold.

Can you see any part of that syntax that is wrong?

Thanks.

Cal
calvorn is offline   Reply With Quote
Old December 3rd, 2007, 04:00 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Location: New York City
Posts: 23
back to mySQL4

I went back to mySQL4 and can connect to the database now. Most everything works except I am missing a category and I get this error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/birds/www/www/photopro/pp-inc.php on line 1143

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/birds/www/www/photopro/pp-inc.php on line 1147

Any ideas?

Thanks.

Cal
calvorn is offline   Reply With Quote
Old December 3rd, 2007, 04:24 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Location: New York City
Posts: 23
Fixed it

Didn't have vb integration turned on and then just turned off category cache and everything works fine.

Would still like to get mySQL5 db working but that's something to hash out wit my ISP.

Thanks.
calvorn is offline   Reply With Quote
Old December 3rd, 2007, 04:38 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
yeah make sure you have ran any upgrades you needed to run but yeah looks like you have some issue updating mysql.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 30th, 2008, 03:40 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2003
Location: Hong Kong
Posts: 57
Send a message via AIM to eastestuary
I have started to get the same problem as above once I upgraded to mysql5. I must have the same hosting provider, because I have exactly the same recommendation in place of localhost. All of my other applications work just fine after the upgrade and using 'localhost:/tmp/mysql5.sock' in place of 'localhost' for the database connection. Only Photopost is not working.

My error message:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql5.sock:3306' (2) in /home/dba/www/www/photosdba/pp-inc.php on line 200
I cannot connect to the PhotoPost database. [$php_errormsg]

The path has never changed, only the database.

I need help resolving this.

Last edited by eastestuary; October 30th, 2008 at 08:17 PM.
eastestuary is offline   Reply With Quote
Old November 1st, 2008, 05:07 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
I would suggest in our config file you make sure the configuration info entered to connect to the database etc has not changed. what you have in that file is incorrect.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 2nd, 2008, 06:13 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Mar 2003
Location: Hong Kong
Posts: 57
Send a message via AIM to eastestuary
Chuck, you are absolutely correct. The latest config file worked fine.
eastestuary is offline   Reply With Quote
Old November 2nd, 2008, 08:15 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Not a problem have a good evening.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Error - mysql_connect() [function.mysql-connect]: dfriestedt Photopost Pro Installation & Upgrades 5 January 15th, 2007 08:16 AM
SQL Error cbr929rrerion Installs and Upgrade - vBulletin 3.5.X 3 March 3rd, 2006 03:56 PM
Error: cannot connect to the Users database siteworthy Photopost Pro Installation & Upgrades 9 January 3rd, 2006 09:57 AM
Link-ID == false, connect failed mysql error number: 0 StewardManscat Installs and Upgrade - vBulletin 3.0.X 7 November 22nd, 2005 01:54 PM
error message: cannot connect to the user database asherariel Photopost Pro Installation & Upgrades 1 July 24th, 2004 12:13 PM


All times are GMT -5. The time now is 07:24 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0