Error
Error Code:
2049
MySQL Error 2049: Old Authentication Protocol Refused
Description
This error occurs when a MySQL client attempts to connect to a server using an outdated pre-4.1.1 authentication protocol. The connection is rejected because the client or server configuration has 'secure_auth' enabled, which mandates the use of newer, more secure authentication methods. It typically manifests when older applications or client libraries try to connect to a modern MySQL server.
Error Message
Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)
Known Causes
3 known causesOutdated Client Software
The application or client library attempting to connect to MySQL is an older version that only supports the deprecated pre-4.1.1 authentication protocol.
Server Enforcing Modern Auth
The MySQL server is configured, often by default, to strictly accept connections only from clients using modern, secure authentication protocols.
Client 'secure_auth' Enabled
The client application or its configuration explicitly has the 'secure_auth' option enabled, which prevents it from connecting using older, less secure protocols.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service