cat /root/.my.cnf
[client]
user="root"
password="u1lHDR2bfmrqi"
cat /usr/local/directadmin/conf/mysql.conf
# /usr/local/psa/bin/admin --show-password
"%plesk_bin%\plesksrvclient" -get
For most Linux platforms this will be how you perform this:For any reason I forgot Mysql root password and could not log into mysql server on my vps, how can I find this out? Is there any file where this password is stored?
/etc/init.d/mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root
use mysql;
update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
flush privileges;
quit
/etc/init.d/mysql stop
/etc/init.d/mysql start
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!