# Does mySQL plugin stopped working for older Xojo versions?

**URL:** <https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205>\
**Category:** Databases\
**Created:** [July 30, 2024, 11:08pm UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205 "2024-07-30T23:08:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julio\_Debroy](https://forum.xojo.com/user_avatar/forum.xojo.com/julio_debroy/32/17574_2.png) [@Julio\_Debroy](https://forum.xojo.com/u/Julio_Debroy)\
**Post date:** [July 30, 2024, 11:08pm UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/1 "2024-07-30T23:08:17Z")

</div>

I have a private app online, last modified with Xojo 2019R3.  
Today I was going to make some changes but and opened it with 2024 r2.1. However there were so many events and other things being deprecated (and had a lot of compiler errors) that I decided to just edit it with the old Xojo 2019R3.  
It compiles and starts correctly with the old code, but to my surprise, in my windows 11 machine, when running the app it won’t connect to my local Mysql database (development machine has Wamp).  
Tested Xojo 2024r2.1 and it connects successfully. Back to Xojo 2029r3 it fails, on the same machine.  
Am just guessing that probably the mySQL community plugin just does not work in the older Xojo version.  
Does anyone know about this? MySQL version is 8.0.27, and it won’t help to put an older Mysql version, because the online app has that Mysql version too.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [July 30, 2024, 11:52pm UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/2 "2024-07-30T23:52:15Z")

</div>

At some point the connection technology probably changed, probably at some point in those 5 years. If you intend to use new DB tech, you probably will need to put some effort to upgrade your app or downgrade the DB to an older version.

---

<div class="post-metadata">

**Author:** ![Julio\_Debroy](https://forum.xojo.com/user_avatar/forum.xojo.com/julio_debroy/32/17574_2.png) [@Julio\_Debroy](https://forum.xojo.com/u/Julio_Debroy)\
**Post date:** [July 31, 2024, 12:37am UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/3 "2024-07-31T00:37:23Z")

</div>

Yes, contrary to your assumption, we did put some effort. The production app was upgraded to a different architecture (Delphi +TMS Web Core / Rest web services) two years ago and follows a better maintenance path.  
I kept the Xojo application live for pure nostalgia, for going back to what I did to implement some things, and to practice future changes. I still like Xojo for rapid prototyping and other stuff like Arm 32/64 SBCs applications, and the fact that it compiles for all platforms from any one of them.

Anyway, you missed the point of my question, which is to know if Xojo 2019.R3 has support for newer ( \>=8 ) MySQL versions.  
At this time I can answer myself instead of guessing. It does work with older MySql versions, not with MySql 8 on WAMP. It also works with MariaDB 10.6.

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [July 31, 2024, 1:12am UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/4 "2024-07-31T01:12:20Z")

</div>

MySQL 8 comes with two different [password encryptions](https://dev.mysql.com/doc/mysql-installer/en/server-authentication-method.html), Standard and Legacy.

You will certainly need to create a new user using the legacy password to work with Xojo 2019

```sql
CREATE USER ‘username’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;

```

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [July 31, 2024, 7:42am UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/5 "2024-07-31T07:42:16Z")

</div>

> [@Julio\_Debroy](#):
>
> At this time I can answer myself instead of guessing. It does work with older MySql versions

> [@Rick\_Araujo](#):
>
> upgrade your app or downgrade the DB to an older version.

Actually, you are not figuring it, you are using the knowledge provided.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [July 31, 2024, 8:03am UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/6 "2024-07-31T08:03:52Z")

</div>

there was the same problem of password encryption change with postgres  
moving from xojo 2019 to 2023 I had to change some code to take that into account  
mysql is probably the same as Jeremy said above.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [July 31, 2024, 8:07am UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/7 "2024-07-31T08:07:23Z")

</div>

> [@Jeremie\_L](#):
>
> `CREATE USER ‘username’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;`

MySQL 8, introduced the encryption algorithm to a SHA-256 authentication using cache known as option `caching_sha2_password`. MySQL 8.4 enforced it. The legacy mode is deprecated and will vanish at some point.

Jeremie is correct, but you may not need to create a new user, just downgrade the current one to the old authentication scheme like

**ALTER USER '_username_'@'_whateverhost_' IDENTIFIED WITH mysql\_native\_password BY '_my password as always_';  
FLUSH PRIVILEGES;**

---

<div class="post-metadata">

**Author:** ![Julio\_Debroy](https://forum.xojo.com/user_avatar/forum.xojo.com/julio_debroy/32/17574_2.png) [@Julio\_Debroy](https://forum.xojo.com/u/Julio_Debroy)\
**Post date:** [July 31, 2024, 1:57pm UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/8 "2024-07-31T13:57:58Z")

</div>

Thanks Jeremy, will take that into account, although is is more likely we will use the current Xojo version for future projects.

---

<div class="post-metadata">

**Author:** ![Julio\_Debroy](https://forum.xojo.com/user_avatar/forum.xojo.com/julio_debroy/32/17574_2.png) [@Julio\_Debroy](https://forum.xojo.com/u/Julio_Debroy)\
**Post date:** [July 31, 2024, 2:04pm UTC](https://forum.xojo.com/t/does-mysql-plugin-stopped-working-for-older-xojo-versions/81205/9 "2024-07-31T14:04:39Z")

</div>

> [@Rick\_Araujo](#):
>
> Actually, you are not figuring it, you are using the knowledge provided.

If you say so …
