常见问题
我们为您整理出最新、最热的常见问题,您可以随时查阅。
如何连接MYSQL数据库? 返回上一页
MYSQL数据库的管理: 首先下载PhpMyAdmin软件,将此文件包解压,找到其中的一个文件: config.inc.php(或者如config.*等, 该文件名会因phpmyadmin版本不同, 而有所差别) 修改以下配置: $cfgServers[1]['host'] = 'localhost'; // MySQL hostname $cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port $cfgServers[1]['socket'] = ''; // Path to the socket - leave blank for default socket $cfgServers[1]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket') $cfgServers[1]['stduser'] = ''; // MySQL standard user settings (this user must have read-only $cfgServers[1]['stdpass'] = ''; // access to the "mysql/user" and "mysql/db" tables) $cfgServers[1]['adv_auth'] = FALSE; // Use advanced authentication? $cfgServers[1]['user'] = 'FTP帐号'; // MySQL user $cfgServers[1]['password'] = 'FTP密码'; // MySQL password (only needed with basic auth) $cfgServers[1]['only_db'] = ''FTP帐号'; // If set to a db-name, only this db is displayed at left frame 然后您ftp到您的网站, 在wwwroot下建立一个目录phpmyadmin, 把phpmyadmin所有文件上传到该目录下 访问http://'yourdomain.com/phpmyadmin, 即可管理您的数据库了. 在您建好您的数据库后, 记得把这些phpadmin的文件移走, 否则便让任何人都可以管理您的数据库了. 如果用perl编程, 可以用如下代码连接数据库: #!/usr/bin/perl use DBI; $database = "'FTP帐号"; $user = "'FTP帐号"; $password = "'FTP密码"; $dbh = DBI->connect("DBI:mysql:$database", $user, $password); .......... $rc = $dbh->disconnect;
常见问题分类
域名服务类 空间租用类 集团邮局类 云服务器类 网站推广 备案事宜 ISP备案系统 企业应用类
基础知识 基础知识 基础知识 基础知识 基础知识 基础知识 基础知识 基础知识
业务相关 业务相关 业务相关 业务相关 业务相关 业务相关 业务相关 业务相关
故障解决 故障解决 故障解决 故障解决 故障解决 故障解决 故障解决 故障解决
其他 其他 其他 其他 其他 其他 其他 其他