Skip to content

Conversation

grooverdan
Copy link
Contributor

In MariaDB the "using password" may not exist in the error message

e.g:
https://buildbot.mariadb.org/#/builders/237/builds/4279/steps/5/logs/stdio

@grooverdan grooverdan force-pushed the 8.0-maria-using-password branch from d78a760 to 3be1281 Compare December 2, 2022 02:10
@cmb69
Copy link
Member

cmb69 commented Dec 2, 2022

Thank you for the PR! I'm not particularly concerned about these changes, but I wonder why the tests pass for me locally with MariaDB 10.5.13.0 (and almost certainly also in our CI), but fail for you.

Also note that PHP 8.0 is no longer actively supported, so this could target PHP-8.1 at most.

@grooverdan grooverdan force-pushed the 8.0-maria-using-password branch from 3be1281 to 0bd4cf6 Compare December 2, 2022 22:24
@grooverdan grooverdan changed the base branch from PHP-8.0 to PHP-8.1 December 2, 2022 22:24
@grooverdan
Copy link
Contributor Author

Thank you for the PR! I'm not particularly concerned about these changes, but I wonder why the tests pass for me locally with MariaDB 10.5.13.0 (and almost certainly also in our CI), but fail for you.

If unix socket auth (or Windows auth_pipe) is used there is no "using password" in the error message.

Its only when a true mysql_native_password authentication is used that the "using password" occurs:

MariaDB [(none)]> alter user dan@localhost identified via mysql_native_password;
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> set password = password('bob');
Query OK, 0 rows affected (0.002 sec)

MariaDB [(none)]> ^DBye

$ mc -pdd
ERROR 1045 (28000): Access denied for user 'dan'@'localhost' (using password: YES)

@cmb69
Copy link
Member

cmb69 commented Dec 5, 2022

Its only when a true mysql_native_password authentication is used that the "using password" occurs:

Ah! Thank you.

@cmb69 cmb69 closed this in b6b4a62 Dec 5, 2022
@cmb69
Copy link
Member

cmb69 commented Dec 5, 2022

Thank you!

@grooverdan grooverdan deleted the 8.0-maria-using-password branch December 5, 2022 22:14
@grooverdan
Copy link
Contributor Author

Any reason for a non-8.1 fix?

grooverdan added a commit to grooverdan/php-src that referenced this pull request Dec 7, 2022
Like phpGH-10035 for ext/mysqli/tests/mysqli_connect.phpt test.
@cmb69
Copy link
Member

cmb69 commented Dec 7, 2022

Any reason for a non-8.1 fix?

Apparently, GH is confused. b6b4a62 is on PHP-8.1 (https://github.com/php/php-src/blob/PHP-8.1/ext/mysqli/tests/mysqli_connect_oo.phpt), and I merged upwards (0ac9e8e and 4ae1f08). (PHP 8.0 is no longer actively supported)

@grooverdan
Copy link
Contributor Author

Ack. Sorry did see this eventually.

cmb69 pushed a commit that referenced this pull request Dec 8, 2022
Like GH-10035 for ext/mysqli/tests/mysqli_connect.phpt test.

Closes GH-10064.
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

Successfully merging this pull request may close these issues.

2 participants