Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johansmits's avatar

Laravel Forge mysql log filling up

Somehow I'm seeing lot's of the same messages in my msql log on a (default) provisioned forge server. Every minute over 10 times of this message is appearing. Any suggestion how to fix this?

[Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
0 likes
5 replies
nathan-io's avatar

I'm seeing this on a Forge-provisioned server as well.

The issue seems to be that the forge MySQL user is using the mysql_native_password plugin. To determine this, run the query:

select user, host, plugin from mysql.user;

On my server, the result is:

mysql> select user, host, plugin from mysql.user;
+------------------+----------------+-----------------------+
| user             | host           | plugin                |
+------------------+----------------+-----------------------+
| forge            | %              | mysql_native_password |
| root             | %              | caching_sha2_password |
| forge            | xxx.xxx.xxx.xxx | mysql_native_password |
| root             | xxx.xxx.xxx.xxx | caching_sha2_password |
| debian-sys-maint | localhost      | caching_sha2_password |
| mysql.infoschema | localhost      | caching_sha2_password |
| mysql.session    | localhost      | caching_sha2_password |
| mysql.sys        | localhost      | caching_sha2_password |
| root             | localhost      | auth_socket           |
+------------------+----------------+-----------------------+
9 rows in set (0.00 sec)

I think the rationale behind this is that until PHP 7.2, caching_sha2_password wasn't supported by PHP.

On servers where we don't need to support < 7.2 however, it seems that the forge user should be using the caching_sha2_password plugin.

2 likes
pimski's avatar

@jandante any answer on your question yet?

I also noticed this error (on a forge provisioned server) so I'm qurious on how to fix this. Without destroying my server...

Please or to participate in this conversation.