This is a real RTFM, but here we go:

On Thu, Apr 12, 2001 at 04:03:20PM -0700, josh kneedler wrote:
> i'm trying to connect to mysql using php so that i can do web based 
> queries of my tables. i'm new at this so here are some questions:
> 1. is localhost just the ip of my server 

Yes. Or just the word 'localhost'. Or your full server name.

> 2. if root is the login name should it be my login or just stay as root?

The name of the account you want to use to connect to the database.

> 3. is mypasswd the same password i enter when i'm in the mysql 
> evironment in reference to (mysql -u root -p)?

Yes.

> once i can declare the dbcnx variable i'll be able to do queries with php.
> josh
> 
>   // Connect to the database server
>    $dbcnx = @mysql_connect("localhost",
>             "root", "mypasswd");
>    if (!$dbcnx) {
>      echo( "<P>Unable to connect to the " .
>            "database server at this time.</P>" );
>      exit();
>    }
> 
> -- 
> dreaming america : visual media studio
> 503.222.2242 : http://dreamingamerica.com
> ::::...:::. http://rangermag.com :....::...:::::::.....:.v.1.i.2...::::::
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to