Inhalte aufrufen

Profilbild

Migrate from Windows + MSSQL + SS 4.2 to Unix + MySQL + SS 5.1

"\r\n48506

Best Answer Artar , 01 December 2023 - 09:57

Hello Enrico,

 

unfortunately a migration from MS SQL Server to MySql is not possible. You would also have to use MS SQL Server under Linux.

Go to the full post


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
15 Antworten zu diesem Thema

#1 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 30 November 2023 - 13:17

Hello everyone, I state that I don't know Smart store, I usually use WordPress, but a customer with Smartstore 4.2 installed on Windows server and MSSQL asked me to update his site and bring it to version 5.1 on ubuntu and MySQL.
The site has a personalized themes (in 4.2 version of smartstore).

I’ve alteady prepared a Unix VPS with MySQL and smartstore version 5.1.

How can I proceed with the migration? I’ve a MSSQL backup and the AppData folder.
If I migrate the Thiene, for exemple, i obtain tue error you can see on http://vps-b6f6c196.vps.ovh.net/

Thanks!

#2 Artar

Artar

    SmartStore AG

  • Administrators
  • 989 Beiträge

Geschrieben: 01 December 2023 - 09:57   Best Answer

Hello Enrico,

 

unfortunately a migration from MS SQL Server to MySql is not possible. You would also have to use MS SQL Server under Linux.


  • stefanmueller gefällt das

Zihni Artar
SmartStore AG


#3 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 04 December 2023 - 09:05

Not a big problem, I'll install MSSQL on my Unix VPS.
For the database migration, it is clear to me, while for the data to be migrated at the file level, what should I move? The "AppData" folder only? I see that the theme, for example, is not within that folder.


#4 Artar

Artar

    SmartStore AG

  • Administrators
  • 989 Beiträge

Geschrieben: 04 December 2023 - 12:17

yes, the APP-DATA folder is sufficient, but of course you have to modify the settings.txt.


Zihni Artar
SmartStore AG


#5 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 05 December 2023 - 10:58

I've restored the DB and copied the AppData folder, but now I receive this error: http://vps-b6f6c196.vps.ovh.net/

Where is the setting.txt setting that you tell me in previous answer?

 

Thanks



#6 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3802 Beiträge

Geschrieben: 05 December 2023 - 11:34

Settings.txt is located in ~\App_Data\Tenants\Default.


Marcus Gesing

Smartstore AG


#7 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 05 December 2023 - 11:46

The db setting in setting.txt are updated, but I've the error you can see in http://vps-b6f6c196.vps.ovh.net/



#8 Artar

Artar

    SmartStore AG

  • Administrators
  • 989 Beiträge

Geschrieben: 05 December 2023 - 17:34

Since smartstore is a NET application, it must be started.

You can either do this via the command line (not recommended) or you can set it up as a service:

https://smartstore.a...re-as-a-service


Zihni Artar
SmartStore AG


#9 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 05 December 2023 - 23:16

Now, after some mods it redirect me on the original site.
I've modified the "Store" table in the DB changing "biovale.eu" with "vps-b6f6c196.vps.ovh.net" but nothing change..it redirect me on biovale.eu

#10 Artar

Artar

    SmartStore AG

  • Administrators
  • 989 Beiträge

Geschrieben: 06 December 2023 - 16:32

Have you also deleted the secureurl in the store table and switched off SSL?


Zihni Artar
SmartStore AG


#11 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 07 December 2023 - 08:46

The actual situation

Angehängte Bilder



#12 Artar

Artar

    SmartStore AG

  • Administrators
  • 989 Beiträge

Geschrieben: 07 December 2023 - 13:36

The entry is OK.

Can you please look in the Modules folder to see if the UrlRewriter is there.
Otherwise I would check the appsettings.json and the web.config in the webroot.
Have you changed anything in the NGINX configuration? Does it say biovale.eu somewhere as the host?


Zihni Artar
SmartStore AG


#13 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 07 December 2023 - 16:18

I can't find anything.

The site worked normally before the DB import, so I believe that the problem is on the imported DB..but where??


  • MediArt gefällt das

#14 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 07 December 2023 - 17:19

Step by step:

1. Preparing VPS Unix following this guide and installing MSSQL Server (not MySQL)
2. Copying in /var/www/htlmApp_Data/Tenants/Default the files present in the Windows installation

3. Import DB from database.bck and change the store fields with new links

 

Other? 


  • MediArt gefällt das

#15 enrico.fabbri

enrico.fabbri

    Member

  • Members
  • PunktPunkt
  • 11 Beiträge

Geschrieben: 02 January 2024 - 12:29

Someone (with payment) can help me?


  • MediArt gefällt das

#16 stefanmueller

stefanmueller

    SmartStore AG

  • Administrators
  • 462 Beiträge

Geschrieben: 05 January 2024 - 13:05

Hi Enrico, we offer professional services to set you up with Smartstore. Please ask for a price quote : sales@smartstore.com.  Greetings, Stefan


Stefan