How to use mysql_plugin utility? I tried to follow this official documentation to install unix_socket plugin using mysql_plugin utility but getting an error that


  Cannot read plugin config file unix_socket. Bad format in plugin
  configuration file.


FROM alpine:edge

RUN set -ex \
&amp;&amp; apk add mariadb mariadb-client \
&amp;&amp; mysql_install_db --user=mysql --skip-name-resolve \
&amp;&amp; echo 'auth_socket' &gt;&gt; /usr/lib/mariadb/plugin/unix_socket.ini  \
&amp;&amp; mysql_plugin --basedir=/usr --datadir=/var/lib/mysql --plugin_dir=/usr/lib/mariadb/plugin unix_socket ENABLE   

CMD ["mysqld"]


I cross checked the ini file. 

cat /usr/lib/mariadb/plugin/unix_socket.ini
auth_socket
The .ini needs to contain the plugin followed by the components.

The document Authentication Plugin - Unix Socket hints that the component name is unix_socket.

So the correct contents of the file should be:

echo -e 'auth_socket\nunix_socket' &gt;&gt; /usr/lib/mariadb/plugin/unix_socket.ini

As a workaround use plugin-load=auth_socket in /etc/my.cnf.d/mariadb-server.cnf seems also sufficient.