[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RaQ4] Just installed MySQL (pkg), doesnt work with PHP



"Frederic Trudeau" <ftrudeau@xxxxxxx> wrote:
> Subject is pretty much straight-forward, but I have a couple of questions
> related to MySQL on a RaQ4. When I create a 'index.php' file with a code
> line like this one, for instance ;
>
> <?
> $link = mysql_connect(localhost,user,passwd);
> ?>
>
> I get the following error message ... Fatal error: Call to undefined
> function: mysql_connect() in /home/sites/site2/web/mysql.php on line 2
> Just as if PHP has not been configured --with-mysql, but it has ;
>
> http://ftrudeau.cam.org/
>
> Did I miss something here ?

I think you can load MySQL in PHP by enabling it in php.ini.  Look through
that file for a line about mysql - might just need to uncomment it and
restart Apache.  It was covered on-list recently so you may find the
solution by searching the archives if php.ini doesn't tell you what you
need.

> Also, why cant I enable/disable MySQL access to a given user on the
> machine ? I cant even connect to mysql using a random user already set for
> Telnet or SSH access ...

MySQL uses an authentication system totally independent of the operating
system's user access system.  See "privileges" in the mysql manual at
www.mysql.com.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/