先要看你的数据库支持不支持远程连接,支持的话装个mysqlcc吧,在mysql主页有,图形化界面,如果不支持,一般都提供phpmyadmin连接,要再不行,只好自己写代码,或者传个phpmyadmin到主页空间

解决方案 »

  1.   

    请问,如果提供商提供phpmyadmin连接的话,那么怎么样连接呢,我在phpmyadmin那里找不到有远程连接的选项,谢谢!
      

  2.   

    config.inc.php
    ===================
    /**
     * Server(s) configuration
     */
    $i = 0;
    // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
    // You can disable a server config entry by setting host to ''.
    $i++;
    $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
    $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                        // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                        // (this user must have read-only
    $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                        // and "mysql/db" tables).
                                                        // The controluser is also
                                                        // used for all relational
                                                        // features (pmadb)
    $cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = '';      // MySQL user
    $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                        // with 'config' auth_type)
    $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                        // this db is displayed in left frame
                                                        // It may also be an array of db-names, where sorting order is relevant.
    $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname$cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Book and PDF Features
                                                        // (see scripts/create_tables.sql)
      

  3.   

    我也想知道,我现在安装了mysql,只能自己访问,局域网内总是访问不了,提示错误:
    Error: ***not allowed to connect to this mysql server