Re: HOWTO enable MySQL on your Plesk VPS
One thing: It may happen that once you install MySQL in a way that Charles mentioned above it does not get properly configured with Plesk for Windows. Since, by default, Plesk puts a random generated password for client's end MySQL (the one you just installed per the first post), you need to reset it.
Open my.ini that is located in c:\SWSoft\Plesk\Databases\MySQL\Data (if not here, look in c:\Program Files\SWSoft\Plesk\Databases\MySQL\Data).
Add the following line:
skip-grant-tables
Then save, close and restart MySQL like this: double click the red icon in the right-down corner (Plesk Service Monitor), check MySQL and press 'restart' button.
Then open CMD (start -> run -> cmd) and navigate to c:\SWSoft\Plesk\Databases\MySQL\bin (or c:\Program Files\SWSoft\Plesk\Databases\MySQL\bin - if you are using older version of Plesk for Windows) and type the following command:
mysql -uadmin mysql
You should be logged in. Type the following command:
update user set password=password('newpassword')where user='admin';
Of course, change the "newpassword" with the password you wish to use.
After that, make sure to remove that "skip-grant-tables" line from my.ini and when you do so, restart MySQL again.
Login to Plesk and configure MySQL in the "Database" section as Charles already mentioned above.
|