Page 1 of 1

How to connect to MySQL5 via PHP??

Posted: Mon Mar 31, 2008 2:29 pm
by sj1983msh
Hi everyone,

I have a problem with my new MySQL Version. I have installed MySQL 5 recently (I was working with MySQL 4....).
MySQL is working well and I can do anything via Commandprompt (windows platform) with it.
But I when I want to run a script that connects to the DataBase it gives me a fatalerror that says for example "mysql_connect() is not defined ....."

I also can't run MyPHPAdmin for MySQL5.

What should I do? Please help me through this.

ps. I use IIS, and PHP5.

Sincerely Yours
Saman J.

Re: How to connect to MySQL5 via PHP??

Posted: Tue Apr 01, 2008 2:47 am
by s.dot
PHP5 does not come with the mysql extension enabled "out of the box" like PHP4 did. You will need to enable the extension.