• tsmith@siva.hindu.god's avatar
    WL #3670: Compile-time option to remove GRANT-related startup options · bac65ee9
    tsmith@siva.hindu.god authored
    - configure --disable-grant-options defines DISABLE_GRANT_OPTIONS
    - configure.js/cmake also updated
    - if DISABLE_GRANT_OPTIONS is defined, mysqld no longer recognizes:
      --bootstrap
      --init-file
      --skip-grant-tables
    
    Scripts which rely on those three options are modified to check the environment for MYSQLD_BOOTSTRAP; it should be set to the full path of a mysqld which does handle those options.
    
    For example:
    
    $ export MYSQLD_BOOTSTRAP
    $ MYSQLD_BOOTSTRAP=/path/to/full/MySQL/bin/mysqld
    $ mysql_install_db
    $ make test
    bac65ee9
mysqld.cc 274 KB