I have an existing web server with mysql database installed. There are four databases on it, I have all four database's owner's username and passwords. However, I don't have the root password so that I couldn't create new users for each database and assign privileges. I tried this article to reset the root password but failed.
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
Could anyone tell me how to reset it?
thanks.
[root@dorrington init.d]# mysql --version
mysql Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (i686) using readline 5.1
[root@dorrington init.d]# /etc/init.d/mysqld stop
Stopping mysqld: [ OK ]
[root@dorrington init.d]# /etc/init.d/mysqld status
mysqld is stopped
[root@dorrington init.d]# /etc/init.d/mysqld --skip-grant-tables
Usage: /etc/init.d/mysqld {start|stop|status|restart
|condresta
rt|try-res
tart|reloa
d|force-re
load}
[root@dorrington init.d]# vi mysqld
[root@dorrington init.d]# cp mysqld /tmp
[root@dorrington init.d]# chmod 775 /tmp/mysqld
[root@dorrington init.d]#
Also make sure to read the comments at the bottom, some practical and helpful info. by others who faced similar issues in the area of the article would be mentioned.