受欢迎的博客标签

NopCommerce Platform introduce Part 3

Published

NopCommerce Platform introduce Part 3

 

 

upgrade from 4.5 to 4.60.1 readme - 20230125 updated

step 1:read upgrade_to_4.40_and_above_readme.txt

IMPORTANT. We don't use SQL upgrade scripts anymore. Upgrade is performed automatically with migrations (during the first application start).
IMPORTANT. If you're upgrading nopCommerce to version 4.50 or above, please ensure that your connection string contains one of the following parameters: "Encrypt=false" or "TrustServerCertificate=True" (depending on your server requirements). You can manually add these parameters to your connection string in the \App_Data\appsettings.json file. This step is caused by the "Microsoft.Data.SqlClient" library that changed the default value of the "Encrypt" option from "false" to "true".

Steps:
1. Make a backup of everything on your site, including the database. This is extremely important so that you can roll back to a running site no matter what happens during migration.
2. Remove all files from the previous version except JSON files in the 'App_Data' directory (dataSettings.json, plugins.json, appsettings.json), move them to the safe place.
3. Upload new site files
4. Copy back JSON files in the 'App_Data' directory.
5. Ensure that everything is OK

Notes:
1. If you stored your pictures on the file system, then also backup them (\wwwroot\images\) and copy back after upgrade

step 2:backup sqlserver database to another name database (msly-450)

run SQL Server 2016 Management Studio on windows 10(64 bit)

driver:
sql server  native  client 1.0
user:
SRKSERVER\SQLEXPRESS
TrustServerCertificate

step 3:

 

step 4:move *.json file 

copy JSON files in the 'App_Data' directory to new 'App_Data' directory

copy F:\developer\nopCommerce_4.50.0_Source\src\Presentation\Nop.Web\App_Data\*.json  F:\developer\nopCommerce_4.60.1_Source\src\Presentation\Nop.Web\App_Data\*.json 

step 5: run

ok

step 6:image files

#image files for log and icon
Themes/DefaultClean/Content/images/logo.png
icons/icons_0/favicon-32x32.png

#image files for product thumbs
nopCommerce_4.60.1_Source\src\Presentation\Nop.Web\wwwroot\images\thumbs