0
I'm trying to run mysqlcheck
. Its failing with:
$ sudo su -
# mysqlcheck --auto-repair --all-databases
mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
Other questions and answer say to modify or reset MySQL passwords. I don't really want to do that since I don't know the impact. If there are any scripts using it, then I will break them. At minimum, I have to share it with two other [part-time] system administrators, so its mostly a pain.
What I would like is for MySQL to recognize the machine's root user (uid 0) and entitle it with all the privileges bestowed upon root.
I'm working on CentOS 7.2. How do I have MySQL entitle the root user?
Here are some related questions. They all lead back to modifying the password.
Thanks @Grawity. You're knowledge of Linux and Unix is amazing. I need to check on doing the above (naively, I though I'd flip a bit in
mysql.conf
). I'll have to get back to you an the accept. – jww – 2016-04-02T11:25:31.307