For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > May 2005 > Re: [PHP-INSTALL] My SQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] My SQL
Michael W.

2005-05-05, 3:57 pm

The syntax of mysql_connect() is mysql_connect(host,username,password),
so the call would be mysql_connect("localhost", "root", "");

You may be able to find some information about editing php.ini to
include MySQL support at http://us4.php.net/mysql (look in the user
contributed notes).

What OS are you using, and how did you install PHP/MySQL (and if from
source, what was your configure command?)

Barca wrote:

>I just installed PHP and MySQL.
>I am able to use MySQLManager to connect, create tables, run reports, etc.
>But I am not able to mysql_connect("test", "root",""); from PHP. Someone
>said that I needed to included the path of MySql in the PHP.ini file. Does
>anybody of an example for that?
>
>
>.
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com