这位大侠,最近公司要我分析一个远程数据库,给了我ip ,用户名 ,密码,还有需要分析的数据库的名,我能不能利用phpmyadmin的功能在本地把这个数据库的所有信息遍历出来呢,就像我们使用本地phpmyadmin查看一个本地的数据库一样。很急啊,各位大侠,帮忙啊。小弟谢过了。

解决方案 »

  1.   

    phpmyadmin可以操作远程数据库,但是数据量大的话操作很卡容易死掉。数据量大的话可以试试sqlyog类的工具
      

  2.   

    这个软件是可以,不过在分析数据的时候,还是很麻烦的,如果能想phpmyadmin那样就好了,搜索数据的时候,方便快捷很多,
      

  3.   

    navicat 操作远程数据库不错
      

  4.   

    config.inc.php
    <?php 
    $cfg['blowfish_secret']='multiServerExample70518';
    //any string of your choice (max. 46 characters)
    $i = 0;  
     
    $i++; // server 1 :
    $cfg['Servers'][$i]['auth_type'] = 'cookie'; // needed for pma 2.x
    $cfg['Servers'][$i]['verbose']   = 'no1'; 
    $cfg['Servers'][$i]['host']      = 'localhost';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    // more options for #1 ...
     
    $i++; // server 2 :
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    $cfg['Servers'][$i]['verbose']   = 'no2'; 
    $cfg['Servers'][$i]['host']      = 'remote.host.addr';//or ip:'10.9.8.1'
    // this server must allow remote clients, e.g., host 10.9.8.%
    // not only in mysql.host but also in the startup configuration
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    // more options for #2 ... 
     
    // end of server sections
    $cfg['ServerDefault'] = 0; // to choose the server on startup
     
    // further general options ...
    ?>