| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		jonleow -
 
  Joined: 29 Apr 2004 Posts: 48
 
  | 
		
			
				 Posted: Thu May 27, 2004 2:32 pm    Post subject: mysql question... | 
				      | 
			 
			
				
  | 
			 
			
				what's the server name i should  use if i want to connect my abyss web server to mysql? i have tried using this command in command pront: 
 
 
C:\Program Files\Abyss Web Server\database\mysql\bin>$connection = mysql_connect
 
("localhost", "username", "password") or die ("Cant connect to the server.");
 
 
and i got this error :
 
 
'$connection' is not recognized as an internal or external command,
 
operable program or batch file.
 
 
For my case, should i put 'localhost' as my server name?
 
and from which directory in command promt should i insert the above string connection? | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		Anonymoose -
 
  Joined: 09 Sep 2003 Posts: 2192
 
  | 
		
			
				 Posted: Thu May 27, 2004 4:51 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| $connection isn't something you can enter on the normal Windows command line...  You need to be using that in a PHP page. | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		iNaNimAtE -
 
  Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
  | 
		
			
				 Posted: Thu May 27, 2004 11:36 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				If you would like to make a PHP page access a MySQL database, and if MySQL is running on the same computer as Abyss, then use "localhost" as the server name. _________________ Bienvenidos! | 
			 
		  | 
	
	
		| Back to top | 
		
			                | 
		
	
	
		  | 
	
	
		jonleow -
 
  Joined: 29 Apr 2004 Posts: 48
 
  | 
		
			
				 Posted: Fri May 28, 2004 7:28 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| ok thanks for the replies.. | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		 |