• Hi there.
    I am new to WordPress and I’m trying to install a blog for a friend of mine, but I’m having problems with the MySQL username & host.

    I am editing wp-config.php:
    define(‘DB_NAME’, ‘blss’);
    define(‘DB_USER’, ‘blss@mysql.name.bg’);
    define(‘DB_PASSWORD’, ‘****’);
    define(‘DB_HOST’, ‘mysql.name.bg’);

    The problem is with the username – I guess @ has to be separated somehow from ‘blss’ and ‘mysql.name.bg’, but apparently I don’t know how? Any suggestions?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Who is the host company?

    Typically, the user (DB_USER) is either assigned by the hosting company, or is the same as the hosting login, or is created/assigned by you.

    The DB_HOST is typically assigned by the hosting company so if you can’t find that info, ask your host.

    SUPERHOSTING.BG in Bulgaria…

    Some web hosting companies allow their clients to use special characters & Greek letters to make up usernames and passwords. Others don’t.

    Your database name and username may not be correct. They usually start with hosting account name followed by an underscore.

    And with a cPanel hosting arrangement, DB_HOST will be localhost.

    And as stated by macsoft3, the database name and user name will be your cPanel login + whatever extension you assign. So if your cPanel login is endori, and you provide ‘wordpress’ for the database name, then endori_wordpress will be the DB_NAME. Same theory for the database user.

    Thread Starter adanedhel

    (@adanedhel)

    Thank you, but the blog is for a friend of mine. All I got from his hosting company was a FTP account (working) and the info about the DB:

    DB name: blss
    username: blss@mysql.nbu.bg
    pass: ****
    host: mysql.nbu.bg

    His site is on a subdomain at nbu.bg. no CPanel unfortunately. The company is 100% positive that the username is blss@mysql.nbu.bg, but for some reason that doesn’t work. I know that MySQL prohibits the use of special characters (@ included), but I can’t figure out what to do.

    Thanks for any suggestions 🙂

    Then wouldn’t it be:

    define('DB_NAME', 'blss');
    define('DB_USER', 'blss@mysql.nbu.bg');
    define('DB_PASSWORD', '****');
    define('DB_HOST', 'mysql.nbu.bg');

    And of course, you are using the correct value for the password!!!!!

    If that fails, ask your friend to talk with the hosting company to confirm you are using the correct info.

    Thread Starter adanedhel

    (@adanedhel)

    Yes, one would thing so. Thank you all for your suggestions!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problems with username and host’ is closed to new replies.