Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Connecting to MySQL database
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd November 02:01
reachtechie
External User
 
Posts: 1
Default Connecting to MySQL database



Hi,

I have installed following things on windows machine.

1. Apache HTTP Server 2.2.4
2. PHP 5.2.3
3. MySQL 5.0.45

I am getting mysql_connect() not found.

I have downloaded libmysql.dll, php_mysql.dll & php_mysqli.dll and
copied to c:\php\ext.

I have uncommented these dll files in php.ini and still getting the same issue.

I am not able to see mysql table in phpinfo(), and seeing only mysqli.

Could anybody help me on this issue? Not able to resolve this from past 3 days.

Any help/suggestions appreciated.


Thanks
Balaji
  Reply With Quote


 


2 3rd November 02:01
agrobinet
External User
 
Posts: 1
Default Connecting to MySQL database



For a quick installation, try this
http://www.apachefriends.org/en/xampp.html (XAMPP for windows). You will
also have mercury mail and FileZilla FTP Server (watchout your firewall and
change the passwords... you're warned).

Your PHP.INI will be at <xamp-dir>/apache/php.ini, but for the most part,
you won't need to modify it.

Rob
  Reply With Quote
3 3rd November 02:01
External User
 
Posts: 1
Default Connecting to MySQL database


First I suggest you see if MySQL is even running.
Terminal Window type the following
service mysqld status

If it is running Great now you need to check your connection string for Errors.

**** Not running do this *****

Terminal Window
service mysqld start

If you have an error in the setup it will display it for future trouble shooting.
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666