Skip to content

Use SSL connection #152

@Tamiyadd

Description

@Tamiyadd

Hi, i'm trying to make an SSL connection to a database but I always get "Error: Not connected" message.

Here is my code:

conn = mysql.createConnectionSync();
conn.connectSync(host, user, password, database)
conn.setSslSync(key, cert, ca, "", "ALL");

the variable for the connection are right

i'm doing something wrong or there is another problem?

thank for the help

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions