php cannot connect to mysql
I just installed Ubuntu 10.10 LTS. I installed the LAMP package. For some reason php cannot connect to mysql. I have written a very simple php program to isolate the problem. My php program fails when I execute the ADONewConnectio
$host = 'localhost';
$user = 'smansfie';
$passwd = 'xxxxx_xxxx';
$database = 'acregistration';
$DB = ADONewConnectio
I did a 'ps aux | grep mysql' and got,
mysql 727 1.0 2.3 188180 24000? Ssl 10:50 0:00 /usr/sbin/mysqld
Plus I can log into mysql with no problems so I am pretty sure mysql is at least running. I did see an earlier posting with the same probelm. The fix was to include a statement in the file /etc/mysql/my.cnf 'skip-grant-
ii libapache2-mod-php5
ii php5-adodb
ii php5-cli
ii php5-common
ii php5-mysql
Anyone seen this problem?. Any ideas or suggestions? Debug strategies welcome.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu php5 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Hilario J. Montoliu (hjmf)
- Solved:
- Last query:
- Last reply: