Comments - mysql_secure_installation
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
A lot of these scripts that come with MySQL and MariaDB are lacking some documentation. I have several instances of MariaDB running and I wanted to run this script on my 2nd instance, with its socket file in /run/mysqld/mysqld2.sock. Tried
man mysql_secure_installation
andmysql_secure_installation --help
and looked here, but it did not mention any way to do this.However, it seems it just works with the same arguments as with
mysql
itself, so:mysql_secure_installation -S /run/mysqld/mysqld2.sock
did the trick!