Jump to content

db location on wamp : how connection will be established between db and the site files ?


Ron Wolpa

Recommended Posts

if the database files reside in the path I created by means PHPMYADMIN (C:wampbinmysqlmysql5.6.12dataaug102013) which is not the path of the site I am working on (C:wampwwwmysite) , how am I going to test it and to know it works ?

Let´s suppose the site folder is in C:wampwwwmysite and that I have the file index.php to establish connection with the database (….$db = mysql_connect("localhost", "root", ""); etc , etc) , if I type in the browser localhost:8080/mysite/ index.php , will there be local connection with my database ?

I am trying to determine how it works.thanks

 

 

Link to comment
Share on other sites

The database is a server also, it's a database server. The web server makes a connection to the database server, using something like sockets or a regular TCP/IP connection. It doesn't open the files or anything like that, it just makes a connection the same way it does with any other server.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...