Let's try this...

This commit is contained in:
WilliamMiceli
2019-11-22 23:04:15 -05:00
parent 8a8498ea7d
commit 44d32af4f9
2 changed files with 4 additions and 2 deletions

20
scripts/mysql_setup.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
mysql_secure_installation << EOF
y
Password1234
Password1234
y
y
y
y
EOF
#UPDATE mysql.user SET authentication_string=PASSWORD('Password1234') WHERE User='root';
#DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');
#DELETE FROM mysql.user WHERE User='';
#DELETE FROM mysql.db WHERE Db='test' OR Db='test_%';
#FLUSH PRIVILEGES;