Help - Search - Members - Calendar
Full Version: Warning: Mysql_connect
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
Meli
Hi

After my index.html page is loaded and the site calls for the database, I get this message:


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'deb3llad'@'localhost' (using password: YES) in /www/vndv.com/d/e/b/deb3lladesign/htdocs/includes/functions/database.php on line 19
Unable to connect to database server!

I am very frustrated. Can anyone tell me how to fix this problem please?

Meli hunter.gif
Andrew
your using the wrong username.

Also to get any help you need to follow the rules and post your site domain and the MySQL username and database name.

gino
ola meli,

Can u try this code for connecting with MySql and make sure you are properly configured username and password

For Opening a connection to MySQL database from PHP is easy. Just use the mysql_connect() function like this
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');

$dbname = 'petstore';
mysql_select_db($dbname);
?>
$dbhost is the name of MySQL server. When your webserver is on the same machine with the MySQL server you can use localhost as the value of $dbhost. The $dbuser and $dbpass are valid MySQL user name and password.
thanks,
Gino www.endha.com
kcc
I had the same problem. The stupid thing about it was, that in the end, I learned that zymic allows characters only 15. So, you got to have only 15 characters.
Andrew
It's 16 characters.
kcc
No, I checked it reads as 15 characters as if your database name is like >> 12345678910123_4 <<

Then there is underscore that has to be counted or not, is upto you.
Sugarblossoms
underscore is still a character, so it is still included. So all in all, it is 16.
kcc
Suits yourself, I don't consider it, so 15 alphabets for me. sleep.gif
Jacob
QUOTE(kcc @ Oct 1 2008, 03:36 PM) *
Suits yourself, I don't consider it, so 15 alphabets for me. sleep.gif

Fortunately, the PHP community don't care.
Definition of character : "An atom of information, for example a letter, symbol or a digit. Graphic characters have associated glyphs, whereas control characters have associated processing semantics."
Shit aye, n00bs are wrong again.

Jacob.
kcc
QUOTE(NaRzY @ Oct 1 2008, 09:47 AM) *
Fortunately, the PHP community don't care.
Definition of character : "An atom of information, for example a letter, symbol or a digit. Graphic characters have associated glyphs, whereas control characters have associated processing semantics."
Shit aye, n00bs are wrong again.

Jacob.


Like I said, I don't care much. Well, if you follow the dictionary that much, start implementing each and everything in your life the way it says. *Ignore*

Is it a point to make me get a feeling of being cornered. I have my view, I don't like classifying it as a char in my database, so what, big deal.
Andrew
It's a big deal when you star lying to the community. You have your opinion, but when it's not fact then it can cause others to have problems. What if someone has a 14 character username, and you tell them the limit is 15 characters, well now they are going to feel shit out of luck, when in reality they could just make a one character database and username and be fine.
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.