i tried to run http://127.0.0.1:8000/ in my browser, but i get this error message "SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it" im using laravel 9.5.1 and php 8.0.3. And when i run phpMyAdmin i get an error message "mysqli::real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)"
i've tried to clear config and cache, edited file database.php, .env file and config.inc but it's still didn't work.
this is my database.php file
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '33060'),
'database' => env('DB_DATABASE', 'myDatabaseName'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', 'myPassword'),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
this is my .env file
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=33060
DB_DATABASE=myDatabaseName
DB_USERNAME='root'
DB_PASSWORD='myPassword'
and this is my config.inc file
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'myPassword';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
can someone please help me?, thank you