For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2006 > cannot connect to mysql on windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cannot connect to mysql on windows
raj

2006-02-25, 3:55 am

Hello,

I have apache 2 and mysql 4.1 and php5 and am unable to connect to mysql
database server, and keep getting the following error:

Fatal error: Call to undefined function mysql_connect() in
D:\backup\test.php on line 10

I have removed the semicolon before the line:

extension=php_mysql.dll

I do have the extension at C:/php/ext/
also, I even have the server running but no luck.

Please help.

Raj
El Bekko

2006-02-25, 6:56 pm

raj wrote:
> Hello,
>
> I have apache 2 and mysql 4.1 and php5 and am unable to connect to mysql
> database server, and keep getting the following error:
>
> Fatal error: Call to undefined function mysql_connect() in
> D:\backup\test.php on line 10
>
> I have removed the semicolon before the line:
>
> extension=php_mysql.dll
>
> I do have the extension at C:/php/ext/
> also, I even have the server running but no luck.
>
> Please help.
>
> Raj

Does it include MySQL information when phpinfo(); is called?
raj

2006-02-26, 9:56 pm

No, It doesn't show mysql when phpinfo is called. Also, the problem was
solved when I reconfiguerd PHP as a CGI and not as an apache module. But in
general interest if anyone can suggest a solution it would be appreciated.

Raj

"El Bekko" <elbekko@gmail.com> wrote in message
news:B3.3A.30574.36860044@pb1.pair.com...
> raj wrote:
> Does it include MySQL information when phpinfo(); is called?

raj

2006-02-26, 9:56 pm

No, It doesn't show mysql when phpinfo is called. Also, the problem was
solved when I reconfiguerd PHP as a CGI and not as an apache module. But in
general interest if anyone can suggest a solution it would be appreciated.

Raj

"El Bekko" <elbekko@gmail.com> wrote in message
news:B3.3A.30574.36860044@pb1.pair.com...
> raj wrote:
> Does it include MySQL information when phpinfo(); is called?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com