Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
Sometimes you need to connect to mysql server with a UNIX socket, rather than a Port. Generally this is when running multiple versions, on a box when you do not want to or cannot connect to multiple ports.
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
If you want to connect to the mysql server from the command line, you can use -S. Or within Perl - append mysql_socket to the dsn
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
mysql -uUSER -pPASSWORD -S /tmp/mysql.sock dbi:mysql:database=database_name;mysql_socket=/tmp/mysql.sock Where your socket is /tmp/mysql.sock
|
Leave a Reply