Hi, It's good form to connect with the public IP if you are connecting remotly to a mysql server. If this is on a network you have configured and the web server is on the same lan as the db server - use the private ip as this will be faster and run over your lan. If you are trying to connect to a database server on a hosting package check the documentation for your hosting package. Several things can effect connectivity. 1. Hostname of choice, private ip connection may not be allowed you might have to connect to mysqlserver203.myhostingcompany.com 2. Connection may be limited to servers on the hosting package, so if you are trying to connect from a WAMP of LAMP setup locally this may not work as the user connection is address restricted. 3. Check the users permissions you are trying to connect with are they 100% correct. Try using a mysql_error() to also see what error mysql is returning, you will be able to understand alot more from reading these. Also bare in mind if you are getting mysql_connect not found this actually means the mysql module has not been compiled with php and you will need to re-build the source using the option in configure. Check ./configure --help for the mysql option Tom Priyantha Gunawardena wrote: > > Its not something new u can connect the same way u connect to ur localhost > instead you have to use the correct server name user ps and db name these > will be provided by ur server admin. > > regards > Priyantha > > On Fri, Aug 29, 2008 at 2:06 PM, abidshahzad4u > <abidshahzad4u@xxxxxxxxx <mailto:abidshahzad4u%40yahoo.com>>wrote: > > > Is there some class to connect mysql remotely? > > I am stuck while connecting to remote server. > > > > > > > > -- > Priyantha Gunawardena > ______________________________________ > {Web Designer / Developer} > Tel: +94 038-228-4323 > Mobi: +94 077-393-8516 > Blog: http://www.pgdesigning.com <http://www.pgdesigning.com> > IM : pgdesigning > > [Non-text portions of this message have been removed] > >