database Connection

zfphone09a
edited November -1 in Support Forums

hi everyone, Im has uploaded web using codeigniter.
I have problem with connnecting database mysql.

Error like this:

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 346

Comments

  • zfphone09a
    edited November -1

    and my setting database is:

    $db['default']['hostname'] = 'sql204.unaux.com';
    $db['default']['username'] = 'unaux_aaaaaaaa';
    $db['default']['password'] = 'aaaaaaaa';
    $db['default']['database'] = 'unaux_aaaaaaaa_baidu';
    $db['default']['dbdriver'] = 'mysql';
    $db['default']['dbprefix'] = '';
    $db['default']['pconnect'] = TRUE;
    $db['default']['db_debug'] = TRUE;
    $db['default']['cache_on'] = FALSE;
    $db['default']['cachedir'] = '';
    $db['default']['char_set'] = 'utf8';
    $db['default']['dbcollat'] = 'utf8_general_ci';
    $db['default']['swap_pre'] = '';
    $db['default']['autoinit'] = TRU
    
  • Admin
    edited November -1

    I've never used codeigniter, but at the last line shouldn't it be "TRUE" instead of TRU?

    Furthermore, you can refer to Line 346 to find which setting is causing the issue. Double check your database and password.

  • SyedFaisal
    edited November -1

    My Database is not connecting please help, see picture https://ibb.co/kVCRRo

  • ChrisPAR
    edited November -1

    @SyedFaisal said:
    My Database is not connecting please help, see picture https://ibb.co/kVCRRo

    First of all you just shared your password online, which is very dangerous.
    And secondly, can you try removing the special characters?

  • SyedFaisal
    edited November -1

    thanks i was aware of that i was willing to change every bit of information there in picture, now its working, thanks Chris....

  • ChrisPAR
    edited November -1

    @SyedFaisal said:
    thanks i was aware of that i was willing to change every bit of information there in picture, now its working, thanks Chris....

    You are welcome.
    I am glad I was able to help!