Closed andreabertanzon closed 1 year ago
There are some good answers in this StackOverflow thread, perhaps try some of them (aside from upgrading the MySql.Data version)? In the past, DbUp, which DBOps is built upon, was pretty strict with which driver versions it supports. If none of the suggestions work, I'll look into upgrading the driver, which might also require updating DbUp version.
Thanks for the reply, Unfortunately I tried all the answers (except mysql.data.dll) and nothing worked. For example adding configs in the connection string made also the Invoke-DBOQuery not work anymore(same key error), while previously it was working at least with existing databases and tables (gave errors while creating tables though)
Unfortunately, the upstream project (DbUp) has a dependency on a pretty outdated version of the MySQL driver. You can try to update the driver to the most recent version manually and see if DBOps can work with a version outside of supported version range. To do so
Add-Type -Path .\library.dll
. Do not use or load DBOps into your runtime just yet.Good news! I can confirm that the more recent MySQL library is properly working with DBOps and I will be updating it soon with a minor version bump
Starting from version 0.9.0, MySQL library is supported up to version "MaximumVersion": "8.0.31"
. Anything outside of the supported range you can still use, but you'll have to pre-load it manually before running the deployment.
Hello, Having troubles installing packages (and even Install-DBOScript) towards a MySQL Database.
This is the stack trace:
The code:
The code seems to work if I change the connection string and Type to sqlserver and adapt the queries to T-SQL.