Failed to connect to the server: Access denied for user 'username'@'localhost' (using password: YES)
Ikuti langkah - langkah berikut:
- Rename file application/config/database.sample.php menjadi application/config/database.php
-
Atur koneksi database pada file application/config/database.php, isi bagian - bagian berikut :
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = ''; //username user mysql
$db['default']['password'] = ''; //password user mysql
$db['default']['database'] = ''; //nama database
$db['default']['dbprefix'] = 'el_'; //awalan nama tabel
-
Buka file application/config/config.php, atur base_url, encryption_key dan sess_cookie_name menjadi seperti berikut :
$config['base_url'] = 'https://elearning.smpitmadanitunjungmuli.sch.id/';
$config['encryption_key'] = 'bd856f046ecffb99c46a7b5c79d5790d';
$config['sess_cookie_name'] = 'ci_session_6759c2799f57d';