Comments - MariaDB refuses to stay confined to install directory
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.
You are using command-line options for mysqld_safe in a wrong order here:
defaults-file should be the very first option on the command line (see the documentation). The way you put it now, mysqld_safe simply ignores the defaults file and tries to use the socket location specified in one of the cnf files in default locations. Try to do it this way instead: