• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Cant reset the password for mysql, missing mysql_safe.

Question

deep1234    1

Hi guys. I fresh install mysql on centos7 but I cant login with root. I am trying now to reset the password but it seems that there is a missing file (mysqld_safe).

 

-- First --

[root@arkan-clearos-lan ~]# sudo systemctl stop mysqld

 

-- Then --
[root@arkan-clearos-lan ~]# sudo mysqld_safe --skip-grant-tables &
[1] 1041
[root@arkan-clearos-lan ~]# sudo: mysqld_safe: command not found

 

Link : https://www.linode.com/docs/databases/mysql/how-to-install-mysql-on-centos-7

 

Please advise me.

 

And Thank you.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
shockz    5,708

You probably have to run the mysql_secure_installation and go through the initial setup. There are other ways to configure sql but that's probably your best bet with the limited info you provided.

Share this post


Link to post
Share on other sites
  • 0
deep1234    1

I tried the mysql_secure_installation. But it is asking for the root password and it is not accepting it. 

 

I am willing to provide any extra info needed.

Share this post


Link to post
Share on other sites
  • 0
pqt    275

Perhaps no password is set yet? If you haven't set it up, there may just be no password at all.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.