Articles in this section

Can't install MariaDB in Plesk Windows: FATAL ERROR: Can't create data directory 'N:\MySQL-Data' (one or more intermediate directories do not exist)

Plesk for Windows kb: technical

Applicable to:

  • Plesk for Windows

Symptoms

  • Installing Maria DB 11.4 from Plesk Installer output an error:

    PLESK_ERROR: MSI: Error! Critical action 'Updating MariaDB Server component...' failed:
    Command "C:\Program Files (x86)\Plesk\admin\bin\defpackagemng.exe" --set "--type=mysqlserver" "--default=mariadb114" failed with code 1. Output: Execute mysqlmng --repair-local-service failed with error code 1: Execute C:\Program Files\MariaDB 11.4\bin\mysql_install_db.exe "--datadir=N:\MySQL-Data" "--password=*" --silent failed[1]:
    FATAL ERROR: Can't create data directory 'N:\MySQL-Data' (one or more intermediate directories do not exist)

  • Databases are stored on remote location.

Cause

Wrong path in MYSQL_DATA_D key in the registry database.

Resolution

  1. Connect to the Plesk server via RDP.

  2. Open Registry Editor in Start > Run and type regedit.

  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PLESK\PSA Config

  4. Check the MYSQL_DATA_Dpath and change it to your MySQL datadir (e.g: C:\Program Files\MariaDB 11.4\data).
  5. Run Plesk Installer again to install MariaDB.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.