現(xiàn)在稍微好用點(diǎn)的數(shù)據(jù)庫(kù)客戶端管理工具大多都是英文版的或者是收費(fèi)的,如Navicat配椭、Workbench等榆苞。
當(dāng)然你也可以用破解版的Navicat墓塌,但是隨著大家對(duì)軟件著作權(quán)越來越重視色迂,網(wǎng)上能找到的破解資源越來越少香缺,甚至消失。推薦一下phpmyadmin歇僧,一款web版免費(fèi)開源支持中文的Mysql客戶端管理工具图张,雖然功能上不是特別強(qiáng)大但是常用的功能基本覆蓋到了,而且還在持續(xù)更新不斷完善中诈悍。
phpmyadmin 默認(rèn)支持單個(gè)Mysql服務(wù)的管理祸轮,并且每次管理之前都需要進(jìn)行登錄,我們可以進(jìn)行簡(jiǎn)單的配置使之可以管理多個(gè)數(shù)據(jù)庫(kù)服務(wù)并且免登錄侥钳。
1.將phpMyAdmin根目錄下的config.sample.inc.php适袜,重命名為config.inc.php
2.修改config.inc.php文件
/*
* First server
*/
//如果要管理,更多個(gè)mysql服務(wù)器舷夺,就修改$connect_hosts這個(gè)數(shù)組就行了
$connect_hosts = array(
'1'=>array(
"host" => "localhost", //服務(wù)器1
"user" => "root",
"password" => ""
),
'2' => array(
"host" => "192.168.0.11", //服務(wù)器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'; //將默認(rèn)的cookie改成config就會(huì)使用配置的密碼訪問數(shù)據(jù)庫(kù)了痪蝇,不需要做再登錄操作
/* 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';
}
修改后效果如下: