PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 20, 2022

[FIXED] PhpMyAdmin remote access denied but command cli granted

 January 20, 2022     mysql, phpmyadmin, remote-access     No comments   

Issue

I have 2 mariadb servers :

  • server1 is public (with apache, php, etc... and a public ip)
  • server2 is private (only with mariadb, and only a private ip)

server2 is accessible by ssh only via server1

i installed phpmyadmin on server1, and i want to manage dbs on server2 with it

i already followed this : remote phpmyadmin

i granted all privileges on server2 to server1's mariadb root user

i can access it with mysql cli from server1 to server2 ('mysql --host=server2ip -u root -p'), but i get 'access denied' when using phpmyadmin... any idea ?

even if i used 'config' auth_type in config.inc.php, i still have the login form on phpmyadmin when i switch to remote host, is it normal ? (i have to give username, password and to select the host : localhost or remote host)


Solution

Solved... the answer was... SELinux !

I installed the last version of phpMyadmin, which gave me more details about the error (#2002), then after a search on SO :

Error 2002

Maybe it'll help someone !



Answered By - sylvain
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing