回复给楼主(疯狂者)
phpmyadmin mysql管理软件web上面使用
修改config.sample.inc.php 文件名改成 config.ini.php 或者先用mv 命令改名或者移动
用vi 打开config.ini.php配置文件在$cfg['Servers'][$i]['auth_type'] = 'cookie';这行上面加一条
$cfg['blowfish_secret'] = 'phpmyadminaaa';
mysql.sock启动没链接,也会造成访问提示 服务器2002出错. 把/tmp/mysql.sock文件软链接下可以了.
php.ini 文件里面修改mysql.default_socket =/tmp/mysql.sock
配置文件可以完全改成这个
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use scripts/setup.php
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki .
*
* @version $Id: config.sample.inc.php 10142 2007-03-20 10:32:13Z cybot_tm $
*/
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['blowfish_secret'] = 'phpmyadminaaa';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features *
你看下是否对你有帮助 |
|