MariaDB set up issue
Posted: 14 Sep 2021, 19:12
Hello,
I'm a new user of Log4OM, currently migrating over from HRD now that I hear that Log4OM has TCI support and SQL support.
So far I've gotten everything working under Log4OM2 except for SQL. When I attempt to set up the SQL instance I get the following in the log (I've masked sensitive parts):
2021-09-14 16:32:29.8956 INFO: [DbMysql] : MYSQL deploying database log4om2 START
2021-09-14 16:32:29.8961 INFO: [DbMysql] : Connection string: Server=192.168.10.26;Port=3306;User ID=admin;Password=notreallymypass;Pooling=false;SslMode=None
2021-09-14 16:32:29.8966 INFO: [DbMysql] : Script loaded
2021-09-14 16:32:29.8976 INFO: [DbMysql] : MySQL creation file is saved here: C:\Users\user\AppData\Roaming\Log4OM2\log\createDatabase_log4om2.sql
2021-09-14 16:32:29.8981 INFO: [DbMysql] : Opening connection...
2021-09-14 16:32:29.9066 INFO: [DbMysql] : Running script...
2021-09-14 16:32:29.9323 ERROR: [DbMysql][Deploy] : MYSQL Error while deploying database
[EXCEPTION] The given key was not present in the dictionary. System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MySql.Data.MySqlClient.MySqlField.SetFieldEncoding()
at MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field)
at MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns)
at MySql.Data.MySqlClient.Driver.GetColumns(Int32 count)
at MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols)
at MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlDataReader.Close()
at MySql.Data.MySqlClient.MySqlDataReader.Dispose()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MySql.Data.MySqlClient.MySqlScript.Execute()
at L4ONG.DAL.MYSQL.DbMysql.Deploy(DatabaseConfiguration #=bunchofstuff)
I'm a new user of Log4OM, currently migrating over from HRD now that I hear that Log4OM has TCI support and SQL support.
So far I've gotten everything working under Log4OM2 except for SQL. When I attempt to set up the SQL instance I get the following in the log (I've masked sensitive parts):
2021-09-14 16:32:29.8956 INFO: [DbMysql] : MYSQL deploying database log4om2 START
2021-09-14 16:32:29.8961 INFO: [DbMysql] : Connection string: Server=192.168.10.26;Port=3306;User ID=admin;Password=notreallymypass;Pooling=false;SslMode=None
2021-09-14 16:32:29.8966 INFO: [DbMysql] : Script loaded
2021-09-14 16:32:29.8976 INFO: [DbMysql] : MySQL creation file is saved here: C:\Users\user\AppData\Roaming\Log4OM2\log\createDatabase_log4om2.sql
2021-09-14 16:32:29.8981 INFO: [DbMysql] : Opening connection...
2021-09-14 16:32:29.9066 INFO: [DbMysql] : Running script...
2021-09-14 16:32:29.9323 ERROR: [DbMysql][Deploy] : MYSQL Error while deploying database
[EXCEPTION] The given key was not present in the dictionary. System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MySql.Data.MySqlClient.MySqlField.SetFieldEncoding()
at MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field)
at MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns)
at MySql.Data.MySqlClient.Driver.GetColumns(Int32 count)
at MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols)
at MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlDataReader.Close()
at MySql.Data.MySqlClient.MySqlDataReader.Dispose()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at MySql.Data.MySqlClient.MySqlScript.Execute()
at L4ONG.DAL.MYSQL.DbMysql.Deploy(DatabaseConfiguration #=bunchofstuff)