Skip to content

Commit

Permalink
Update upgarade_to_4.40_and_above_readme.txt
Browse files Browse the repository at this point in the history
Typo fixed
  • Loading branch information
AndreiMaz committed Dec 8, 2021
1 parent 8b88e50 commit 2d27129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgradescripts/upgarade_to_4.40_and_above_readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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 connections 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".
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.
Expand Down

8 comments on commit 2d27129

@akertech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have version 4.40.2 and would like to upgrade to latest . Iam using Linux (Ubuntu ) & MySQL and connection string is
"ConnectionStrings": {
"ConnectionString": "server=localhost;database=mydb;allowuservariables=True;user id=user1;password=password1!",
"DataProvider": "mysql",
"SQLCommandTimeout": null }
I installed from scratch it works fine with new Db but how could I attach my old mysqldb ?

@glhays
Copy link

@glhays glhays commented on 2d27129 Feb 14, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akertech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After certain version there is no upgrade for database ;

@glhays
Copy link

@glhays glhays commented on 2d27129 Feb 14, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akertech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings (Encrypt=false or TrustServerCertificate=True ) do not work with MySQL database connection string. If I use the old connection string I get these page isn't working error 30 seconds later the page refreshes without any error but does not show anything on the website. It is a blank white page. if I change connection string with (Encrypt=false or TrustServerCertificate=True ) getting System. ArgumentException 'Option not supported' error. I believe MySQL does not support that argument.
Missing a piece in the puzzle but could not figured it out yet

@glhays
Copy link

@glhays glhays commented on 2d27129 Feb 15, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akertech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where should I look for that ? MySql Logs you refer or something else ?
Let me explain what I did . I installed the latest version of Nopcommerce source code with visual studio 2019 and MySql . Installation page loaded and created new database with sample data without any issue . I used the same username and password for the database.
As a second step I imported the previous database to MySql and changed the connection string on newly installed running website to access old (imported database )
That is not working no error but the page does not load.

@glhays
Copy link

@glhays glhays commented on 2d27129 Feb 15, 2022 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.