2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-28 19:32:10 +00:00

Changed default UNIX socket path

This commit is contained in:
ruben
2020-04-16 14:02:55 +01:00
parent 5c3e0c1a9c
commit 5bd3c59dad
4 changed files with 7 additions and 9 deletions

View File

@@ -9,7 +9,7 @@
* You can get this database by running db_setup.sql.
* This example assumes you are connecting to MySQL server using
* a UNIX socket. The socket path can be configured using command line
* arguments, and defaults to /tmp/mysql.sock
* arguments, and defaults to /var/run/mysqld/mysqld.sock
*
* This example uses synchronous functions and handles errors using exceptions.
*/
@@ -37,7 +37,7 @@ void main_impl(int argc, char** argv)
exit(1);
}
const char* socket_path = "/tmp/mysql.sock";
const char* socket_path = "/var/run/mysqld/mysqld.sock";
if (argc == 4)
{
socket_path = argv[3];