I've searched google and this forum and can't find an answer to this problem: My php script works fine using a browser, but I get Err# 2002 (can't connect to mysql) when using CLI.
I've checked php -m using the cli and mysql is loaded.
I've checked my working directory and it is correct.
I know my scripts are being loaded because I've inserted echo statements through-out.
The user, password and database are all coming from one of the included files that I've proven are being loaded...
...but yet it is dying.
Does anyone have an idea for what I'm doing wrong?