修改以下配置:$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]['co
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 15:57:12
修改以下配置:$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]['co
修改以下配置:
$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'] = 'alintest'; // MySQL user
$cfgServers[1]['password'] = 'alintest'; // MySQL password (only needed with basic auth)
$cfgServers[1]['only_db'] = 'alintest'; // If set to a db-name,only this db is displayed at left frame
修改以下配置:$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]['co
看情况 有着应当属于网站的数据库配置项,你需要知道的有这几个
$cfgServers[1]['host'] = 'localhost'; // MYSQL数据库连接地址
$cfgServers[1]['port'] = ''; // MySQL数据库连接端口,默认为3306
$cfgServers[1]['user'] = 'alintest'; // MySQL数据库用户名
$cfgServers[1]['password'] = 'alintest'; // MySQL数据库密码
$cfgServers[1]['only_db'] = 'alintest'; // 数据库连接成功后你要使用到的数据库名
只要配置好这几项,一般你的网站就可以成功连接到数据库了