[Wylug-help] RedHat - MySQL - PHP

Emma Hoddinott emma at grgprint.com
Fri Jul 18 15:05:44 BST 2003


I don't want everyone to know my password.

It appears Apache is segmentation faulting every time I run the page,
that's why its coming back with nothing.

Emma

-----Original Message-----
From: Mike [mailto:mike at lubs.leeds.ac.uk]
Sent: 18 July 2003 14:54
To: emma at grgprint.com
Cc: wylug-help at wylug.org.uk
Subject: RE: [Wylug-help] RedHat - MySQL - PHP

you are connecting as root who doesn't need a password?

If you created a password for the mysql user root - then that needs
to be the third argument to mysql_connect

Mike

> > > echo "hello";
> > > if (!($database = mysql_connect("localhost", "root")))
> > > {
> > > echo "Could not connect to database";
> > > }
> > > else
> > > {
> > > echo "could";
> > > }
> > >






More information about the Wylug-help mailing list