Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Abilash Ashok 63 posts 418 karma points
    Mar 22, 2019 @ 12:10
    Abilash Ashok
    0

    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 from web.config would do that job, but that resulted in error.

    enter image description here

    Is it possible to remove MySQL dependency without editing Umbraco source code?

    Thanks in advance.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Mar 23, 2019 @ 11:39
    Alex Skrypnyk
    100

    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

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Mar 23, 2019 @ 11:39
    Alex Skrypnyk
    0

    Why do you need to remove MySQL.Data.dll?

  • Abilash Ashok 63 posts 418 karma points
    Mar 30, 2019 @ 16:22
    Abilash Ashok
    1

    The customer wanted the reference to be removed :|

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Apr 01, 2019 @ 11:10
    Alex Skrypnyk
    0

    Hi Abilash

    Let us know how hard was it? Did you succeed?

    Thanks,

    Alex

  • Abilash Ashok 63 posts 418 karma points
    Apr 01, 2019 @ 14:07
    Abilash Ashok
    1

    It was super easy.

    Below are the projects from where I have removed MySQL reference.

    1. umbraco.DataLayer -> removed reference + compiled new DLL
    2. Umbraco.Core -> removed reference + compiled new DLL
    3. Umbraco.Web.UI -> removed reference + commented out code

    Hope this helps.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Apr 01, 2019 @ 15:10
    Alex Skrypnyk
    0

    Awesome, Abilash, thanks for sharing!!!!

    Have a great day.

Please Sign in or register to post replies

Write your reply to:

Draft