[Cppcms-users] cppdb::session: change from Unix socket to remote connection.
Brought to you by:
artyom-beilis
From: Richard S. <ri...@sz...> - 2017-04-10 22:03:09
|
Hello, when executing: cppdb::session sql("mysql:host=localhost;port=3306;database=db;user=user;password='password';@module=./libcppdb_mysql.so"); I get the following exception: what(): cppdb::mysql::Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory") How can I specify cppdb::session to use the host and port for my MySQL server and not Unix sockets? Perhaps I am missing something, but it does not seem clear from the documentation at: http://cppcms.com/sql/cppdb/connstr.html and http://cppcms.com/sql/cppdb/mysql.html Kind regards, Richard Szibele |