Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Can't Connect Php To Mysql


  • Please log in to reply
2 replies to this topic

#1 sizzla

sizzla

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Local time:04:31 AM

Posted 30 March 2007 - 05:00 AM

I am a web developer by profession and i have a problem connecting php to mySQL on my PC. Both are the latest versions (version 5). I normally use a webserver to test scripts in a live environment, but when it comes to testing them locally on my machine i cannot seem to connect the application with the database.

Is there a certain port that needs to be opened or am i missing s'thing coz am completely stumped. I have set my network settings to the IP address 127.0.0.1 and i cannot think of anything else that might be hindering the connection. Please help...thanx.

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:31 PM

Posted 31 March 2007 - 06:57 PM

Is this on a Windows system? Can we maybe see what you have set up in your configuration files?

#3 Nikas

Nikas

  • Members
  • 650 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Singapore
  • Local time:09:31 AM

Posted 24 April 2007 - 11:23 AM

It should be the way you connect to the database. As in, your username, password etc in your connecting to database php script.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users