26#ifndef ROUTER_SRC_BOOTSTRAP_SRC_BOOTSTRAP_MYSQL_ACCOUNT_H_ 
   27#define ROUTER_SRC_BOOTSTRAP_SRC_BOOTSTRAP_MYSQL_ACCOUNT_H_ 
   56                                     const std::set<std::string> &hostnames,
 
   57                                     const std::string &username,
 
   59                                     bool password_change_ok);
 
   63      const UserOptions &user_options, 
const std::string &username,
 
   64      const std::set<std::string> &hostnames, 
const std::string &
password,
 
   65      bool password_change_ok, 
bool if_not_exists);
 
   68                       const std::string &username,
 
   69                       const std::set<std::string> &hostnames,
 
   70                       const std::string &
password, 
bool if_not_exists = 
false);
 
   73                    const std::set<std::string> &hostnames,
 
   74                    const std::string &
password, 
bool if_not_exists);
 
   77                            const std::string &new_accounts);
 
   79      const std::string &username, 
const std::set<std::string> &hostnames,
 
std::vector< std::string > Strings
Definition: bootstrap_configurator.h:44
 
static constexpr unsigned kMaxPasswordRetries
Definition: bootstrap_mysql_account.h:36
 
Definition: bootstrap_mysql_account.h:49
 
std::string create_accounts_with_compliant_password(const UserOptions &user_options, const std::string &username, const std::set< std::string > &hostnames, const std::string &password, bool password_change_ok, bool if_not_exists)
Definition: bootstrap_mysql_account.cc:281
 
void create_accounts(const UserOptions &user_options, const std::string &username, const std::set< std::string > &hostnames, const std::string &password, bool if_not_exists=false)
Definition: bootstrap_mysql_account.cc:336
 
void create_users(const std::string &username, const std::set< std::string > &hostnames, const std::string &password, bool if_not_exists)
Definition: bootstrap_mysql_account.cc:385
 
std::set< std::string > get_hostnames_of_created_accounts(const std::string &username, const std::set< std::string > &hostnames, bool if_not_exists)
Definition: bootstrap_mysql_account.cc:116
 
BootstrapMySQLAccount(mysqlrouter::MySQLSession *session, mysqlrouter::MySQLAccountsCleaner &accounts_cleaner)
Definition: bootstrap_mysql_account.h:51
 
std::string create_router_accounts(const UserOptions &user_options, const std::set< std::string > &hostnames, const std::string &username, const std::string &password, bool password_change_ok)
create account to be used by Router.
Definition: bootstrap_mysql_account.cc:232
 
void give_grants_to_users(const UserOptions &user_options, const std::string &new_accounts)
Definition: bootstrap_mysql_account.cc:442
 
mysqlrouter::MySQLSession * mysql_
Definition: bootstrap_mysql_account.h:82
 
mysqlrouter::MySQLAccountsCleaner & accounts_cleaner_
Definition: bootstrap_mysql_account.h:83
 
Definition: accounts_cleaner.h:35
 
Definition: mysql_session.h:157
 
static char * password
Definition: mysql_secure_installation.cc:58
 
Definition: bootstrap_mysql_account.h:39
 
std::string account_create
Definition: bootstrap_mysql_account.h:42
 
bool force_password_validation
Definition: bootstrap_mysql_account.h:43
 
uint64_t password_retries
Definition: bootstrap_mysql_account.h:41
 
bool autogenerated
Definition: bootstrap_mysql_account.h:46
 
Strings grant_role
Definition: bootstrap_mysql_account.h:45
 
std::string account
Definition: bootstrap_mysql_account.h:40