mariadb root user
This commit is contained in:
parent
45df6aad24
commit
6daa9664f1
|
@ -177,6 +177,9 @@ function install_mariadb {
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart mariadb
|
systemctl restart mariadb
|
||||||
|
|
||||||
|
run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;"
|
||||||
|
run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;"
|
||||||
|
|
||||||
mysqladmin -u root password "$MARIADB_PASSWORD"
|
mysqladmin -u root password "$MARIADB_PASSWORD"
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue