mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-12-22 14:52:05 -05:00
Fix RHEL MariaDB configuration
This commit is contained in:
parent
02643acd9e
commit
7ad9c64ef8
@ -133,7 +133,7 @@ Run the following queries:
|
||||
```
|
||||
CREATE DATABASE drupal_default CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
CREATE USER 'drupal_default'@'127.0.0.1' IDENTIFIED BY 'yourPassword';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON drupal.* TO 'drupal_default'@'127.0.0.1';
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON drupal_default.* TO 'drupal_default'@'127.0.0.1';
|
||||
exit
|
||||
```
|
||||
|
||||
|
@ -49,6 +49,12 @@ unpriv curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash
|
||||
sudo dnf install -y MariaDB-server
|
||||
sudo systemctl enable --now mariadb
|
||||
|
||||
# Secure MariaDB
|
||||
output "Running mariadb-secure-installation."
|
||||
output "You should answer yes to everything except setting the root password."
|
||||
output "This is already done via the UNIX socket if you switch it with the prompts so you should be okay."
|
||||
sudo mariadb-secure-installation
|
||||
|
||||
# Run NGINX Setup script
|
||||
unpriv curl -LsS https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/setup.sh | sudo bash
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user