List:General Discussion« Previous MessageNext Message »
From:fbsd_user Date:March 9 2006 6:37pm
Subject:RE: php and mysql
View as plain text  
You need a login id and password unless this is test DB added under
ID "root"
You have to use the same login id as the one you created the
db/table with.

mysql_connect('localhost', 'Login id', 'pw') or die(mysql_error())

mysql_connect('localhost', 'root') or die(mysql_error())

-----Original Message-----
From: Mary Adel [mailto:mary.adel@stripped]
Sent: Thursday, March 09, 2006 3:06 PM
To: mysql@stripped
Subject: php and mysql

I have a severe problem that php5 cannot connect to mysql and i
know why
also i am using linux
here is my peice of code
print "hi";
mysql_connect('localhost', '', '') or die(mysql_error());
echo "Connected to MySQL<br />";
print "connected";
if their is any configuration please tell me


MySQL General Mailing List
For list archives:
To unsubscribe:

php and mysqlMary Adel9 Mar
  • RE: php and mysqlfbsd_user9 Mar
    • RE: php and mysqlMary Adel9 Mar
      • RE: php and mysqlJC9 Mar
  • Re: php and mysqlPeter Brawley9 Mar
RE: php and mysqlSST - Adelaide)9 Mar
  • RE: php and mysqlmysql9 Mar
  • RE: php and mysqlIng. Edwin Cruz9 Mar