LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mysql_secure_installation

improves MySQL security after installation

TLDR

Run secure installation wizard
$ mysql_secure_installation
copy
Run with socket
$ mysql_secure_installation --socket=[/var/run/mysqld/mysqld.sock]
copy
Run with defaults file
$ mysql_secure_installation --defaults-file=[/etc/mysql/my.cnf]
copy

SYNOPSIS

mysql_secure_installation [options]

DESCRIPTION

mysql_secure_installation improves MySQL security after installation. The interactive wizard performs the following steps: set or change the root password, remove anonymous users, disallow remote root login, remove the test database, and reload privilege tables. It is recommended for all new installations.The program reads the [mysql_secure_installation] and [client] groups from option files.

PARAMETERS

--socket path

Unix socket file for connections to localhost.
--host host
MySQL server hostname.
--port port
TCP/IP port number.
--user, -u user
MySQL username for connecting to the server.
--defaults-file file
Read only the specified option file.
--no-defaults
Do not read any option files.
--use-default
Execute noninteractively using default answers. Useful for unattended installation.
--password, -p password
The current password for connecting.

INSTALL

sudo apk add mariadb-client
copy
sudo zypper install mariadb-client
copy

SEE ALSO

mysql(1), mysqladmin(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid