Skip to content

Commit 0a6eef9

Browse files
author
Vamsikrishna Bhagi
committed
WL#6441 Convert mysql_secure_installation
script to C mysql_secure_installation script currently stores the user supplied password in a temporary option file. This option file is later passed to mysql client, which executes the required SQL commands. Since, storing password in an option file is considered insecure, the script can be converted to a C++ program so that the program can connect to the server directly and execute the specified commands using C API (libmysql).
1 parent 26285ce commit 0a6eef9

7 files changed

+791
-841
lines changed

client/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ TARGET_LINK_LIBRARIES(mysqlslap mysqlclient)
7575
MYSQL_ADD_EXECUTABLE(mysql_config_editor mysql_config_editor.cc)
7676
TARGET_LINK_LIBRARIES(mysql_config_editor mysqlclient)
7777

78+
MYSQL_ADD_EXECUTABLE(mysql_secure_installation mysql_secure_installation.cc)
79+
TARGET_LINK_LIBRARIES(mysql_secure_installation mysqlclient)
80+
7881
# "WIN32" also covers 64 bit. "echo" is used in some files below "mysql-test/".
7982
IF(WIN32)
8083
MYSQL_ADD_EXECUTABLE(echo echo.c)

0 commit comments

Comments
 (0)