On Wed, 26 Jan 2005 21:12:56 +0000, Peter Flynn <peter at silmaril.ie> wrote:
> On Wed, 2005-01-26 at 17:00, Michele Neylon :: Blacknight Solutions
> wrote:
> > Do you have mysql enabled in php?
>> Where do I do that?
have you installed the mysql module for php4?
apt-get php4-mysql
> > Can you make a simple connection to mysql via php or run something like
> > phpmyadmin ?
much simpler to just do a mysql_connect or die from a php script to
see if its working.
like this
test.php:
<?
mysql_pconnect("$host","$user","$password" ) or die (mysql_error() );
?>
where host,user,password are
host : where your mysql dbase is located (could be localhost )
user/password: your mysql username and password.
> I don't know what "make a simple connection to mysql via php" involves
> (bear in mind I've never had occasion to use either of them in anger :-)
> In all other systems I've installed, installing both of them just works
> as-is (presumably the RPM of one enabled the other and vice versa). I
> wasn't going to install phpmyadmin as this is the only app, but I'll
> give it a whirl.
>> Thanks for the suggestions.
>> ///Peter
>> _______________________________________________
> Cork mailing list
>Cork at linux.ie>http://www.linux.ie/mailman/listinfo/cork>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!