You are here: mysql_connect problem ... « PHP Programming Language « IT news, forums, messages
mysql_connect problem ...

Posted by dude on 06/18/06 06:11

this is the code:

$user = "user";
$pass = "";
$connect = mysql_connect('localhost',$user,$pass);
or die('could not connect: '. mysql_error());

mysql_close($connect);

i'm a beginer, and i just want to see if i could connect to server.
on pypmyadmin i set the following for the user@localhost:

password: No
global privileges: all privileges
grant: yes ...

and ofcourse i get the warning: mysql_connect()function.mysql-connect]:
Access denied for user 'user'@'localhost' error on the connect string line.

it has everything, and why doesnt connect string he let me in.
please help ...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация