redarrow Posted October 13, 2007 Share Posted October 13, 2007 advance thank you. I have installed apache new version and php new version on a new server........ i have also inplemented the .dll for mysql server so the phpinfo look's all correct...... now the problam is i have setup mysql on another new server all the server are on the correct network...... What i can not figure out is how to configure apache or php to talk to the database server ..... current setup... router.... websever set to port 80,triger foward to ip 192.168.0.2 mysql server port is 3306 defualt pointing to 192.168.0.3 webserver nic card is set to auto as apache is set to port 80 mysql server nic card set to 192.168.0.3 now i need to no how to get the webserver to speek to the mysql server....... what do i do if i write a php script to point to the mysql server ip how will apache or php no where to send the database information..... what do i do to set this up please cheers....... side note i thort dont no but maybe i got to use mod proxy to foward the info dont no need grate help..... please exsplain in grate deatail as you was talking to a baby that what i am a baby.... if you no any websites that provides tutoral of a setup like mine please post them Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 13, 2007 Share Posted October 13, 2007 If your MYSQL server is located on 192.168.0.3 then you specify that ip in mysql_connect rather than localhost. Apaches doesn't need to know where MySQL is. Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 13, 2007 Author Share Posted October 13, 2007 but wildteen is it true i got to bind the nic card ip to my.ini... mysql config.... cheers.... Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 14, 2007 Share Posted October 14, 2007 No only the port number. Which is port 3306. You'll need to add 192.168.0.3 to mysql's user privileges though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.