Hi there,
I have DreamFactory installation on my server, version 1.8.1. I would like to connect to remote DB MariaDB version 5.5.34 on custom port 3310. When I created remote SQL DB I have got connection string “mysql:host=mariadb.myserver.com:3310;dbname=XYZ”.
But when I try to get data , I’ve got error: CDbConnection failed to open the DB connection.
Is mariadb supported, or I should use another connection string? I also tried dblib:… but with same error.
MariaDB should indeed work fine with a normal MySQL connection string (that is, mysql: is fine). I believe you will need to specify the port using the port= parameter rather than using a colon and port number after the host value. Given your example, this would become:
Here’s a link to the MySQL documentation’s connection string reference page. I recommend taking a look whenever you need to specify any non-standard values or generally edit your connection string.