• Vladislav Vaintroub's avatar
    MDEV-27093 Do not pass root password in HEX(clear text) from mariadb-install-db.exe to bootstrap · 4d3ac328
    Vladislav Vaintroub authored
    Previously, password was passed as hex(clear_text_password).
    The hex encoding was used to avoid masking apostrophe and backslash etc.
    
    However, bootstrap still manages to misinterpert UTF8 password, so that
    root would not connect later.
    
    So the fix is to compute the native password hash inside mysql_install_db
    already instead, and create user with that hash, rather than letting bootstrap
    calculate it by using PASSWORD() function.
    4d3ac328
mysql_install_db.cc 24.7 KB