24#ifndef SQL_INITIALIZE_H
25#define SQL_INITIALIZE_H 1
35 bool begin(
void)
override;
38 void end(
void)
override;
52#define ALLOWED_PWD_UPCHARS "QWERTYUIOPASDFGHJKLZXCVBNM"
53#define ALLOWED_PWD_LOWCHARS "qwertyuiopasdfghjklzxcvbnm"
54#define ALLOWED_PWD_NUMCHARS "1234567890"
55#define ALLOWED_PWD_SYMCHARS ",.-+*;:_!#%&/()=?><"
Definition: sql_initialize.h:31
int m_cmd_ofs
Definition: sql_initialize.h:42
void report_error_details(log_function_t log) override
Definition: sql_initialize.cc:197
void end(void) override
End processing the iterator.
Definition: sql_initialize.cc:209
bool begin(void) override
start processing the iterator
Definition: sql_initialize.cc:140
virtual ~Compiled_in_command_iterator()=default
Compiled_in_command_iterator()=default
int m_cmds_ofs
Definition: sql_initialize.h:41
int next(std::string &query) override
Get the next query string.
Definition: sql_initialize.cc:179
Abstract interface to reading bootstrap commands.
Definition: bootstrap_impl.h:33
void(* log_function_t)(const char *message)
Definition: bootstrap_impl.h:35
static char * query
Definition: myisam_ftdump.cc:45
static char * password
Definition: mysql_secure_installation.cc:56
bool generate_password(char *password, int size)
Definition: sql_initialize.cc:92
bool mysql_initialize_directory_freshly_created
True if –initialize has actually created the directory.
Definition: sql_initialize.cc:63
#define ALLOWED_PWD_UPCHARS
Definition: sql_initialize.h:52
#define ALLOWED_PWD_LOWCHARS
Definition: sql_initialize.h:53
static constexpr const char g_numeric_chars[]
Definition: sql_initialize.h:62
static constexpr const char g_special_chars[]
Definition: sql_initialize.h:63
#define ALLOWED_PWD_NUMCHARS
Definition: sql_initialize.h:54
bool initialize_create_data_directory(const char *data_home)
Create the data directory.
Definition: sql_initialize.cc:227
static constexpr const char g_upper_case_chars[]
Definition: sql_initialize.h:60
bool opt_initialize_insecure
Definition: sql_initialize.cc:61
#define ALLOWED_PWD_SYMCHARS
Definition: sql_initialize.h:55
static constexpr const char g_lower_case_chars[]
Definition: sql_initialize.h:61
static constexpr const char g_allowed_pwd_chars[]
Definition: sql_initialize.h:57