Specify different mariadb socket/instance or port

I’m installing ERPnext manually on a Debian Wheezy.
I have mysql installed along side with mariadb which is on port 3307, however when creating new site I can’t figure out how to specify the MariaDB instance.
Is there a way to point out bench to mariab socket or port ?
For instance when I want to communicate with Mariadb instead of Mysql I specify the socket file like this :
mysql -e "SELECT VERSION();" --socket=/var/mariadb-data/mariadb.sock

Thanks for any help

I found a workaround here https://discuss.frappe.io/t/fixed-cant-connect-to-local-mysql-server-through-socket-tmp-mysql-sock/20979.

But why should one make a hard-coded change just to connect to a specific database ??

1 Like