Help - Search - Members - Calendar
Full Version: Login Problem For Script
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
Zizzi0n
Hi guys i just installed a script onto my space and although i am sure all the details are correct it doesn't want to connect to my db :/ Below are the errors i get on my site

CODE
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mgcontracts_admi'@'localhost' (using password: YES) in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/vndv.com/m/g/c/mgcontracts/htdocs/dbcon.php on line 3


This is what i have got in dbcon.php

CODE
<?
$conn = mysql_connect("localhost","mgcontracts_admin","My password");
$db = mysql_select_db("mgcontracts_site");
?>


I have edited my file so its my details, originally it was like this:

CODE
<?
$conn = mysql_connect("localhost","YOUR_USERNAME","YOUR_PASSWORD");
$db = mysql_select_db("YOUR_DB");
?>


Help would be appreciated smile.gif
swordz
The maximum length is 16 characters - mgcontracts_admin is 17. Try mgcontracts_ad.

swordz
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-2009 Invision Power Services, Inc.