Skip to content

utfmb4 database #5108

@Underdog-01

Description

@Underdog-01

Description

With a database that has been installed as ie. urf8mb4 the SMF 2.1 installation creates all tables as 3-Byte UTF8 and does not conform to the default database setting/structure.

Steps to reproduce

  1. Create utf8mb4_unicode_ci database
  2. Change database type in Settings.php file to utf8mb4 (set $db_mb4 variable as true)
  3. Run the SMF 2.1 installer
  4. Use a database client (ie. phpmyadmin) to view table structure of the database tables that SMF 2.1 created

Environment (complete as necessary)

  • Version/Git revision: Current
  • Database Type: MySQL / MariaDB
  • Database Version: MySQL 8.0.12 / MariaDB 10.3.10
  • PHP Versions: PHP 5.6 - PHP 7.2.11

Additional information/references

The settings variable should have the behavior of forcing the SMF 2.1 installer to create tables as utf8mb4. In my opinion it is possible to read the database default value and use that instead of relying on the variable in Settings.php. In either case the installation process fails to create the tables as utf8mb4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions