# Minimum MySQL version

- Thread: https://externals.io/message/99918
- Original archive: https://news-web.php.net/php.internals/99918
- Started by Nikita Popov on 2017-07-18T19:37:07+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #99918 — Nikita Popov — 2017-07-18T19:37:07+00:00

URL: https://externals.io/message/99918#99918

Hi,

I just found out that some of the PDO code contains MySQL version checks
going all the way back to MySQL 3.22.30, which has been released in 2000.

What is the minimum MySQL version we support? can I drop checks for MySQL
3.x and 4.x?

Nikita

---

## #99919 — lists@rhsoft.net — 2017-07-18T19:42:36+00:00

URL: https://externals.io/message/99918#99919 · In reply to: #99918

Am 18.07.2017 um 21:37 schrieb Nikita Popov:
> I just found out that some of the PDO code contains MySQL version checks
> going all the way back to MySQL 3.22.30, which has been released in 2000.
> 
> What is the minimum MySQL version we support? can I drop checks for MySQL
> 3.x and 4.x?
wouldn't it be time to remove all the artefacts before "mysqlnd" and so 
drop any dependency of "libmysql" and/or "libmariadb" these days?

---

## #99922 — Andreas Treichel — 2017-07-18T21:01:07+00:00

URL: https://externals.io/message/99918#99922 · In reply to: #99918

> What is the minimum MySQL version we support? can I drop checks for MySQL
> 3.x and 4.x?

The "oldoldstable" Debian Wheezy from 2013 supports MySQL 5.5. The 
unsupported Debian Lenny has MySQL 5.0 since 2009. In my opinion the 
next release of PHP no longer needs to support MySQL older than version 5.0.

---

## #99924 — Jan Ehrhardt — 2017-07-18T21:27:27+00:00

URL: https://externals.io/message/99918#99924 · In reply to: #99918

Nikita Popov in php.internals (Tue, 18 Jul 2017 21:37:07 +0200):
>I just found out that some of the PDO code contains MySQL version checks
>going all the way back to MySQL 3.22.30, which has been released in 2000.
>
>What is the minimum MySQL version we support? can I drop checks for MySQL
>3.x and 4.x?

The Windows builds come bundled with MySQLND 5.0.8-dev (PHP 5.3) up
until MySQLND 5.0.12-dev (PHP 7.2). Even PHP 5.1 was distributed with a
MySQL 5.0.x version, so dropping MySQL 3.x and 4.x seems perfectly
valid.
-- 
Jan

---

## #99948 — johannes.schlueter@oracle.com — 2017-07-19T20:04:14+00:00

URL: https://externals.io/message/99918#99948 · In reply to: #99918

Hi,


> I just found out that some of the PDO code contains MySQL version
> checks going all the way back to MySQL 3.22.30, which has been
> released in 2000.
> 
> What is the minimum MySQL version we support? can I drop checks for
> MySQL 3.x and 4.x?

It's not actively tested, but my assumption is that every version since
4.1 would work with mysqlnd. When using libmysql connecting to 3.x
should work eventually. 

From an Oracle perspective 5.5, 5.6 and 5.7 are in active
(premier/Extended) support. Older versions (5.0, 5.1) are only
in Sustaining Support. 

See
https://www.mysql.com/support/  https://www.mysql.com/support/supported
platforms/database.html and https://www.mysql.com/support/eol-notice.ht
ml

I would suggest to keep 5.5 and newer active. (I haven't checked, but
think there is little to gain from dropping 5.5 on PHP's side) If the
community decides to drop support for older versions I'm happy to clean
up the code a bit.

johannes

---

## #99949 — johannes.schlueter@oracle.com — 2017-07-19T20:07:03+00:00

URL: https://externals.io/message/99918#99949 · In reply to: #99919

> 
> Am 18.07.2017 um 21:37 schrieb Nikita Popov:
> > […]
> wouldn't it be time to remove all the artefacts before "mysqlnd" and
> so drop any dependency of "libmysql" and/or "libmariadb" these days?

Usage of libmysql can be beneficial in case there is a bug, also 3rd
party plugins for non-standard authentication mechanisms might only
exist for libmysql. From a maintainers perspective keeping
compatibility is only limited work, we (Oracle) can keep doing.

johannes
