Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
rhel 7.9
mysql 8.0.35
I have a script user that used to be able to log in. I have no way of knowing when the login stopped working, but it was 2021, sometime.
It was just brought to my attention, so this mysql user isn't used much.
Anyways, now the log in does not work, either directly on the mysql server, or through mysql workbench.
Just a simple error:
Access denied for user 'vendoruser'@'localhost' (using password: YES)
The mysql log doesn't show anything helpful:
Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
I'm sure I'll have to do this sometime, but for now, I just want to keep the script, as-is.
I tried to delete the user from mysql, and re-add. Which appears to work fine. But the problem persists.
After deleting the user, I've flushed privileges, and flushed again after creating.
Not sure where the issue lies?
This is a virtual server, so I can blow it up to try whatever. I've got a backup and a snapshot.
It's likely something dumb, but I just haven't found what it is.
Just to add, my root user logs in fine. I have other connections to this server, that seem to be fine. So, it's just this 1 user.
thanks, all
Last edited by vinmansbrew; 03-13-2024 at 02:20 PM.
I read this as the user can’t log into mysql.
OP: Sounds to me like the password is not set up correctly for that user in mysql. Especially since the user has been updated.
No, I don' think the user is part of any particular group. This server hosts multiple mysql databases. This user is solely for 1 db.
I have had to create users before, they worked. But this user is connecting from a different server. So I used: CREATE USER 'test'@'servername' IDENTIFIED BY 'password';
Which creates the user. But, I log out of mysql, and then try as the testuser I just made, and it fails. For whatever reason, my.cnf shows the log path for errors, but the log has nothing in it.
I have not looked at any my.cnf files. Partly why I tried to delete the old user, and make a new 1. Granted, the name was the same. So, if the my.cnf is stale, I suppose it could still be trying to read it.
I have also tried just doing a simple local user:
CREATE USER 'test'@'localhost' IDENTIFIED BY 'testpass';
Creates, but I can't log in with it.
Log still just shows the same thing.
Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
Update, I had to change the CREATE USER command.
it had to be"
CREATE USER 'vendortest'@'localhost' IDENTIFIED WITH mysql_native_password BY 'testpass';
This was for a local user. I am going to try it with the remote user.
Last edited by vinmansbrew; 03-12-2024 at 12:51 PM.
So, I had to add bind-address=0.0.0.0 and then this user could connect from its remote server, to the mysql server. Not sure I like that. But at least I can proceed.
Now, I have to see if it's the database that is refusing to be updated, or if it's a script error.
Checking the database status:
Threads: 6 Questions: 578711 Slow queries: 0 Opens: 8360 Flush tables: 3 Open tables: 2658 Queries per second avg: 34.535
I am wondering if I need to flush tables? If so, can I limit to just the tables in the 1 DB? I am reading up on mysql, but sometimes it isn't always clear to a noob.
I am thinking a syntax like: FLUSH TABLES WITH READ UNLOCK;
Maybe?
Last edited by vinmansbrew; 03-13-2024 at 02:30 PM.
I don’t allow remote users to access the databases I host, so I can’t help you with that issue. All access to my databases is via web-based applications running on the server.
It sounds as tho you’ve solved the original problem, tho. Are you now asking about a different problem? It might be cleaner if you started a new thread…at least explain what the new problem is
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.