Created
September 30, 2014 13:51
-
-
Save anandsunderraman/cb19e990f7ab6cc89362 to your computer and use it in GitHub Desktop.
phpmyadmin add remote mysql server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$i++; | |
//add remote server hostname or ip | |
$cfg['Servers'][$i]['host'] = 'hostname or ip'; | |
$cfg['Servers'][$i]['port'] = ''; | |
$cfg['Servers'][$i]['socket'] = ''; | |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; | |
$cfg['Servers'][$i]['extension'] = 'mysql'; | |
$cfg['Servers'][$i]['compress'] = FALSE; | |
$cfg['Servers'][$i]['auth_type'] = 'config'; | |
//add credentials | |
$cfg['Servers'][$i]['user'] = 'THE MYSQL USER NAME'; | |
$cfg['Servers'][$i]['password'] = 'THE MYSQL USER PASSWORD'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment