MariaDB Security and Configuration Setup #192
MickLesk
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Copied from original post: tteck/Proxmox#2915
MariaDB Security and Configuration Setup
The next step involves running the security script, which modifies certain default options to enhance security. Our purpose here is to prevent remote root logins and remove unnecessary database users.
Run the Security Script
Follow the prompts:
y
n
y
y
y
y
Create an Admin User
We'll create a new account named
admin
with root-level capabilities, but configured for password authentication.The prompt will change to
MariaDB [(none)]>
. Now, create a new local admin user (adjust the username and password to your preference):Grant the admin user root privileges (adjust username and password as above):
To allow the admin user password-based access from your local area network (LAN) within the subnet
192.168.100.0/24
, use the following (adjust the username, password, and subnet as needed):Flush the privileges to ensure they are saved and available in the current session:
Exit the MariaDB shell:
exit
Log in as the New Admin User
Log in as the new database user you just created:
Create a new database:
Exit the MariaDB shell:
exit
Additional Configuration
Check the MariaDB status:
Update the
db_url
in yourconfiguration.yaml
for Home Assistant:Access the phpMyAdmin interface at:
IP/phpMyAdmin
Beta Was this translation helpful? Give feedback.
All reactions