Results 1 to 7 of 7

Thread: MySQL, Database server hostname...

  1. #1
    hatchetdown's Avatar
    hatchetdown is offline x10Hosting Member
    Join Date
    Mar 2010
    Posts
    9

    MySQL, Database server hostname...

    I'm trying to install phpBB3 (the latest stable release) and it's all going sweet until the install page asks for the database settings.

    What it asks for: (my responses in blue)
    Database type: "MySQL"

    Database server hostname or DSN: I tried both leaving blank and setting to "localhost"
    DSN stands for Data Source Name and is relevant only for ODBC installs.

    Database server port: I left blank
    Leave this blank unless you know the server operates on a non-standard port.

    Database name: the database name, as it shows in cPanel

    Database username: the database username, as it shows in cPanel

    Database password: the password for that database username, as I entered in cPanel

    Prefix for tables in database: the same as the prefix that's forced on the database name in cPanel

    It just hits me with this error:
    Could not connect to the database, see error message below.
    Access denied for user 'the_username'@'stoli.x10hosting.com' (using password: YES)


    I have made a MySQL Database in cPanel and added a new user to the database, giving it permissions for all database functions. I'm copying the database name and database username directly from the "MySQL Databases" section in cPanel. I'm not getting the password wrong.

    Other people have asked this but they all seem to get the same answer of
    "I haven't tried it, but just put 'localhost' as the DSN and it should work", which doesn't fix it for me.

    Any help would be appreciated...
    Last edited by hatchetdown; 03-13-2010 at 08:14 AM.

  2. #2
    carl6969's Avatar
    carl6969 is offline Community Support Team
    Join Date
    May 2009
    Location
    Calf Creek TX
    Posts
    6,862

    Re: MySQL, Database server hostname...

    Database host name is "localhost" (without the quotes) on X10.
    The error you are receiving suggests you may be using an incorrect user name or password.
    I suggest you double check and make sure you have that information correct.


  3. #3
    Zubair's Avatar
    Zubair is offline x10 Super Spammer
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,750

    Re: MySQL, Database server hostname...

    make sure you added user to database with all privileges in cpanel
    Last edited by Zubair; 03-13-2010 at 08:21 AM.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  4. #4
    hatchetdown's Avatar
    hatchetdown is offline x10Hosting Member
    Join Date
    Mar 2010
    Posts
    9

    Re: MySQL, Database server hostname...

    Quote Originally Posted by Zubair View Post
    make sure you added user to database with all privileges in cpanel
    Yeah, I set that the first time around:
    Quote Originally Posted by hatchetdown View Post
    I have made a MySQL Database in cPanel and added a new user to the database, giving it permissions for all database functions.
    At this point, I've tried making new databases, adding new users, linking the users to the database with all the permissions, all in "cPanel>MySQL Databases" but still get the same error in the phpBB installer...

    Does anyone know why there's a prefix pre-pended to the front of the database names?
    Like when I make a database, it automatically shows "myaccountname_" before I enter a name for it.
    Same when I make users for the database, the username shows as "myaccountname_nameientered".
    Does this happen with everyone else, would someone on stoli mind testing this?
    Last edited by hatchetdown; 03-13-2010 at 08:51 AM.

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    8,279

    Re: MySQL, Database server hostname...

    Quote Originally Posted by hatchetdown View Post


    Does anyone know why there's a prefix pre-pended to the front of the database names?
    Like when I make a database, it automatically shows "myaccountname_" before I enter a name for it.
    Same when I make users for the database, the username shows as "myaccountname_nameientered".
    Does this happen with everyone else, would someone on stoli mind testing this?
    Because there are 1000's of users on the servers.
    The way to make sure there are no name clashes is to prefix the database/user names with your unique cPanel username.
    It happens to everybody.
    Nothing is always absolutely so.

  6. #6
    hatchetdown's Avatar
    hatchetdown is offline x10Hosting Member
    Join Date
    Mar 2010
    Posts
    9

    Re: MySQL, Database server hostname...

    Right, thanks for the insight on the naming convention.
    So is this naming system even compatible with phpBB3's installer?
    Should I even be pre-pending that prefix to the database name and usernames in phpBB at all?

    I've been on this all day, must be getting close to brute-forcing the correct settings at this stage!
    From what I can tell, I've set it up flawlessly but it just denies access apparently for no reason, I've Googled the sh*t out of it and can't find anything that directly addresses the issue anywhere!

    Could it be a restricted PHP function on new accounts?
    Could someone post a shortlist of reasons why x10's MySQL servers might deny access?
    Again, I'd highly appreciate if someone could just setup phpBB3 on a free-account, have it work, then show me what a jackass I'm being...


    RESOLVED!
    It connected when I changed the "database type" from MySQL to SQLite.
    Last edited by hatchetdown; 03-13-2010 at 02:19 PM.

  7. #7
    Zubair's Avatar
    Zubair is offline x10 Super Spammer
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,750

    Re: MySQL, Database server hostname...

    Problem solved

    ***Thread Closed***
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

Similar Threads

  1. Database Server Hostname or DSN
    By Tourniqu3t in forum Free Hosting
    Replies: 5
    Last Post: 08-23-2008, 11:02 PM
  2. Hostname for Joomla Database MySQL
    By RedOrb in forum Free Hosting
    Replies: 3
    Last Post: 03-16-2008, 07:29 AM
  3. Database server hostname or DSN?
    By no1uknow in forum Free Hosting
    Replies: 0
    Last Post: 10-24-2007, 07:40 AM
  4. MySQL Database hostname
    By Relemar in forum Free Hosting
    Replies: 4
    Last Post: 09-09-2007, 08:22 PM
  5. Database Server Hostname
    By Delpee in forum Free Hosting
    Replies: 0
    Last Post: 09-01-2007, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers