Skip to content
Permalink
Browse files
Additional security for MySQL
- it changes the default of sql_mode to include "NO_AUTO_CREATE_USER"
- it will prevent the GRANT statement from automatically creating new
user accounts unless authentication information is specified.
  • Loading branch information
ygy committed Jan 18, 2016
1 parent 93dd48d commit 10f5392d57107ebc70b75e40f97b54c34b5bfc78
Showing 3 changed files with 12 additions and 0 deletions.
@@ -15,5 +15,9 @@ datadir = ${driver.dataDir}
bind-address = 0.0.0.0
# skip-networking

#Prevent the GRANT statement from automatically creating new user accounts if it would otherwise do so,
#unless authentication information is specified
sql_mode = NO_AUTO_CREATE_USER

# Custom configuration options
${driver.mySqlServerOptionsString}
@@ -15,6 +15,10 @@ datadir = ${driver.dataDir}
bind-address = 0.0.0.0
# skip-networking

#Prevent the GRANT statement from automatically creating new user accounts if it would otherwise do so,
#unless authentication information is specified
sql_mode = NO_AUTO_CREATE_USER

# Replication config
server-id = 1
binlog-format = mixed
@@ -16,6 +16,10 @@ datadir = ${driver.dataDir}
bind-address = 0.0.0.0
# skip-networking

#Prevent the GRANT statement from automatically creating new user accounts if it would otherwise do so,
#unless authentication information is specified
sql_mode = NO_AUTO_CREATE_USER

# Replication config
server-id = ${config["mysql.server_id"]}
relay-log = mysql-slave-${config["mysql.server_id"]}-relay

0 comments on commit 10f5392

Please sign in to comment.