Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12645

mysql_install_db: no install test db option

Details

    Description

      Neither Red Hat, Fedora or Debian want to install a test database with mysql_install_db

      ref: https://github.com/devexp-db/mariadb/blob/f27/mariadb-notestdb.patch
      debian/patches/41_scripts_mysql_install_db.sh_no_test.dpatch

      As distros are the big users of mysql_install_db an one of these patches be merged upstream or an option provided to mysql_install_db?

      FYI otto and mschorm

      Attachments

        Issue Links

          Activity

            svoj Sergey Vojtovich added a comment - Yet more tests fixed in https://github.com/MariaDB/server/commit/74e43e5d54a684312f47d4db9daf209575accfdb

            Now 9ed1b9d659af4f955ad4994104aba32be95ee950 with mysql_install_db.exe fixed (thanks to wlad).

            svoj Sergey Vojtovich added a comment - Now 9ed1b9d659af4f955ad4994104aba32be95ee950 with mysql_install_db.exe fixed (thanks to wlad ).
            danblack Daniel Black added a comment -

            debian/mariadb-server-10.3.postinst needs --skip-auth-anonymous-user to fully remove debian/patches/33_scripts_mysql_create_system_tables_no_test.dpatch

            so RPMs also have a consistent install add --skip-auth-anonymous-user and --skip-test-db to the mysql_install_db in ./support-files/rpm/server-postin.sh

            Didn't realise so many tests depended on a "clean" directory. Thanks for cleaning those up and the Windows mysql_install_db.cc.

            danblack Daniel Black added a comment - debian/mariadb-server-10.3.postinst needs --skip-auth-anonymous-user to fully remove debian/patches/33_scripts_ mysql_create_system_tables _no_test.dpatch so RPMs also have a consistent install add --skip-auth-anonymous-user and --skip-test-db to the mysql_install_db in ./support-files/rpm/server-postin.sh Didn't realise so many tests depended on a "clean" directory. Thanks for cleaning those up and the Windows mysql_install_db.cc.

            Anonymous user without test db doesn't seem to make any sense. I removed this option and moved anonymous user creation to mysql_test_db.sql. Patches are in bb-10.3-svoj.

            svoj Sergey Vojtovich added a comment - Anonymous user without test db doesn't seem to make any sense. I removed this option and moved anonymous user creation to mysql_test_db.sql. Patches are in bb-10.3-svoj.

            looks ok to me

            serg Sergei Golubchik added a comment - looks ok to me

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.