16
PHP / Что нужно ввести в "config.inc.php" чтобы phpMyAdmin нормально работал?
« : 21 Февраля 2002, 17:29:31 »Код: [Выделить]
// You can disable a server config entry by setting host to \'\'.
$cfgServers[1][\'host\'] = \'[b]localhost[/b]\'; // 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\')
[i]$cfgServers[1][\'stduser\'] = \'[b]user[/b]\'; // MySQL standard user settings (this user must have read-only
$cfgServers[1][\'stdpass\'] = \'[b]cooluserpwd[/b]\'; // access to the "mysql/user" and "mysql/db" tables)[/i]
$cfgServers[1][\'auth_type\'] = \'[b]config[/b]\'; // Authentication method (config, http or cookie based)?
$cfgServers[1][\'user\'] = \'[b]root[/b]\'; // MySQL user
$cfgServers[1][\'password\'] = \'[b]coolpwd[/b]\'; // MySQL password (only needed with \'config\' auth)
$cfgServers[1][\'only_db\'] = \'\'; // If set to a db-name, only this db is displayed at left frame
обрати внимание что выделено курсивом тоже надо заполнять если ты не root
only_db позволит иметь доступ только к одной базе если у тебя нет доступа к другим