修改/libraries/config.default.php
为真即可,简单安全省事
$cfg['AllowArbitraryServer'] = true;
phpMyAdmin修改config.inc.php,服务器地址为下拉列表可选登录多个服务器
增加config.sample.inc.php
文件,参考下面配置或者访问setup手动生成
<?php/* * Generated configuration file * Generated by: phpMyAdmin 4.4.11 setup script * Date: Fri, 10 Jul 2015 15:54:42 +0800 *//* Servers configuration */$i = 0;/* Server: 10.4.14.64 [1] */$i++;$cfg['Servers'][$i]['verbose'] = '10.10.6.64';$cfg['Servers'][$i]['host'] = '10.10.6.64';$cfg['Servers'][$i]['port'] = '';$cfg['Servers'][$i]['socket'] = '';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['auth_type'] = 'cookie';$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '';
/* Server: 10.10.1.172 [2] */$i++;$cfg['Servers'][$i]['verbose'] = '10.10.1.172';$cfg['Servers'][$i]['host'] = '10.10.1.172';$cfg['Servers'][$i]['port'] = '';$cfg['Servers'][$i]['socket'] = '';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['auth_type'] = 'cookie';$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '';/* End of servers configuration */$cfg['blowfish_secret'] = '559f78c86f22d8.48481095';$cfg['DefaultLang'] = 'zh_CN';$cfg['ServerDefault'] = 1;$cfg['UploadDir'] = '';$cfg['SaveDir'] = '';?>
如果mysql是5.1的这个版本php会报错(
),解决方案:
vi /var/www/html/phpmyadmin/libraries/common.inc.php
#查找
if (PMA_MYSQL_INT_VERSION < 50500) {
#更换为
if (PMA_MYSQL_INT_VERSION < 50100) {
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。