2

i am uploading website on live server. In my database.php i set hostname as localhost but i give this error.

Message: mysqli::real_connect(): (HY000/1130): Host 'webhost.daily.co.uk' is not allowed to connect to this MySQL server

thanks in advance

2
  • user name and password is wrong. Show code as well Commented Dec 30, 2015 at 14:23
  • They probably gave you the database information so you can set it up; Commented Dec 30, 2015 at 14:24

1 Answer 1

2

Configure like this

$db['default'] = array(
        'dsn'   => '',
        'hostname' => 'localhost', // make sure hostname
        'username' => '', // username you created when created DB
        'password' => '', // password you created when created DB
        'database' => '', // DB name as well

Codeigniter DB Settings

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.