Jump to content

Warning: mysql_connect(): Access denied for user


Tuss

Recommended Posts

Hi, When im trying to get on my website this is the page i come up with.

 

Warning: mysql_connect(): Access denied for user 'User'@'My I.P' (using password: YES) in /home/www/Game name.org/includes/db_connect.php on line 6

Can't connect to the MySQL server. Please contact the webmaster.

 

Ive hidden some private info on their.

Heres the Coding of the db_connect.php page

 

<?php

 

session_start();

ob_start();

 

$connect = mysql_connect("fdb1.runhosting.com:****","user","TussR");

if($connect == TRUE) {

if(mysql_select_db("122716_trueg") != TRUE) {

  exit("<span style='color: red'>Can't connect to the MySQL database. Please contact the webmaster.</body></html>");

}

}else{

exit("<span style='color: red'>Can't connect to the MySQL server. Please contact the webmaster.</body></html>");

}

?>

 

Can anybody help?

Link to comment
Share on other sites

This simply meens you have entered an incorrect host/user/password combination. Try using 'localhost' as your host.

 

Warning: mysql_connect(): Unknown MySQL server host 'fdb1.localhost.com' (1) in /home/www/***.mygamesonline.org/includes/db_connect.php on line 6

Can't connect to the MySQL server. Please contact the webmaster

 

It comes up with that :S ^^

Link to comment
Share on other sites

Try localhost not fdb1.localhost.com.

 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/****.mygamesonline.org/includes/db_connect.php on line 6

Can't connect to the MySQL server. Please contact the webmaster.

 

Heres my code:

 

<?php

 

session_start();

ob_start();

 

$connect = mysql_connect("localhost:3306","****_*****","TussR");

if($connect == TRUE) {

if(mysql_select_db("122716_trueg") != TRUE) {

  exit("<span style='color: red'>Can't connect to the MySQL database. Please contact the webmaster.</body></html>");

}

}else{

exit("<span style='color: red'>Can't connect to the MySQL server. Please contact the webmaster.</body></html>");

}

?>

Link to comment
Share on other sites

1. have you made the database?

2. login should be localhost, username, password, databasename if i knew the game you were tying to install i maybe could help more

 

I dont know if ive made the database.

What should be on it if i have?

Link to comment
Share on other sites

In that case you've not made the database, the database goes into phpmyadmin this is where the users are stored and other important information like email addresses and unit types and strength if you tell me the game i can help more

Link to comment
Share on other sites

In that case you've not made the database, the database goes into phpmyadmin this is where the users are stored and other important information like email addresses and unit types and strength if you tell me the game i can help more

 

Ive made a database . Here are a list of all my pages.

 

  airport

Browse: (0 Rows)  attempts

Browse: (0 Rows)  auctions

Browse: (1 Rows)  ban

Browse: (0 Rows)  bank

Browse: (0 Rows)  bank2

Browse: (0 Rows)  bar

Browse: (0 Rows)  betlogs

Browse: (0 Rows)  bf

Browse: (0 Rows)  bidders

Browse: (0 Rows)  bj

Browse: (0 Rows)  blackjack

Browse: (0 Rows)  buisnesses

Browse: (0 Rows)  car_sell

Browse: (0 Rows)  casinos

Browse: (0 Rows)  chat

Browse: (0 Rows)  crews

Browse: (0 Rows)  dealership

Browse: (0 Rows)  donaters

Browse: (0 Rows)  enemies

Browse: (0 Rows)  friends

Browse: (0 Rows)  garage

Browse: (0 Rows)  get_away

Browse: (0 Rows)  hitlist

Browse: (23 Rows)  inbox

Browse: (0 Rows)  jail

Browse: (0 Rows)  kill_chart

Browse: (10 Rows)  log

Browse: (0 Rows)  lotto

Browse: (0 Rows)  lotto_info

Browse: (0 Rows)  married

Browse: (0 Rows)  matches

Browse: (0 Rows)  oc

Browse: (0 Rows)  ocinvites

Browse: (0 Rows)  paper

Browse: (0 Rows)  phpbb_auth_access

Browse: (0 Rows)  phpbb_banlist

Browse: (1 Rows)  phpbb_categories

Browse: (68 Rows)  phpbb_config

Browse: (0 Rows)  phpbb_confirm

Browse: (0 Rows)  phpbb_disallow

Browse: (0 Rows)  phpbb_forums

Browse: (0 Rows)  phpbb_forum_prune

Browse: (2 Rows)  phpbb_groups

Browse: (1 Rows)  phpbb_posts

Browse: (1 Rows)  phpbb_posts_text

Browse: (0 Rows)  phpbb_privmsgs

Browse: (0 Rows)  phpbb_privmsgs_text

Browse: (1 Rows)  phpbb_ranks

Browse: (0 Rows)  phpbb_search_results

Browse: (12 Rows)  phpbb_search_wordlist

Browse: (13 Rows)  phpbb_search_wordmatch

Browse: (1 Rows)  phpbb_sessions

Browse: (1 Rows)  phpbb_sessions_keys

Browse: (42 Rows)  phpbb_smilies

Browse: (1 Rows)  phpbb_themes

Browse: (1 Rows)  phpbb_themes_name

Browse: (1 Rows)  phpbb_topics

Browse: (0 Rows)  phpbb_topics_watch

Browse: (2 Rows)  phpbb_users

Browse: (2 Rows)  phpbb_user_group

Browse: (0 Rows)  phpbb_vote_desc

Browse: (0 Rows)  phpbb_vote_results

Browse: (0 Rows)  phpbb_vote_voters

Browse: (0 Rows)  phpbb_words

Browse: (0 Rows)  points

Browse: (0 Rows)  points2

Browse: (0 Rows)  pointstransfers

Browse: (0 Rows)  polls

Browse: (0 Rows)  pts

Browse: (0 Rows)  race

Browse: (0 Rows)  replys

Browse: (0 Rows)  rest

Browse: (0 Rows)  safe

Browse: (0 Rows)  search

Browse: (0 Rows)  shop

Browse: (0 Rows)  site_stats

Browse: (0 Rows)  street

Browse: (0 Rows)  swiss

Browse: (0 Rows)  ticket

Browse: (0 Rows)  ticket2

Browse: (0 Rows)  topics

Browse: (0 Rows)  to_do

Browse: (0 Rows)  transfers

Browse: (0 Rows)  turf

Browse: (0 Rows)  updates

Browse: (13 Rows)  user_info

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.