phpMyAdmin管理mysql多实例或多个mysql服务器
phpmyadmin管理多实例mysql phpmyadmin管理多mysql服务器
修改phpmyadmin根目录下的config.inc.php文件,例如这里我新增了一个localhost:3308
- /* Servers configuration */
- $i = 0;
- /* Server: localhost [1] */
- $i++;
- $cfg['Servers'][$i]['verbose'] = '';
- $cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['port'] = '3307';
- $cfg['Servers'][$i]['socket'] = '/tmp/mysql3307.sock';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';
- $cfg['Servers'][$i]['extension'] = 'mysql';
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = '';
- $cfg['Servers'][$i]['password'] = '';
- $cfg['Servers'][$i]['hide_db'] = '';
- $i++;
- $cfg['Servers'][$i]['verbose'] = '';
- $cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['port'] = '3308';
- $cfg['Servers'][$i]['socket'] = '/tmp/mysql3308.sock';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';
- $cfg['Servers'][$i]['extension'] = 'mysql';
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = '';
- $cfg['Servers'][$i]['password'] = '';
- $cfg['Servers'][$i]['hide_db'] = '';
- /* End of servers configuration */
- $cfg['DefaultLang'] = 'en-utf-8';
- $cfg['blowfish_secret'] = '';
- $cfg['ServerDefault'] = 1;
- $cfg['UploadDir'] = '';
- $cfg['SaveDir'] = '';
- $cfg['LoginCookieValidity'] = 18000; // ³¬ʱʱ¼ä>
- ?>
效果如图:
扩展阅读:你也可以参考这种方法
《详细说明phpmyadmin连接,管理多个mysql服务器》http://blog.51yip.com/mysql/1250.html
本文作者:未来往事
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处
此处评论已关闭