Jump to content
Froxlor Forum
  • 0

using mysql socket rather than tcp in userdata.inc.php


roothahn

Question

Hi Guys,

 

I just can't figure out how to use unix socket with froxlor.

 

I had to bind mysqld on another private IP, so it is not listening on 127.0.0.1 anymore.

Therefore I want froxlor to connect via socket (since it's faster anyway), but how do I set this up in my userdata.inc.php file like this (tried that, doesn't work):

 

$sql['host']='unix:/var/run/mysqld/mysqld.sock';

 

Thanks-a-lot :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Theoretically, using mysql_connect in the database-class, it should be possible to use a socket path as host parameter (server: The MySQL server. It can also include a port number. e.g. "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for the localhost.)

 

If it does not work this way, maybe you want to hack into lib/classes/database/class.db.php and change all the mysql_connect() statements to suit your needs (as I think, this path won't change).

 

I can't tell if the host is used anywhere else...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...