Articles in this section

How to install Plesk on Linux with specific pre-installed MySQL/MariaDB version

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to install Plesk on Linux with specific pre-installed MySQL/MariaDB version?

Answer

If MySQL/MariaDB server is already installed on a server:

  1. Connect to the server via SSH.

  2. Create the file /root/.my.cnf:

    # touch /root/.my.cnf

  3. Open the file in a text editor. In this example, we are using the vi editor:

    # vi /root/.my.cnf

  4. Specify the username and the password of a MySQL/MariaDB user with administrator rights:

    CONFIG_TEXT: [client]
    user = root
    password = "root_password"

  5. Save the changes and close the file.

  6. Install Plesk on the server.

Was this article helpful?

Comments

2 comments
Date Votes
  • Hi,

    Default perms for /root/.my.cnf are 644 

    Should be 600

    LadyLinux

    0
  • Does not work ERROR while trying to establish test connection. If you are installing Plesk on an already configured MySQL server, you need to specify the administrator's credentials to succeed with the installation. To do this, you need to create a file - /root/.my.cnf with the 'client' section where you need to provide user and its password ("user = $admin_name" and "password = $admin_pass"). After installation is finished, the file /root/.my.cnf will be renamed to /root/.my.cnf.bak

    Tried web and command line install, 600 and 777 for permissions, no joy.  Help!

    0

Please sign in to leave a comment.