-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
AUTH_SWITCH_PLUGIN_ERROR #213
Comments
@Swellington-Soares could you provide a screenshot of the error? |
Sorry for the delay, I managed to solve this problem by updating mariadb, but so far I haven't discovered the cause, as I just updated the version without changing any server configuration, and it worked normally, I'm currently using version 11.2.2-MariaDB-1 :11.2.2+maria~ubu2204. Maria DB 11.2.2 in docker container. |
The latest mariadb release creates a password-less root account using gssapi. For the inexperienced, using HeidiSQL for example, to set a password on the root account, will "fix" this. |
Any reference for that? Seems weird they would make that change and I didn't have the issue with multiple new installations. They don't even support the plugin for their own connectors. Either way, just change your password or make a new account to fix the issue. Supported plugins are here https://github.com/sidorares/node-mysql2/blob/master/lib/auth_plugins/index.js |
I came to that conclusion after reading the documentation about gssapi, on MariaDB's website: https://mariadb.com/kb/en/authentication-plugin-gssapi/#passwordless-login-on-windows Maybe I misunderstood - I've been installing version 11.3.1 directly from their download section. But anyway, yes, this can likely be closed. The fix/workaround is to just use a password. |
Fix for this problem is to do this query in your database (with HeidiSQL or PHPadmin most times)
|
With MariaDB btw |
The client you use to send a query is irrelevant to this case. So, yes, you must set a password using the |
Hello, I've had such a problem as well. Hope it helps. |
HeidiSQL and XAMPP have nothing to do with this and you should NOT run XAMPP just to have MySQL/MariaDB. Passwords must be set using |
Just a sidenote: Modern MySQL (9.x) no longer feature If this authentication scheme is the only supported one for oxmysql however, one might wanna get crackin' on implementing some of the new, modern and much more secure authentication schemes <3 |
oxmysql is simply a resource implementing node-mysql2 and various tools; authentication is handled there and has nothing to do with me. Supported auth methods are:
|
Issue checklist
Describe the bug
A clear and concise description of what the bug is.
I'm trying to connect to the database, running only the standard fivem resources and oxmysql, but I receive the following error: AUTH_SWITCH_PLUGIN_ERROR.
Screenshots
If applicable, add screenshots to help explain your problem.
Code
-- If applicable, include the query and relevant code
set mysql_connection_string "mysql://[email protected]/qbcore?charset=utf8mb4"
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
Server details
FxServer: Last version
OS: Windows 10
Database details
MariaDB : 10.11.6
The text was updated successfully, but these errors were encountered: