To access phpmyadmin in remote server, situations when you try to access phpmyadmin in your web server running lamp stack or Apache
Example : http://www.example.com/phpmyadmin
you will end-up with error message says “For Security reasons, this URL is only accessible using localhost (127.0.0.1) as the host-name“.

Reason for this phpmyadmin application deny access from outsiders for security. to solve this you should modify a configuration file.
If you are using Lamp stack go the directory
home/lampstack/apps/phpmyadmin/conf/
If you are using apache
/etc/phpmyadmin/conf/
Open the configuration file
phpmyadmin.conf
You have to change a value
Allow from 127.0.0.1

Change the value to all
Allow from
127.0.0.1to Allow from all
Save the file and restart the server.
Go to terminal and give the command if you are using lamp stack move to
cd Programs/lamstack/
./ctlscript.sh restart apache
Option you can restart using lamp stack manager-linux.run application
If you are using apache
/etc/init.d/apache2 restart

Open the phpmyadmin http://www.examples.com/phpmyadmin now
Done, Happy-Data.

