Plesk

Unable to start MariaDB 10.6 on a Plesk server: Bind on TCP/IP port. Got error: 22: Invalid argument

Symptoms

Cause

MariaDB 10.6 does not allow to bind both ::1 and 127.0.0.1 via the setting bind-address = ::ffff:127.0.0.1 in the file /etc/my.cnf.

Resolution

  1. Connect to the Plesk server via SSH.
  2. Open the file in a text editor. In this example, we are using the vi editor:

    # vi /etc/my.cnf

  3. Change the bind-address setting from:

    bind-address = ::ffff:127.0.0.1

    to

    bind-address = 127.0.0.1

  4. Save the changes and close the file.

  5. Start the MariaDB service:

    # service mariadb restart

Exit mobile version