mysql question...

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jonleow
-


Joined: 29 Apr 2004
Posts: 48

PostPosted: Thu May 27, 2004 2:32 pm    Post subject: mysql question... Reply with quote

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 View user's profile Send private message MSN Messenger
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu May 27, 2004 4:51 pm    Post subject: Reply with quote

$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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Thu May 27, 2004 11:36 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jonleow
-


Joined: 29 Apr 2004
Posts: 48

PostPosted: Fri May 28, 2004 7:28 am    Post subject: Reply with quote

ok thanks for the replies..
Back to top View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group