[Wylug-help] RedHat - MySQL - PHP

Mike mike at lubs.leeds.ac.uk
Fri Jul 18 14:53:31 BST 2003


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