EDIT: there was a mistake in my code, all is well, and you can ignore this issue.
Hi,
I want my connection to bypass the local unix socket all the time, but when I use localhost it seems to not be taken into account. Here the code I use for testing. When using the "-l" options the connection doesn't work:
./test.rb -l
./test.rb:14:in `connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql::Error)
from ./test.rb:14:in `<main>'
given that my socket is in /run/mysql-default/mysqld.sock and that my default configuration file is /etc/mysql-default/my.cnf
My mysql.h on the platform (Ubuntu-Server 14.10) is
EDIT: there was a mistake in my code, all is well, and you can ignore this issue.
Hi,
I want my connection to bypass the local unix socket all the time, but when I use
localhost
it seems to not be taken into account. Here the code I use for testing. When using the "-l" options the connection doesn't work:given that my socket is in
/run/mysql-default/mysqld.sock
and that my default configuration file is/etc/mysql-default/my.cnf
My
mysql.h
on the platform (Ubuntu-Server 14.10) isI see that in your test that it's commented.
So is that option supported or working at all when using localhost ?
Environment:
Ruby:
Mysql:
Mysql library:
Mysql Ruby library:
on Ubuntu-Server 14.10.