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.
Im having this problem and i cant get it to reset.
Iv tried everything on these webpages...Iv tried all three approaches.
-----------------------
server ~ # safe_mysqld --skip-grant-tables &
[1] 10432
server ~ # -bash: safe_mysqld: command not found
----------------------------------
server ~ # /usr/libexec/mysqld -Sg --user=root &
[1] 10433
server ~ # -bash: /usr/libexec/mysqld: No such file or directory
---------------------------------
server ~ # mysqld --skip-grant-tables
This one doesnt even say anything. It just stops.
What OS are you running? Try 'whereis mysqld' that will give you the location of mysqld... also if you are running slackware, I know there is a script to start the daemon via '/etc/rc.d/rc.mysqld start' Just some thoughts.
I had the same problem to this I think before. Correct me if I am wrong. You have lost root access to MySQL.
What I ended up doing was to delete the 'mysql' (contains all users and passwords and access) database files and run mysql_install_db
Make sure that you backup first.
This will recreate the 'mysql' database and setup root with no password. This will also delete any access you have currently set for any other users and databases.
This worked for me, hope it is what you are after.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.