26#ifndef ROUTER_SRC_BOOTSTRAP_SRC_BOOTSTRAP_MYSQL_ACCOUNT_H_
27#define ROUTER_SRC_BOOTSTRAP_SRC_BOOTSTRAP_MYSQL_ACCOUNT_H_
53 const std::set<std::string> &hostnames,
54 const std::string &username,
56 bool password_change_ok);
60 const UserOptions &user_options,
const std::string &username,
61 const std::set<std::string> &hostnames,
const std::string &
password,
62 bool password_change_ok,
bool if_not_exists);
65 const std::string &username,
66 const std::set<std::string> &hostnames,
67 const std::string &
password,
bool if_not_exists =
false);
70 const std::set<std::string> &hostnames,
71 const std::string &
password,
bool if_not_exists);
74 const std::string &new_accounts);
76 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:35
Definition: bootstrap_mysql_account.h:48
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:293
BootstrapMySQLAccount(mysqlrouter::MySQLSession *session)
Definition: bootstrap_mysql_account.h:50
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:348
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:395
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:128
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:244
void give_grants_to_users(const UserOptions &user_options, const std::string &new_accounts)
Definition: bootstrap_mysql_account.cc:452
mysqlrouter::MySQLSession * mysql_
Definition: bootstrap_mysql_account.h:87
struct BootstrapMySQLAccount::UndoCreateAccountList undo_create_account_list_
Definition: mysql_session.h:157
static char * password
Definition: mysql_secure_installation.cc:58
Definition: bootstrap_mysql_account.h:79
@ kAllAccounts
Definition: bootstrap_mysql_account.h:82
@ kNotSet
Definition: bootstrap_mysql_account.h:81
@ kNewAccounts
Definition: bootstrap_mysql_account.h:83
enum BootstrapMySQLAccount::UndoCreateAccountList::@27 type
std::string accounts
Definition: bootstrap_mysql_account.h:85
Definition: bootstrap_mysql_account.h:38
std::string account_create
Definition: bootstrap_mysql_account.h:41
bool force_password_validation
Definition: bootstrap_mysql_account.h:42
uint64_t password_retries
Definition: bootstrap_mysql_account.h:40
bool autogenerated
Definition: bootstrap_mysql_account.h:45
Strings grant_role
Definition: bootstrap_mysql_account.h:44
std::string account
Definition: bootstrap_mysql_account.h:39