Re: mysql_pconnect to remote system

From: Date: Tue, 23 Oct 2001 14:40:02 +0000
Subject: Re: mysql_pconnect to remote system
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71909@lists.php.net to get a copy of this message
The setting of the your user in Mysql is maybe to connecto only from localhost (their machine) if you want to connect from anywhere else you receive an error. Maybe this is your case. Decide : 1)post your error message here for better solution (use mysql_error) or 2)contact your ISP if your think that the written above is the problem. -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Tuesday 23 October 2001 03:29 am, you wrote: > Ok, after all the problems trying to get into the flat file and stuff, i > decided it will just be easier to use mysql... Only problem is the database > is on the machine that is going to host the site when it's done... (Redhat > Linux) and is being developed in my office on a windows box... > > So i need to connect to the database from my win box - and it's giving > connection failed messages. > > This is what i'm doing: > > <?php > $server = "IP of server:3306"; > $user = "username"; > $pass = "password"; > > if(!($myLink = mysql_pconnect($server,$user,$pass))) { > print("Unable to connect to database<br>\n"); > exit(); > } > > ?> > > and every time it gives me the error. - do i need to change the script? or > do i need to contact the ISP that's hosting the database? > > //Nick Richardson > //esoteric.web@gte.net

« previous php.general (#71909) next »