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 November 26th, 2006, 05:48 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 83
MySQL Command Error on upgrade to 5.6

I just ran the upgrade to 5.6 and got this

Preparing to update database...
Error performing MySQL command: CREATE TABLE pp_search ( searchid INT( 12 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , userid INT( 12 ) NOT NULL DEFAULT '0', searchtype VARCHAR( 1 ) NULL , searchterms VARCHAR( 250 ) NULL , searchdate VARCHAR( 5 ) NULL , cats MEDIUMTEXT NULL , name VARCHAR( 64 ) NULL , preview SMALLINT( 1 ) NOT NULL DEFAULT '1', idlist MEDIUMTEXT NULL , numresults INT( 5 ) NOT NULL DEFAULT '0', ipaddress VARCHAR( 15 ) NULL , searchtime FLOAT( 3, 6 ) NOT NULL DEFAULT '0', date INT( 15 ) NOT NULL DEFAULT '0' )
Error: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'searchtime').


What do I need to do please?
optrex is offline   Reply With Quote
Old November 26th, 2006, 02:30 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
try altering the query in the upgrade file this

FLOAT( 3, 6 )

to this

FLOAT( 6, 6 )
__________________
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 27th, 2006, 03:21 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 83
Thanks Chuck,

I've run the upgrade with the float modification. I now get this:

Error performing MySQL command: ALTER TABLE pp_users ADD lastphoto INT( 12 ) NOT NULL DEFAULT '0', ADD lastdate INT( 15 ) NOT NULL DEFAULT '0'
Error: Duplicate column name 'lastphoto'

Error performing MySQL command: INSERT INTO pp_settings VALUES (221,'Require users to be registered to use search?','searchreg','','no',1,14)
Error: Duplicate entry '221' for key 1

Error performing MySQL command: INSERT INTO pp_settings VALUES (222,'Maximium number of search results to return?','searchmax','On larger sites, the less the better.','500',2,14)
Error: Duplicate entry '222' for key 1

Error performing MySQL command: INSERT INTO pp_settings VALUES (223,'Number of seconds between searches?','searchto','The number of seconds a user must wait between searches.','30',3,14)
Error: Duplicate entry '223' for key 1

Error performing MySQL command: INSERT INTO pp_settings VALUES (224,'Number of days to hold search results?','searchhold','','7',5,14)
Error: Duplicate entry '224' for key 1

Error performing MySQL command: INSERT INTO pp_settings VALUES (225,'Display who is viewing a category?','catonline','This option adds a query to the Show Gallery page.','yes',5,4)
Error: Duplicate entry '225' for key 1
optrex is offline   Reply With Quote
Old November 27th, 2006, 06:50 AM   #4 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
That are just telling you that those were already added; you can ignore them.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old November 27th, 2006, 09:52 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2006
Posts: 83
cheers michael
optrex 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
MySQL Error during upgrade from 5.5 to 5.5 Illuvatar123 Photopost Pro Installation & Upgrades 4 November 12th, 2006 12:18 PM
How do i add a subcategory with a mysql command? daily10 Photopost Pro How Do I...? 1 October 30th, 2006 09:07 AM
Help setting permissions (using mySQL command) criscokid Photopost Pro How Do I...? 1 February 13th, 2006 08:48 AM
MySQL errors after upgrade Rich Z Classifieds Bug Reports 2 March 14th, 2005 07:04 PM


All times are GMT -5. The time now is 01:02 AM.

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