How to Fix MySQL Error 1759 (ER_INSECURE_PLAIN_TEXT)
You get mysql error 1759 when your client sends a plain text password without encryption. You can fix this error by turning on SSL or TLS for your database login. MySQL maps this issue to the symbol ER_INSECURE_PLAIN_TEXT and the state HY000. The engine warns that sending passwords in plain text without SSL or TLS is insecure. The client stops the login attempt to keep your password safe from network snooping. This guide shows why this happens and how your team can fix it. What causes mysql e
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You get mysql error 1759 when your client sends a plain text password without encryption. You can fix this error by turning on SSL or TLS for your database login.
MySQL maps this issue to the symbol ER_INSECURE_PLAIN_TEXT and the state HY000. The engine warns that sending passwords in plain text without SSL or TLS is insecure. The client stops the login attempt to keep your password safe from network snooping. This guide shows why this happens and how your team can fix it.
What causes mysql error 1759 in your database setup
This error happens when a user account uses a clear text login plugin. Some external directory systems need the exact password string to check your identity. Standard MySQL logins hash the password before sending it over the network. Clear text plugins do not hash the secret before they send it.
Because the secret travels as plain text, the client checks the network link first. If the link does not use TLS encryption, the client blocks the login right away. It throws code 1759 to stop a password leak on an open wire. Even if the server allows unencrypted logins, the client protects you by failing fast.
You will often see this during an upgrade or when you move to cloud databases. Cloud setups often link database accounts to central directory services or token systems. When a developer tries to log in from a local tool, the tool checks TLS. If the local tool lacks a TLS setup, the login fails with this exact message.
How to diagnose and fix the failure in production
Start by checking how your client tool talks to the MySQL server. Look at the login settings in your app or database tool. Make sure the tool requires an encrypted TLS link for every session. Do not turn off security checks or enable plain text flags in production.
Turning off client safety checks lets your password cross the network in the clear. Anyone watching the local network could read the password and take over the role. Instead, fix the root cause by setting up valid TLS certificates on your server. Give your client app the right root certificate so it trusts the database server.
MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Next, check the user account rules inside the MySQL server. Look at which login plugin the failing account uses. If the account does not need directory login, switch it to a hashing plugin. Built-in hashing plugins verify passwords without sending the raw text over the network.
If your team must use a clear text plugin for central logins, enforce TLS everywhere. Set the server rule to require secure transport for all user logins. Check that your load balancers do not strip TLS before traffic hits the database. When the full path uses encryption, the client sends the password without throwing an error.
How to prevent plain text password errors across teams
Managing TLS files across many laptops is hard work for any team. One missing file on a laptop will trigger this error again. You can avoid this by taking raw database passwords away from end users. Set up a central point that handles TLS and directory logins for the server.
Also, protect the data that flows back after a user logs in. Masking rules can rewrite emails, phone numbers, card numbers, and national IDs in results. This keeps sensitive records safe while developers run queries to fix app bugs. Good login rules and data masking work together to keep your database safe.
Inspect every MySQL query and response in flight
Static grants and network rules block bad logins. They cannot pause a risky query for review or mask emails in a result set. By design, hoop.dev sits inline in the MySQL protocol as a sidecar for your MySQL. For every plain query, prepared statement, or cursor an agent or human runs in production, hoop.dev decides to pass, mask, block, or hold it for review.
First, hoop.dev guardrails block banned actions before MySQL runs them, and an AI Analyzer you configure can score intent or escalate for approval. Next, hoop.dev data masking rewrites sensitive string columns in results in memory, and every verdict goes to the audit trail. Find the open-source binary on GitHub.
Frequently asked questions
What does the ER_INSECURE_PLAIN_TEXT symbol mean in MySQL?
It means the client tried to send an unhashed password over an unencrypted network link. MySQL blocks the login and shows error code 1759 to protect your password.
Is it safe to bypass this error by allowing clear text on the client?
No, bypassing this check sends your raw password across the network in plain text. You should only do that on a local test machine, never in production.
Why did this error start after switching to directory logins?
Directory logins often need the server to receive the actual password string from the client. Without an active SSL or TLS link, the client refuses to send that plain password.
Related guides
In this post