deep1234 Posted October 23, 2016 Share Posted October 23, 2016 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. Link to comment https://www.neowin.net/forum/topic/1312122-cant-reset-the-password-for-mysql-missing-mysql_safe/ Share on other sites More sharing options...
0 shockz Posted October 23, 2016 Share Posted October 23, 2016 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. Link to comment https://www.neowin.net/forum/topic/1312122-cant-reset-the-password-for-mysql-missing-mysql_safe/#findComment-597640124 Share on other sites More sharing options...
0 deep1234 Posted October 24, 2016 Author Share Posted October 24, 2016 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. Link to comment https://www.neowin.net/forum/topic/1312122-cant-reset-the-password-for-mysql-missing-mysql_safe/#findComment-597640434 Share on other sites More sharing options...
0 pqt Posted October 24, 2016 Share Posted October 24, 2016 Perhaps no password is set yet? If you haven't set it up, there may just be no password at all. Link to comment https://www.neowin.net/forum/topic/1312122-cant-reset-the-password-for-mysql-missing-mysql_safe/#findComment-597640604 Share on other sites More sharing options...
Question
deep1234
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.
Link to comment
https://www.neowin.net/forum/topic/1312122-cant-reset-the-password-for-mysql-missing-mysql_safe/Share on other sites
3 answers to this question
Recommended Posts