MySQL install 2.2.5.4

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/14/2008 1:34:32 AM
Gravatar
Total Posts 18

MySQL install 2.2.5.4

Trying to create the database from scratch, or updating an older database (2.2.3.9), causes MySQL exceptions: Error '150's while trying to create tables (mp_sites from scratch, another one when upgrading). Any ideas?

MySQL installation works fine with 2.2.39 and consists MySQL 5.1.22-rc server, and 5.0.8.1 .Net driver.

 

Allister

4/14/2008 5:11:14 AM
Gravatar
Total Posts 18439

Re: MySQL install 2.2.5.4

Hi Allister,

If you copied the files over a previous installation and then changed the connection string to a new db its possible you have an extra script in the /Setup/applications/mojoportal-core/SchemaInstallScripts/mysql folder

There should only be one script in this folder, if there is more than one then delete all except the highest version and start again with a clean db.

The logic is if mp_Sites table doe not exist then first run scripts from the above folder (but as I said there should be only one)

Then it will run additional scripts from the /Setup/applications/mojoportal-core/SchemaUpgradeScripts/mysql folder if the any exist with higher versions

Hope it helps,

Joe

4/14/2008 7:03:14 AM
Gravatar
Total Posts 18

Re: MySQL install 2.2.5.4

Hi Joe,

I didn't copy the new release over an existing install, although I did try (after failing to create a new db) updating an existing db. The new install is completely clean and separate to the older install.

There is only the 2.2.4.8.config file in /Setup/applications/mojoportal-core/SchemaInstallScripts/mysql, and it is this script which fails on the first CREATE TABLE with the (it appears) dereaded error 150!

It's an identical story when I try updating an existing DB (2.2.3.9) db, except here the failure is in the first update script (also when it tries to create a table!).

I suspect the problem might have something to do with MySQL 5.1? I've tried a new connector (5.1.5), but that hasn't fixed it! Strange I can run the scripts in the MySQL browser without problem?

I'll let you know what I find; i was just hoping I wasn't the first!

All the best,

Allister

4/14/2008 9:31:26 AM
Gravatar
Total Posts 18

Re: MySQL install 2.2.5.4

Hi Joe,

The problem with the install (either upgrading or creating the db from scratch) was MySQL 5.1! I tried both the (newer) 5.1.5.0 and older 5.0.8.1 connectors with the same results (the scripts fail in multiple places).

Downgrading to MySQL 5.0.51 solved all the problems. I could create from new, or upgrade a 2.2.3.9 db without a hitch.

Once the database is created (scripts run), the product runs fine with MySQL 5.1 (as far as I've tested!); it's simplly the scripts have problems!

Yes another job for the future (I think 5.1 is now released, or very soon!)

Allister

You must sign in to post in the forums. This thread is closed to new posts.