Help - Search - Members - Calendar
Full Version: Connecting To Mysql
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
mrjw_35
Hi if anyone can help. I have trouble connecting to the database to update it

mysql_connect (localhost , portuguesevillas_mark , password);
mysql_select_db (portuguesevillas_mydb);
Just wont connect

List of errors
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'portuguesevillas'@'localhost' (using password: YES) in /www/vndv.com/p/o/r/portuguesevillas/htdocs/test.php on line 4

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/p/o/r/portuguesevillas/htdocs/test.php on line 5

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /www/vndv.com/p/o/r/portuguesevillas/htdocs/test.php on line 5

Warning: mysql_query() [function.mysql-query]: Access denied for user 'vhostswww'@'localhost' (using password: NO) in /www/vndv.com/p/o/r/portuguesevillas/htdocs/test.php on line 8

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /www/vndv.com/p/o/r/portuguesevillas/htdocs/test.php on line 8



anyhelp would be appricated
Andrew
Your username is too long. On the VNDV server, there is a limit of 16 characters for the mysql. That includes your somain name the underscore ( _ ) and the name you chose for the database.

So your site name portuguesevillas is too long. You can make a new account with a shorter name and create the mysql database there, then use that information on your portuguesevillas site.
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-2012 Invision Power Services, Inc.