Skip to content

Commit

Permalink
Updates commands in the 'securing the installation' section. Closes l…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsen committed Aug 14, 2024
1 parent b458933 commit 643a8ad
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ MariaDB [(none)]>
plugin to enable root password authentication:

USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE user='root';
ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD('password');
FLUSH PRIVILEGES;
exit;

1. Run the `mysql_secure_installation` script to address several security concerns in a default MariaDB installation:
1. Run the `mariadb-secure-installation` script to address several security concerns in a default MariaDB installation:

sudo mysql_secure_installation
sudo mariadb-secure-installation

You will be given the choice to change the MariaDB root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that you answer `yes` to these options. You can read more about the script in the [MariaDB Knowledge Base](https://mariadb.com/kb/en/mariadb/mysql_secure_installation/).

Expand Down Expand Up @@ -239,4 +239,4 @@ If you forget your root MariaDB password, it can be reset.

1. You should now be able to log into the database with your new root password:

sudo mariadb -u root -p
sudo mariadb -u root -p

0 comments on commit 643a8ad

Please sign in to comment.