note 101303 added to function.mysql-connect
| From: | pascal at gmail dot com | Date: | Thu, 09 Dec 2010 04:08:55 +0000 |
| Subject: | note 101303 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174725@lists.php.net to get a copy of this message | ||
hi every one!
my website is hosted on bluhost, and when i click login or register it gives me this:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user
'user_name'@'localhost' (using password: YES) in
/home2/paskl/public_html/conn.inc.php on line 2
Access denied for user 'myusername'@'localhost' (using password: YES)
any help?
here is how the connect scripts:
<?php
$conn=mysql_connect("localhost", "myusername", "mypassword")
or die(mysql_error());
$db = mysql_select_db("db_name")
or die(mysql_error());
?>
----
Server IP: 69.147.83.197
Probable Submitter: 114.241.194.94
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/101303
Del: integrated -- https://master.php.net/note/delete/101303/integrated
Del: useless -- https://master.php.net/note/delete/101303/useless
Del: bad code -- https://master.php.net/note/delete/101303/bad+code
Del: spam -- https://master.php.net/note/delete/101303/spam
Del: non-english -- https://master.php.net/note/delete/101303/non-english
Del: in docs -- https://master.php.net/note/delete/101303/in+docs
Del: other reasons-- https://master.php.net/note/delete/101303
Reject -- https://master.php.net/note/reject/101303
Search -- https://master.php.net/manage/user-notes.php