MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to fix an error of PhpMyAdmin access denied in xamp mySql.

Error resolving of PhpMyAdmin access denied.

PhpMyAdmin error page showing mysqli_real_connect getaddrinfo failed: No such host is known

For most first time install, accessing http://localhost/PhpMyAdmin will directly take us to the PhpMyAdmin web interface without asking for password or anything because by default there is no password set. But when you install it second time you can face an error like this while accessing PhpMyAdmin.Due to that previous default loaclhost port number is not valid now.

What should be done! Let’s see in below with some easy steps.

1. So , you have to open XAMPP Control Panel ->Click MySql Config->Click my.ini

XAMPP Control Panel with MySQL Config menu open and my.ini option highlighted
XAMPP control panal fig. 1

It will open in notepad as shown in figure.

My.ini open in Notepad with skip-grant-tables added under [mysqld] and port 3307
my.ini fig.2

2. You have to write this line skip-grant-tables after [mysqld].

3.Open xamp folder ->PhpMyAdmin .You will see config.inc.php file in phpMyAdmin folder, just open it with notepad++

File Explorer showing config.inc.php selected in the C:\xampp\xampp\phpMyAdmin folder
MyPhpAdmin folder fig.3

$cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’; This is default port number.

Config.inc.php in Notepad++ with the host set to the default 127.0.0.1 on line 27
config.inc.php fig.4

4. Resolve this issue by manually editing in the file “config.inc.php” located at “C:\xampp\phpMyAdmin”. Write “localhost:3307” within $cfg[‘Servers’][$i][‘host’] = ‘localhost:3307′; as shown given picture.

Config.inc.php in Notepad++ with the host changed to localhost:3307 on line 27
config.inc.php fig.5

5. Save this changes. You can find port number as follows: Open XAMP->config->service port setting->mySql.

XAMPP Service Settings dialog with the MySQL tab showing main port 3307
ServerSettings fig.6

Now , you can access MyPhpAdmin.

PhpMyAdmin home page loading on localhost:3307 with MariaDB server details after the port fix

Thanks.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

Xampp Troubleshooting Guide

Log Levels of Apache, MySql, PHPMyAdmin, PHP, Composer Apache MySQL PHPMyAdmin PHPMyAdmin’s log level is primarily controlled by the PHP configuration, as it’s a PHP application. PHP…

Read More

How to install WordPress on Windows using XAMPP? Part-1

How to install WordPress on localhost XAMPP? What is the WordPress? WordPress is a free and open-source (Content Management System) which is based on PHP and MySql….

Read More

How to Move a Live WordPress Site to Local Server

Why we are discussing on this topic because we are here to tell you when any developer of WordPress wants to test new themes, plugins, or another…

Read More

Error – phpmyadmin not accessible on network using ip address but localhost in ubuntu

Error Access forbidden! New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file…

Read More

Datadog Tutorials: How to Monitor Apache using Datadog in Windows

To monitor Apache on Windows with Datadog, you expose Apache's mod_status page on localhost, then point the Datadog Agent's built-in Apache check at http://localhost/server-status?auto. The steps above…

Read More

Icinga Install and Configuration

This guide shows how to set up Icinga 2 with a MariaDB backend on Ubuntu. It covers preparing MariaDB, resetting a lost root password on a system…

Read More