mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'ip-10-0-118-207.ec2.internal' (using password: NO) code example
Example 1: mysqli::real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)
$cfg['Servers'][$i]['port'] = '3307';
Example 2: php catch mysqli_connect(): (HY000/1045): Access denied
$conn = mysqli_connect( '<server>', '<username>', '<password>', '<database-name>');
if (!$conn) {
echo mysqli_connect_errno() . ":" . mysqli_connect_error();
exit;
}