Help - Search - Members - Calendar
Full Version: Problem In Connecting Database
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
naveedramzan
hi plz help me out ...

i have set :

User Name : kn-mobiles_naveed
Password :
Database : kn-mobiles_knmobiles

and my code in connection.php is :


define("DB_HOST", "localhost");
define("DB_USER", "kn-mobiles_naveed");
define("DB_PASS", "");
define("DB_NAME", "kn-mobiles_knmobiles");

$link = mysql_connect(DB_HOST, DB_USER, DB_PASS);

if (!$link) {
die('Could not connect: ' . mysql_error());
}

$db_selected = mysql_select_db(DB_NAME, $link);

if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}

and error is :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'kn-mobiles_navee'@'localhost' (using password: YES) in /www/uuuq.com/k/n/-/kn-mobiles/htdocs/connection.php on line 16
Could not connect: Access denied for user 'kn-mobiles_navee'@'localhost' (using password: YES)

i can understand that whts issue
swordz
Hi.

First, you have just posted enough information for me to log into your phpadmin. I have deleted your password for you, don't post it again.

Your problem is that your database name and user name are too long, they must be 16 characters or shorter.

swordz
naveedramzan
thx buddy ... now its working but i m facing 1 more problem ...


i have created 2 domains in my account. and now independtly login of each domain there mysql managemen tpanel shows separtly database but when i open phpmyadmin of 2nd domain then phpmyadmin shows first domain's phpmyadmin ... hows i get 2nd domain's phpmyadmin

for example:

domain1 >>> phpmyadmin
domain2 >>> phpmyadmin

when i want to open phpmyadmin of domain2, it shows phpmyadmin of domain1 ...

plz solve out my this issue ... thanks in advance
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.