I am getting the following error while iterating over 2 million rows in .Net 7 while at the same time inserting rows with another connection to another database within the same instance of MySQL. Basically, I am archiving entries older than a specific data to another database.
Fatal error encountered during command execution.
Stacktrace: at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MyClass.ExecuteNonQuery(String sqlcmd)
I am using the MySql.Data v8.0.32 Nuget Package
Fatal error encountered during command execution.
Stacktrace: at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MyClass.ExecuteNonQuery(String sqlcmd)
I am using the MySql.Data v8.0.32 Nuget Package