MySQL 8.4.3
Source Code Documentation
sql_initialize.h File Reference
#include <string>
#include "sql/bootstrap_impl.h"

Go to the source code of this file.

Classes

class  Compiled_in_command_iterator
 

Macros

#define ALLOWED_PWD_UPCHARS   "QWERTYUIOPASDFGHJKLZXCVBNM"
 
#define ALLOWED_PWD_LOWCHARS   "qwertyuiopasdfghjklzxcvbnm"
 
#define ALLOWED_PWD_NUMCHARS   "1234567890"
 
#define ALLOWED_PWD_SYMCHARS   ",.-+*;:_!#%&/()=?><"
 

Functions

bool initialize_create_data_directory (const char *data_home)
 Create the data directory. More...
 
bool generate_password (char *password, int size)
 

Variables

bool opt_initialize_insecure
 
bool mysql_initialize_directory_freshly_created
 True if –initialize has actually created the directory. More...
 
static constexpr const char g_allowed_pwd_chars []
 
static constexpr const char g_upper_case_chars [] = ALLOWED_PWD_UPCHARS
 
static constexpr const char g_lower_case_chars [] = ALLOWED_PWD_LOWCHARS
 
static constexpr const char g_numeric_chars [] = ALLOWED_PWD_NUMCHARS
 
static constexpr const char g_special_chars [] = ALLOWED_PWD_SYMCHARS
 

Macro Definition Documentation

◆ 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"

Function Documentation

◆ 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_homethe normalized path to the data directory
Returns
status
Return values
truefailed to create. Error printed.
falsesuccess

Variable Documentation

◆ 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

constexpr const char g_lower_case_chars[] = ALLOWED_PWD_LOWCHARS
staticconstexpr

◆ g_numeric_chars

constexpr const char g_numeric_chars[] = ALLOWED_PWD_NUMCHARS
staticconstexpr

◆ g_special_chars

constexpr const char g_special_chars[] = ALLOWED_PWD_SYMCHARS
staticconstexpr

◆ g_upper_case_chars

constexpr const char g_upper_case_chars[] = ALLOWED_PWD_UPCHARS
staticconstexpr

◆ 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