请问你访问那个数据库,你使用那个账号访问数据库,如果你设置了权限,有可能你只能看到database而看不到table
你使用命令行的账号和phpMyAdmin里面设置的账号不一样

解决方案 »

  1.   

    我的mysql刚安装完,没有密码,用root不带密码就可以进去,我用 mysql -u root试了,我的phpMyAdmin也是设置不带密码的。
      

  2.   

    哪你再检查一下你的phpMyAdmin里面的config.inc.php是怎么样设置的?
      

  3.   

    $cfgServers[1]['host'] = 'localhost';           // MySQL hostname
    $cfgServers[1]['port'] = '';                        // MySQL port - leave blank for default port
    $cfgServers[1]['adv_auth'] = false;             // Use advanced authentication?
    $cfgServers[1]['stduser'] = 'root';             // MySQL standard user (only needed with advanced auth)
    $cfgServers[1]['stdpass'] = '';                 // MySQL standard password (only needed with advanced auth)
    $cfgServers[1]['user'] = 'root';                // MySQL user (only needed with basic auth)
    $cfgServers[1]['password'] = '';                // MySQL password (only needed with basic auth)
    $cfgServers[1]['only_db'] = '';                        // If set to a db-name, only this db is accessible
    $cfgServers[1]['verbose'] = '';                 // Verbose name for this host - leave blank to show the hostname$cfgServers[2]['host'] = '';
    $cfgServers[2]['port'] = '';
    $cfgServers[2]['adv_auth'] = false;
    $cfgServers[2]['stduser'] = '';
    $cfgServers[2]['stdpass'] = '';
    $cfgServers[2]['user'] = 'root';
    $cfgServers[2]['password'] = '';
    $cfgServers[2]['only_db'] = '';
    $cfgServers[2]['verbose'] = '';$cfgServers[3]['host'] = '';
    $cfgServers[3]['port'] = '';
    $cfgServers[3]['adv_auth'] = false;
    $cfgServers[3]['stduser'] = '';
    $cfgServers[3]['stdpass'] = '';
    $cfgServers[3]['user'] = 'root';
    $cfgServers[3]['password'] = '';
    $cfgServers[3]['only_db'] = '';
    $cfgServers[3]['verbose'] = '';
      

  4.   

    php里面有没有设置默认的mysql参数?查看一下你的php.ini