ultraimports

Topic: Line 20 error after install

Driving me crazy, prob something simple. DB info imported, config.php looks like this:

define('JOBBERBASE_VERSION', '1.8');

    // MySQL + misc settings for local environment
    if ($_SERVER['SERVER_NAME'] == 'localhost')
    {
        define('DB_HOST', 'localhost');
        define('DB_PORT', 3306);
        define('DB_USER', 'root');
        define('DB_PASS', '');
        define('DB_NAME', 'jobberbase');
        define('DB_PREFIX', '');
        define('LOCATION', 'local');
        define('ENVIRONMENT', 'dev');
    }
    // MySQL + misc settings for production environment
    else
    {
        define('DB_HOST', 'mysql9.000webhost.com');
        define('DB_PORT', 3306);
        define('DB_USER', 'jobber');
        define('DB_PASS', 'jobber1');
        define('DB_NAME', 'jobber');
        define('LOCATION', 'online');
        define('DB_PREFIX', '');
        define('ENVIRONMENT', 'prod');
    }

    define('APP_PATH',dirname(__FILE__).DIRECTORY_SEPARATOR);

I looked at others, just doesn't click w/ me. Any help/assistance would be apprecated. Error I get is here:

Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'jobber'@'10.0.0.25' (using password: YES) in /home/a4696660/public_html/_includes/class.Db.php  on line 20

That's the first line.

ultraimports

Re: Line 20 error after install

Nobody can find if i'm just doing something dumb? My PW is right....but I just think that I'm missing a certain combo in the info :\

putypuruty

Re: Line 20 error after install

Hi!

It's saying Access denied for user 'jobber'@'10.0.0.25' - so either your host is not the correct one or your username/password combination is wrong. Have a look here http://www.000webhost.com/faq.php?ID=25 to see how you can find out your host.

Also, there are hostings where after creating a new database user, you have to explicitly grant him rights to each database that he should be allowed to access. I recommend that you check the Mysql section of your hosting's control panel.

I hope this helps.