Installation of v3.3.1 on Ubuntu 24.04 with MySQL 8.0 fails

Discussion in 'Installation/Configuration' started by EvilBMP, Feb 20, 2026 at 10:08 AM.

  1. EvilBMP

    EvilBMP New Member

    Installing ISPconfig on a fresh vServer with Ubuntu 24.04.4 LTS with PHP 8.3 (standard APT packages) and MySQL 8.0.45 (standard APT packages) "fails" (better: does not install correctly) during the database migration step with the following error:

    Code:
    Checking MySQL or compatible version 8.0.45-0ubuntu0.24.04.1 .. OK
    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1064 (42000) at line 1852: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CURDATE(),
      PRIMARY KEY  (`userid`)
    ) DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1' at line 28
    The problem comes from the "`last_password_change` DATE NULL DEFAULT CURDATE()," line in the CREATE TABLE statement for the "sys_user" table.
    To fix this issue, I had to surround the "CURDATE()" function with another pair of round brackets, like so:

    Code:
    `last_password_change` DATE NULL DEFAULT (CURDATE()),
    Same applies for the "incremental" migration file "upd_0102.sql".

    See discussion on StackOverflow on this topic -> unfortunately I cannot post links ...
     
  2. EvilBMP

    EvilBMP New Member

    "Google" for "stackoverflow current-date-curdate-not-working-as-default-date-value" and the first result shows the related discussion
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I'll add an issue for it in our bug tracker even if your database choice is not supported by ISPConfig. ISPConfig has been using and requiring MariaDB for quite some time now, we do not support MySQL, and we do not provide any installation guide that uses MySQL, so not sure where you got the wrong instructions from that you used to set up your server.

    Better use the autoinstaller next time to get a correct system installation: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. EvilBMP

    EvilBMP New Member

    Alright, I wasn't aware of that ISPconfig does not officially support MySQL anymore. Sorry...
     

Share This Page