Change from MS SQL to MySql

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/31/2009 9:25:29 AM
Gravatar
Total Posts 123
/Mats Lillnor

Change from MS SQL to MySql

Happy new year!

I have just signed up for hosting at a web hotel, so I will move my site that I currently host myself on my broadband connection to the web hotel instead.

However, at home I have set up the site with MS Sql Server Express 2008 and at the Web hotel there is only the option of MySql. So the question is if it is possible to migrate the database from MS SQL to MySql?

 

Br
/Mats

1/3/2010 11:13:42 AM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Change from MS SQL to MySql

Hmm, tricky problem apparently ;)

 

My idea for solving this would be to set up another site at home with MySQL and configure all standard settings and so on manually. Copy all files including images, documents etc. and then (with help from a friend who is a DB Guru) to write a script that dumps content from the MSSQL-DB and another one that imports it into the MySQL-DB if that is possible.

Of course some things cannot be imported/exported, but I guess most content can at least. I could make the site structure with blank pages manually, but I need documentation about the database structures, table names and so on and some hints. Can I find all this within the developer documentation?

If I am successful with this, of course the migration scripts will be made available to the community. Or is a migration utility something that should go into "Feature Requests" instead?

 

Br
/Mats

1/3/2010 11:29:02 AM
Gravatar
Total Posts 18439

Re: Change from MS SQL to MySql

Migrating from one db platform to another is not currently supported. It may be possible to do it with various tools and a lot of time but I have no easy advice for you on that. Once upon a time in a far away galaxy I migrated joeaudette.com from Rainbow portal running on MS SQL into an early version of mojoportal using MySql. I used the SqlYog enterprise, it enabled me to do odbc queries against ms sql and then insert data based on selecting from the odbc queries.

Some day I may make an add on product for exporting and importing data to and from xml but it will not be any time soon.

There is no schema documentation available but the schema is observable using any number of tools.

I would recommend just find a host that supports MS SQL. If you decide to try and migrate, I would first make sure mojopotal using MySql works on that host with a new db or you may do a lot of work and then it still does not work.

Best,

Joe

1/4/2010 4:49:57 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Change from MS SQL to MySql

Arrgh!

Ok, just to roll up the sleeves and recreate the site from scratch and a lot of copying-pasting :). It is only about 80 pages with a few contents on each page... No immediate hurry, so I do it an hour now and then during this week.

It is a perfect oppurtunity to clean up and also to switch to extensionless urls. In order to have links on other sites that point into my site to continue working I use the 301 redirect manager to redirect to the the old urls. In most cases these are the same but now without the .aspx extension.

However, it is a tedious task to enter each one in manually. Is there a way to implement "wildcards" for this so that every referral to a ".aspx"-page is redirected to its extensionless counterpart. I understand that this might lead to some problems for admin-pages and so on, but all of them are in subdirectories so it would be possible. I have created friendly urls for "/login"->"/secure/login.aspx" and so on.

(Redirect "/*.aspx" to "/*" did not work ;))

 

/Mats

1/5/2010 1:46:40 PM
Gravatar
Total Posts 18439

Re: Change from MS SQL to MySql

Sorry, but no there is currently no wildcard 301 redirecting in mojoportal, it only redirects specific urls to other specific urls. 

Best,

Joe

2/23/2010 2:46:07 AM
Gravatar
Total Posts 1

Re: Change from MS SQL to MySql

Use a tool to migrate database from mssql to mysql database, i use dbload for the conversion of database.

Find Here : http://www.dbload.com

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