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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Fixing MySQL root account permissions.
I did some major messing around with my MySQL installation in the process of upgrading from the 3.23 server to the 4.0 server. I didn't quite know what I was doing and as a result when it didn't work I tried all sorts of commands like mysql_fix_privilege_tables and stuff like that. I don't remember exactly what I did, but eventually I re-installed the MySQL client program from the disk.
The MySQL server is working fine now, but the root@localhost or even the root@% account has somehow lost it's superuser status. This may have been because of my trying to fix the server earlier, I don't know. But now when I want to add a new user or database I get the message that I do not have sufficient permission to do so. I have checked all of my usernames on MySQL and none of them are allowed to create new users or change user permissions. I am essentially stuck with the current setup because none of the accounts has permission to modify the user settings.
I have tried using MySQLcc (which was the original cause for the upgrade since it would cause MySQL to crash every time it tried to connect) and the local command line with the grant option e.g. GRANT ALL PRIVILEGES ON bulletinboard.* TO user@"%" IDENTIFIED BY 'imnotthatdumb' WITH GRANT OPTION;
or even GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'noiwonttellyoumypassword' WITH GRANT OPTION;
It says Error 1045: Access Denied for user root@localhost
every time I do this. I have tried using the mysql_setpermission app and it says Access Denied also.
I have done all of these things signed in as root and have entered the proper password. None of the accounts, however, can add permissions. Is there some file I need to edit in vim or some binary that will restore the superuser status for the root MySQL account?