connecting to remote mysql server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

connecting to remote mysql server

Post by waskelton4 »

hey group...

a buddy of mine just migrated all of our web pages from the windows box that they were being hosted on to a linux machine.. clark connect i think is the name of the distro.. we are using php and mysql on the sites..

the windows box will continue to be used as the mysql server.. but we are letting the new linux box take care of webhosting with php...

i've changed the host address in one of my scripts to the mysql server ip and i've made sure that the mysql user can accept hosts of %.

i'm getting a fatal error:

Fatal error: Call to undefined function: mysql_connect() in

do i need to somehow point php to the mysql server by more than simply using the ip in the script?

any help is greatly appreciated..

Thanks
Will
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

Fatal error: Call to undefined function: mysql_connect()
i dont think that error has anything to do with not being able to connect, that looks like more of a php configuration error... are you sure the mysql module is loading?
Post Reply