Move from one server to another

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.
11/13/2009 8:41:45 AM
Gravatar
Total Posts 18

Move from one server to another

Hello,

I have moved my Web Site(mojoPortal) and MSSQL database from one server to another, but now I get installation screen when I try to open my web site. Why MojoPortal ask for installation? I have moved the whole database all all files intact. 

Regards,
Tomas

11/13/2009 8:44:26 AM
Gravatar
Total Posts 18

Re: Move from one server to another

I get message below

 

Probing system...

File system permissions ok.

MSSQL database connection ok.

mojoSetup has detected that the database user does not have permission to alter the database schema. You need to correct this or provide a connection string with sufficient permission.

 

database initial schema already exists.

database core schema needs upgrade.

0 site(s) found.



11/13/2009 8:49:16 AM
Gravatar
Total Posts 18

Re: Move from one server to another

I have adjusted User permissions in MSSQL but now MojoPortal tries to run queries, why MojoPortal tries to update database? I use the same database which is used on another server and MojoPortal all files also copied from that server.

 

Probing system...

File system permissions ok.

MSSQL database connection ok.

database permissions are sufficient to alter schema.

database initial schema already exists.

database core schema needs upgrade.

0 site(s) found.

Running script mojoportal-core - 2.2.1.5 - 00:00:01.7968750

An Error Occurred:The stored procedure 'mp_SchemaVersion_SelectOne' doesn't exist.

Source:System.Data

Stack Trace at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at mojoPortal.Data.SqlHelperParameterCache.DiscoverSPParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at mojoPortal.Data.SqlHelperParameterCache.GetSPParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at mojoPortal.Data.SqlHelperParameterCache.GetSPParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at mojoPortal.Data.SqlParameterHelper.InitializeArray() at mojoPortal.Data.SqlParameterHelper.Initialize(String pConnectionInfo, String pCommandText, CommandType pCmdType, Int32 pParamCnt) at mojoPortal.Data.DBPortal.SchemaVersionGetSchemaVersion(Guid applicationId) at mojoPortal.Data.DBPortal.SchemaVersionExists(Guid applicationId) at mojoPortal.Business.DatabaseHelper.UpdateSchemaVersion(Guid applicationId, String applicationName, Int32 major, Int32 minor, Int32 build, Int32 revision) at mojoPortal.Web.UI.Pages.SetupHome.RunUpgradeScripts(Guid applicationId, String applicationName, String pathToScriptFolder, Version versionToStopAt) at mojoPortal.Web.UI.Pages.SetupHome.UpgradeSchema(String applicationName) at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



11/13/2009 9:26:04 AM
Gravatar
Total Posts 18439

Re: Move from one server to another

How did you move the database? What steps did you take to move it?

11/13/2009 9:29:48 AM
Gravatar
Total Posts 18

Re: Move from one server to another

I have selected "export" option in MSSQL server, entered new MSSQL server address and login information, clicked finish and MSSQL server moved database to new location.

11/13/2009 9:38:35 AM
Gravatar
Total Posts 18439

Re: Move from one server to another

That will not work. All of your tables lost their primary keys and indexes and it lost all the stored procedures.

There are only 2 ways it can work.

1. Create a database backup on the original server and restore it on the new server.

2. You "may" also be able to use this tool to script off all the objects and data into a script that can be run on the new machine.

Hope it helps,

Joe

11/26/2009 12:42:49 PM
Gravatar
Total Posts 70

Re: Move from one server to another

Hi, Could you please bring me a light: is there a way to move the sites in a same way for MySQL DB servers? I have the similar situation with MySQL 4.1.22. Is that means what my DB Backup/Restore have lost some data/indexes? Thanks a lot in advance, Igor
11/27/2009 2:12:35 PM
Gravatar
Total Posts 2239

Re: Move from one server to another

Follow the instructions here: http://dev.mysql.com/doc/refman/5.0/en/copying-databases.html.

All you need to do is create backup using mysqldump.

HTH,
Joe D.

11/27/2009 2:40:39 PM
Gravatar
Total Posts 70

Re: Move from one server to another

Thanks a lot! I am not sure what I will be able to implement the import at the remote commerce hosting, but, anyway, you've point me the way. BTW: Is phpMyAdmin used the mysqlimport functionality for the Import option? I will try anyway.. Thanx a lot, again. Igor.
11/28/2009 7:30:57 AM
Gravatar
Total Posts 18439

Re: Move from one server to another

Hi,

Tools like phpMyAdmin can export and import mysql dumps.

I use SqlYog myself, if your connection string works over the internet you should be able to install it locally and connect to your remote db to create a dump on your local machine then connect to the new one and restore it. Typically in shared hosting that is how it would work whereas on a dedicated server if the db is on the same machine as the web site then the db may not be exposed over the internet.

Hope it helps,

Joe

11/28/2009 2:19:22 PM
Gravatar
Total Posts 2239

Re: Move from one server to another

Make that two votes for SQLYog. I prefer it over PHPMyAdmin.

-Joe D.

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