php / php/php-src

mysql: change default auth plugin from mysql_native_password

Open
#18,659 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Extension: mysqlnd Feature Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Extracted from: https://github.com/php/php-src/pull/18555

Change mysql_native_password as default auth protocol from codebase:
https://github.com/php/php-src/blob/7e956f879e77a0d6ff08521f69d7758b93045293/ext/mysqlnd/mysqlnd_enum_n_def.h#L37

Plugin mysql_native_password is deprecated in Mysql 8.4 and removed in Mysql 9.0:
https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ext/mysqlnd/mysqlnd_enum_n_def.h at the referenced default authentication protocol and read the linked MySQL documentation on mysql_native_password deprecation and removal. Determine the supported replacement and update the default consistently, then verify that the codebase no longer selects mysql_native_password by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, mysql
Domain
authentication, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.