How do I specify a port when accessing a MySQL database?

Paul_Masurel
Level 2
How do I specify a port when accessing a MySQL database?
The server is listening on port 3315.

There is no field named port in the form, and if input it in the host field as

"myhost:3315"



I get the following error:

"Connection failed: Failed to connect: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "3324:3306"'., caused by: NumberFormatException: For input string: "3324:3306""
0 Kudos
3 Replies
Clรฉment_Stenac

Hi,



Unfortunately, we forgot to add this option in the UI. As a workaround, you can create the connection and then edit the DATA_DIR/config/connections.json file and add a




"port": 3315


entry in the "params" entry of your connection.

0 Kudos
Paul_Masurel
Level 2
Author
Alternatively people can also use the jdbc connector, and still select the MySQL dialect.
0 Kudos
jrouquie
Dataiker Alumni
Also note that this has been fixed in version 2.1
0 Kudos