I have developed website on Umbraco CMS (v 7.12.4) with database as MS SQL Server 2017. For some reasons, I would like to remove MySQL dependency from Umbraco.
I thought deleting MySQL.Data.dll and removing configs from web.config would do that job, but that resulted in error.
Is it possible to remove MySQL dependency without editing Umbraco source code?
Remove MySQL dependency from Umbraco
Hello,
I have developed website on Umbraco CMS (v 7.12.4) with database as MS SQL Server 2017. For some reasons, I would like to remove MySQL dependency from Umbraco.
I thought deleting
MySQL.Data.dll
and removing configs fromweb.config
would do that job, but that resulted in error.Is it possible to remove MySQL dependency without editing Umbraco source code?
Thanks in advance.
Hi Abilash
umbraco.DataLayer has references to MySQL.Data.dll, so if you want to remove it you have to remove these references as well.
You can try to do it by changing the source code of umbraco.DataLayer, have a look here - https://github.com/umbraco/Umbraco-CMS/tree/dev-v7/src/umbraco.datalayer/SqlHelpers/MySql
Thanks,
Alex
Why do you need to remove MySQL.Data.dll?
The customer wanted the reference to be removed :|
Hi Abilash
Let us know how hard was it? Did you succeed?
Thanks,
Alex
It was super easy.
Below are the projects from where I have removed MySQL reference.
umbraco.DataLayer
-> removed reference + compiled new DLLUmbraco.Core
-> removed reference + compiled new DLLUmbraco.Web.UI
-> removed reference + commented out codeHope this helps.
Awesome, Abilash, thanks for sharing!!!!
Have a great day.
is working on a reply...