T
Togy
Guest
What is root password for other mysql that works on 3306? Or how can i set a password? I tried everything but can not connect.
What About Plesk mysql root password? can I reset it ?
Originally posted by Togy
cd "C:\Program Files\SWsoft\Plesk\MySQL\bin"
or
cd "C:\Program Files\SWsoft\Plesk\databases\MySQL\bin"
mysqladmin -uadmin -ppassword -P3306 proc stat
If you have client's mysql service connected to Plesk you can just reset its password. Or look in psa db in misc table there are mysql_admin and mysql_password values.
Otherwise you can reset mysql password:
To reset Mysql admin's pass please follow these steps:
- Stop Mysql service in Administrative tools -> Services
- Start -> Run... -> cmd
- start it manually using this line:
"%plesk_dir%\Databases\Mysql\bin\mysqld-nt.exe" -P3306 --skip-grant-tables
- minimize this windows
- Start -> Run... -> cmd
- connect this mysql instance:
"%plesk_dir%\Databases\Mysql\bin\mysql.exe" -P3306 mysql
- Execute the following query:
mysql> update mysql.user set password=password('new_password') where user='admin';
mysql> exit
- Open Task Manager and terminate mysqld-nt.exe process
- Start Mysql service from Services window
After that you can use this new password in Plesk CP -> Databases -> on Mysql
As server address you can use localhost and 3306 as port
and login/pass will be admin/<password you set before>.