I have Added SslMode='none' part to the data source in the connection string since there was a MySQL exception called,
“The host localhost does not support SSL connections.”
I referred this solution in StackOverflow. Solution
After that, the error was gone. But when I tried to Debug using step into in the 2nd iteration of the program there was an error,
The error triggers in bl.Load(); in the below code
library.WriteErrorLog("Update The Table");
MySqlCommand comm = conn.CreateCommand();
comm.CommandText = "TRUNCATE TABLE jobs";
comm.ExecuteNonQuery();
conn.Close();
library.WriteErrorLog("truncate Table");
bl.Load();
"The used command is not allowed with this MariaDB version"
The connection string is as follows:
string connStr = "data source=localhost; UID='13user';database='13shop';port=3306;password='123';SslMode='none'";
Any clue about this error?