现在稍微好用点的数据库客户端管理工具大多都是英文版的或者是收费的,如Navicat、Workbench等。
当然你也可以用破解版的Navicat,但是随着大家对软件著作权越来越重视,网上能找到的破解资源越来越少,甚至消失。推荐一下phpmyadmin,一款web版免费开源支持中文的Mysql客户端管理工具,虽然功能上不是特别强大但是常用的功能基本覆盖到了,而且还在持续更新不断完善中。
phpmyadmin 默认支持单个Mysql服务的管理,并且每次管理之前都需要进行登录,我们可以进行简单的配置使之可以管理多个数据库服务并且免登录。
1.将phpMyAdmin根目录下的config.sample.inc.php,重命名为config.inc.php
2.修改config.inc.php文件
/*
* First server
*/
//如果要管理,更多个mysql服务器,就修改$connect_hosts这个数组就行了
$connect_hosts = array(
'1'=>array(
"host" => "localhost", //服务器1
"user" => "root",
"password" => ""
),
'2' => array(
"host" => "192.168.0.11", //服务器2
"user" => "wordpress",
"password" => "*******"
)
);
for ($i=1;$i<=count($connect_hosts);$i++) {
/* Authentication type */
// $cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'config'; //将默认的cookie改成config就会使用配置的密码访问数据库了,不需要做再登录操作
/* Server parameters */
$cfg['Servers'][$i]['host'] = $connect_hosts[$i]['host']; //修改host
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['user'] = $connect_hosts[$i]['user']; //修改用户名
$cfg['Servers'][$i]['password'] = $connect_hosts[$i]['password']; //密码
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
}
修改后效果如下: