Ron Wolpa Posted September 10, 2013 Share Posted September 10, 2013 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 More sharing options...
justsomeguy Posted September 10, 2013 Share Posted September 10, 2013 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. 1 Link to comment Share on other sites More sharing options...
Ron Wolpa Posted September 11, 2013 Author Share Posted September 11, 2013 (edited) very elucidative... database is a server as well ! thanks Edited September 11, 2013 by Ron Wolpa Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now