Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database connection problem
09-11-2020, 01:46 AM,
Database connection problem
Hello, having installed webERP, I was unable to log in - the result was always a message

"Connect failed: No such file or directory"

Eventually traced this to the initial mysqli_connect() call, where I put in some debugs to verify that this function was being passed the expected arguments, then suddenly remembered a previous problem I had with mysqli - the solution was to change config.php so that the host is specified not as 'localhost', but as ''. I think this is something to do with the fact that I am using a non-standard port for the mySQL server; as a consequence, by specifying '' it forces the function to actually use the port argument: otherwise it merrily ignores it and uses the socket instead.

There are probably other ways to solve the problem! Thought it was worth raising the matter in case anyone else encounters the isssue, or has a better way of resolving it.

Messages In This Thread
Database connection problem - by tomglare - 09-11-2020, 01:46 AM
RE: Database connection problem - by TurboPT - 09-13-2020, 06:51 AM
RE: Database connection problem - by TimSchofield - 09-13-2020, 07:16 AM
RE: Database connection problem - by TurboPT - 09-13-2020, 09:26 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)