修改以下配置:$cfgServers[1]['host'] = 'localhost'; // MySQL hostna
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/13 00:26:54
修改以下配置:
$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]['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数据库连接地址
$cfgServers[1]['port'] = ''; // MySQL数据库连接端口,默认为3306
$cfgServers[1]['user'] = 'alintest'; // MySQL数据库用户名
$cfgServers[1]['password'] = 'alintest'; // MySQL数据库密码
$cfgServers[1]['only_db'] = 'alintest'; // 数据库连接成功后你要使用到的数据库名
只要配置好这几项,一般你的网站就可以成功连接到数据库了
$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'; // 数据库连接成功后你要使用到的数据库名
只要配置好这几项,一般你的网站就可以成功连接到数据库了
Connect(0) to MySQL (localhost,VLSA099) failed
mysql问题:access denied for user 'root@localhost'(using passwo
host sercer is not allowed to connect to this MYSQL
mysql
请问你这个是如何解决了了?“ The TCP/IP connection to the host localhost,p
错误:The TCP/IP connection to the host localhost,port 1433 has
AIX6出现an attempt to start a new process on host localhost fa
1130 -host 'localhost' is not allowed to connect to this mys
#1130 - Host 'localhost' is not allowed to connect to this M
[root@localhost/]#
host
MySQL-mysql里是什么意思