External SQL server for a user

Are mydomain.com and EXTERNALDOMAIN.com hosted on one server? You can access phpmyadmin from any domain from the server, if it's not forbidden by you.
 
mydomain.com --> domain in localhost server (create with directadmin in localhost)
externaldomain.com -> domain in localhostserver (create with directadmin in localhost), but phpmyadmin in external domain (ip)

Then, the link to phpmyadmin in your directadmin account must be to:
http://externaldomain.com/phpmyadmin

it's possible?

regards!
 
Do you host MySQL on a remote server? And want to have in Directadmin a link to phpMyAdmin hosted on that remote server (without Directadmin), is it so?
 
If so, then you need to customize a skin file with adding a PHP code or using JavaScript. The customization should check username against desired and re-write link to phpMyAdmin:

Code:
/usr/local/directadmin/data/skins/enhanced/user/db/db.html 
/usr/local/directadmin/data/skins/enhanced/user/show_domain.html

Change enhanced to your skin-name if you use any different.

I'm not sure about your programming skills, that's why I won't (at least for now) post any code. And another issue might come with Directadmin updating, as it will rewrite your changes. So you'll need to take care of it.
 
Last edited:
Back
Top