+ Reply to Thread
Results 1 to 3 of 3

Thread: Database server config

  1. #1
    marshmallow1304 is offline x10Hosting Member marshmallow1304 is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    5

    Database server config

    I'm using an application (Statfink 2.1.0) that needs a mySQL database. I've already created the database and a user. According to cPanel, the database name is "marsh_Statfink" and the username is "marsh_stats". In Statfink config, I must enter "Database Host", "Database Name", "Database Username", and "Database Password". Password is the only one I know for sure. I think host should be 'localhost'. Should the db Name and db Username include the 'marsh_' prefix? I've tried several combinations, but I keep getting

    "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'stats'@'localhost' (using password: YES) in /home/marsh/public_html/statfink/helm/config/index.php on line 146"


    Also, I'm getting a lot of loading errors when trying to access any part of my site.
    Edit:
    I got it to work. I don't know what I did wrong, but I fixed it.
    Last edited by marshmallow1304; 10-13-2008 at 07:18 PM. Reason: Automerged Doublepost

  2. #2
    Fearghal's Avatar
    Fearghal is offline x10 Lieutenant Fearghal is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    286

    Re: Database server config

    You have used an incorrect username or password.

    The common mistake is the username for mysql has your cPanel username in it too.

    cPanel username:me
    MySql username: hello

    Mysql username to input to connect me_hello.

    Good Luck
    If I helped you, please rep me!
    -Fearghal

  3. #3
    Nathan H is offline x10 Elder Nathan H is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    562

    Re: Database server config

    Posting your mysql connect statement (password removed obviously) would help in checking, but it seems like you are using an incorrect login username for the database you are trying to access. remember the username and database name are normally the same and they are in the format [cpanel name]_[database name]
    Nathan H Formerly UnFoundBug



    http://www.theadmin.co.uk - Yes i know the colours don't go, I'm working on it.

    VPS Admin | x10-commandments

    So thats where it went! I thought i was losing my mind.

+ Reply to Thread

Similar Threads

  1. Mail server database structure...
    By anuj_web in forum Programming Help
    Replies: 8
    Last Post: 03-20-2009, 09:12 AM
  2. Cannot connect to database
    By ConnorMcLeod in forum Programming Help
    Replies: 4
    Last Post: 08-30-2008, 12:56 PM
  3. PHPBB3 Install (Database Issue)
    By bbtuna in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 08-12-2008, 11:27 AM
  4. Vbulletin help
    By Pills1221 in forum Scripts & 3rd Party Apps
    Replies: 12
    Last Post: 06-02-2008, 02:31 PM
  5. Could not connect to the database server
    By sivaji in forum Graphics & Webdesign
    Replies: 2
    Last Post: 01-15-2008, 07:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers