PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   PP Pro MySQL Install ERROR (http://www.photopost.com/forum/photopost-pro-installation-upgrades/145942-pp-pro-mysql-install-error.html)

gmatthews June 3rd, 2011 01:25 PM

PP Pro MySQL Install ERROR
 
Support,

During the installation script of PP Pro, we are getting the following error related to MySQL:

==================================
Step 3: MySQL error reported: [CREATE TABLE IF NOT EXISTS pp_photoviews (photoid mediumint(9) NOT NULL default '0') TYPE=HEAP]
Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=HEAP' at line 1
Database: vbforum

Step 3: MySQL error reported: [INSERT INTO pp_currency VALUES (23,'Netherlands Antilles, Guilders/Florins','ANG','ƒ', '2')]
Result: Data too long for column 'name' at row 1
Database: vbforum
==================================

Our environment is as follows:

* Windows Server 2008 R2
* MySQL 5.5.12
- DEFAULT CHARSET=utf8
- COLLATE=utf8_bin
* PHP 5.3.6
* VB 4.1.3 Patch Level 1

Please advise.

G.

Chuck S June 3rd, 2011 02:07 PM

Try turning off strict mode in mysql and see if that helps.

http://www.photopost.com/forum/1149965-post1.html

gmatthews June 3rd, 2011 02:20 PM

Support,

To begin, we dropped all pp records from the vbforum table to begin another fresh install attempt.

We disabled strict mode per your recommendation, restarted the MySQL server, verified the changes took effect, and then re-ran the pp install script.

Here is the current MySQL error being reported by the pp installer:

===============================================
Step 3: MySQL error reported: [CREATE TABLE IF NOT EXISTS pp_photoviews (photoid mediumint(9) NOT NULL default '0') TYPE=HEAP]
Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=HEAP' at line 1
Database: vbforum
===============================================

Please review and advise.

G.

gmatthews June 3rd, 2011 02:46 PM

Support,

To test whether or not it was a collation issue, we dropped the pp tables again, changed the vbforum db collation (including all tables and columns) to general_ci (from bin), and re-ran the pp installer.

Same error and we just gave you.

G.

gmatthews June 3rd, 2011 04:14 PM

Support,

We are still unable to successfully install this application. Are you guys working on a solution?

G.

gmatthews June 3rd, 2011 07:26 PM

Support,

Do we need to post this issue somewhere else or email another support address?

G.

Chuck S June 3rd, 2011 07:53 PM

what is your list of issues what are the errors

You sure you set this line?

1. Replace in my.ini the current sql-mode line with sql-mode="MYSQL40"
2. Start MySQL with the option --sql-mode="MYSQL40"
3. Execute the query SET GLOBAL sql_mode='MYSQL40'

You would need to restart your server after any change. There should be no issues I am aware of but then again your using the latest version of mysql out there which no webhost does simply to let mysql work out there bugs.

You can send us information to access your site and server and we can take a look at your issues.

gmatthews June 3rd, 2011 07:56 PM

Support,

You've got to be kidding. We waited over five hours for you to simply ask us for information which we already provided? I am the sysadmin and am more than familiar with how MySQL works and how to adjust it's settings.

AGAIN:

We dropped all pp records from the vbforum table to begin another fresh install attempt.

We disabled strict mode per your recommendation, restarted the MySQL server, verified the changes took effect, and then re-ran the pp install script.

Here is the current MySQL error being reported by the pp installer:

===============================================
Step 3: MySQL error reported: [CREATE TABLE IF NOT EXISTS pp_photoviews (photoid mediumint(9) NOT NULL default '0') TYPE=HEAP]
Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=HEAP' at line 1
Database: vbforum
===============================================

To test whether or not it was a collation issue, we dropped the pp tables again, changed the vbforum db collation (including all tables and columns) to general_ci (from bin), and re-ran the pp installer.

Same error and we just gave you.

The version of MySQL we are using is the current, STABLE release. Don't you test your software against these releases as they become available?

Regardless, we need you to either fix your code or provide us with some other sort of direction. We renewed our license yesterday and are still unable to install the current version.

G.

Chuck S June 3rd, 2011 08:04 PM

This is a weekend after normal business hours being friday and all. I last replied to you before I left the office as I leave the office at 4.

Anyway if your only getting ONE ERROR with the creation of that one table then I think your issue is with TYPE=HEAP. Newer mysqls actually want engine.

Search for TYPE=HEAP in the install.php and change it to ENGINE=HEAP and then run your install script. It is fine to leave the PP tables you will simply get a bunch of duplicate mysql errors they are fine just run through the install and you should be fine. In fact your present install if you went all the way through it should be fully functional.

If you do not want to reinstall and do a quick test if what you already installed will work then just simply create the missing table in mysql command line like so.

Code:

Content visible to verified customers only.

gmatthews June 3rd, 2011 08:08 PM

Support,

We'll go ahead and try that then. Out of curiosity, if you're aware that "newer mysqls actually want engine", then why not put that into your code, if at a minimum, via a conditional based on what version of sql the server has installed?

Just a suggestion.

G.

Chuck S June 3rd, 2011 08:11 PM

If you look at our install script all the rest have engine. It seems that one table was overlooked ;)

gmatthews June 3rd, 2011 08:16 PM

Support,

No problem. It fixed the issue.

Thanks.

G.

Chuck S June 3rd, 2011 08:18 PM

Enjoy your weekend.


All times are GMT -5. The time now is 09:08 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97