Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice "Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4" on a non-MariaDB server. #6254

Open
davidesigner opened this issue Jan 4, 2024 · 4 comments

Comments

@davidesigner
Copy link

Bug Report

Q A
Version 3.7.2

Summary

Not applicable deprecated notice.

Current behaviour

With Platform.sh, I pushed a Symfony project on an oracle-mysql:8.0 container (not a MariaDB instance). See https://docs.platform.sh/add-services/mysql.html#supported-versions.

I don't understand why I have this deprecation notice in my logs?

[2024-01-04T11:26:41.609933+00:00] deprecation.INFO: User Deprecated: Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4. Consider upgrading to a more recent version of MariaDB. (AbstractMySQLDriver.php:50 called by TracingDriverForV3.php:97, https://github.com/doctrine/dbal/pull/6110, package doctrine/dbal) {"exception":"[object] (ErrorException(code: 0): User Deprecated: Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4. Consider upgrading to a more recent version of MariaDB. (AbstractMySQLDriver.php:50 called by TracingDriverForV3.php:97, https://github.com/doctrine/dbal/pull/6110, package doctrine/dbal) at /app/vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php:210)"} []

Expected behaviour

Do not have a deprecated notice that does not apply to my stack.

@davidesigner davidesigner changed the title Notice "Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4" on Oracle MySQL server. Notice "Support for MariaDB < 10.4 is deprecated and will be removed in DBAL 4" on a non-MariaDB server. Jan 4, 2024
@derrabus
Copy link
Member

derrabus commented Jan 5, 2024

What is the exact MySQL version that you connect to? Did you set a server version in your connection parameters?

@davidesigner
Copy link
Author

davidesigner commented Jan 5, 2024

The MySQL version is 8.0.33.

I've set nothing because Platform.sh do it automatically. I seen that Platform.sh set: DATABASE_URL=mysql://main:xxx@database.internal:3306/main?sslmode=disable&charset=utf8mb4&serverVersion=8.0.0-MariaDB. Maybe it's for this reason: serverVersion=8.0.0-MariaDB?

@derrabus
Copy link
Member

derrabus commented Jan 7, 2024

Yes, that setting does not make sense at all.

@nicolas-grekas
Copy link
Member

Fixed by symfony-cli/symfony-cli#419 I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants