#include <string>
#include "sql/bootstrap_impl.h"
Go to the source code of this file.
◆ ALLOWED_PWD_LOWCHARS
#define ALLOWED_PWD_LOWCHARS "qwertyuiopasdfghjklzxcvbnm" |
◆ ALLOWED_PWD_NUMCHARS
#define ALLOWED_PWD_NUMCHARS "1234567890" |
◆ ALLOWED_PWD_SYMCHARS
#define ALLOWED_PWD_SYMCHARS ",.-+*;:_!#%&/()=?><" |
◆ ALLOWED_PWD_UPCHARS
#define ALLOWED_PWD_UPCHARS "QWERTYUIOPASDFGHJKLZXCVBNM" |
◆ generate_password()
bool generate_password |
( |
char * |
password, |
|
|
int |
size |
|
) |
| |
◆ initialize_create_data_directory()
bool initialize_create_data_directory |
( |
const char * |
data_home | ) |
|
Create the data directory.
Creates the data directory when –initialize is specified. The directory is created when it does not exist. If it exists, is empty and the process can write into it no action is taken and the directory is accepted. Otherwise an error is thrown.
- Parameters
-
data_home | the normalized path to the data directory |
- Returns
- status
- Return values
-
true | failed to create. Error printed. |
false | success |
◆ g_allowed_pwd_chars
constexpr const char g_allowed_pwd_chars[] |
|
staticconstexpr |
Initial value:=
#define ALLOWED_PWD_UPCHARS
Definition: sql_initialize.h:52
#define ALLOWED_PWD_LOWCHARS
Definition: sql_initialize.h:53
#define ALLOWED_PWD_NUMCHARS
Definition: sql_initialize.h:54
#define ALLOWED_PWD_SYMCHARS
Definition: sql_initialize.h:55
◆ g_lower_case_chars
◆ g_numeric_chars
◆ g_special_chars
◆ g_upper_case_chars
◆ mysql_initialize_directory_freshly_created
bool mysql_initialize_directory_freshly_created |
|
extern |
True if –initialize has actually created the directory.
◆ opt_initialize_insecure
bool opt_initialize_insecure |
|
extern |