Why do I need to upgrade local mysql to 8 to access managed database?

November 12, 2019 535 views
Databases

Hello,

I’m confused as to why my local environment needs to upgrade the mysql version to 8.0 in order to connect to DO managed database?

Is this because the way DO makes the connection isn’t via SSH? It just seems a bit silly that you’re paying for an external server to run your database, but yet, any instance that wants to connect with it also has to run the same version of the database.

Am I missing something?

1 Answer

Hello,

No, it is not a DigitalOcean specific problem. MySQL 5.x client are just not compatible with MySQL 8.x servers. So in order to connect to MySQL 8.x server you need a MySQL 8.x client.

Hope that this helps.
Regards,
Bobby

  • Right, but do you know why that is? Is that because of the SSL connection? Because if you could SSH into it, then you’d be using the db server resources/hardware.

    • Hi @aflores,

      It is two separate things, in order to connect to MySQL 8.x server you need a MySQL 8.x client, this is a standard thing. The SSH connection is a separate case, the managed database servers do not come with SSH access.

      So for example if you are on a Mac, you could install TablePluse and when you try to add a new connection you would be asked to select the MySQL version that you would like to use. By selecting MySQL 8.x then you would be able to connect just as normal.

      Hope that this helps!
      Regards,
      Bobby

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!