зеркало из https://github.com/github/vitess-gh.git
Add strong warning against production use to example init_db.sql file (#4815)
* Add strong warning against production use to example init_db.sql file Signed-off-by: Toliver Jue <toliver@planetscale.com>
This commit is contained in:
Родитель
d2d8820eef
Коммит
7329452df3
|
@ -1,9 +1,16 @@
|
|||
# This file is executed immediately after mysql_install_db,
|
||||
# to initialize a fresh data directory.
|
||||
|
||||
##########################################
|
||||
###############################################################################
|
||||
# WARNING: This sql is *NOT* safe for production use,
|
||||
# as it contains default well-known users and passwords.
|
||||
# Care should be taken to change these users and passwords
|
||||
# for production.
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Equivalent of mysql_secure_installation
|
||||
##########################################
|
||||
###############################################################################
|
||||
|
||||
# Changes during the init db should not make it to the binlog.
|
||||
# They could potentially create errant transactions on replicas.
|
||||
|
@ -17,9 +24,9 @@ DELETE FROM mysql.user WHERE User = 'root' AND Host != 'localhost';
|
|||
# Remove test database.
|
||||
DROP DATABASE IF EXISTS test;
|
||||
|
||||
##########################################
|
||||
###############################################################################
|
||||
# Vitess defaults
|
||||
##########################################
|
||||
###############################################################################
|
||||
|
||||
# Vitess-internal database.
|
||||
CREATE DATABASE IF NOT EXISTS _vt;
|
||||
|
|
Загрузка…
Ссылка в новой задаче