Jump to content

PHP mysql_connect Access denied problems


Recommended Posts

hey,

 

i am trying to connect to my phpmyadmin database via PHP

 

here is my code:

 

<?php

// place your DB_host, UserName, Password, and DB_Name below where shown

mysql_connect("localhost","gypktube@localhost","myPassword") or die ("Could not connect.");

mysql_select_db("chatData") or die ("no database");

?>

 

and the warning i am getting is:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gypktube@localho'@'localhost' (using password: YES) in /home/gypktube/public_html/connect_to_mysql.php on line 3

Could not connect.

 

thanks:)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...