Home  >  Article  >  Backend Development  >  phpMyAdmin配置安装全攻略_PHP教程

phpMyAdmin配置安装全攻略_PHP教程

WBOY
WBOYOriginal
2016-07-15 13:22:23878browse

  phpMyAdmin配置安装全攻略phpMyAdmin安装配置教程傻瓜版,主要为phpMyAdmin 2.11.X 配置安装,其它版本安装方法一样。

1、先下载 phpMyAdmin 安装包 (我们用的这个很正常)

2、解压后一个单独目录中(你可以自定义目录名称)

3、找到 /libraries/config.default.php文件(旧版本是根目录下的config.inc.php文件),用写字板(不要用记事本,这是UTF8编码)进行编辑。

4、查找 $cfg['PmaAbsoluteUri']

修改为你将上传到空间的phpMyAdmin的网址

如:$cfg['PmaAbsoluteUri'] = ‘http://www.phpq.net/phpmyadmin/’;

5、查找 $cfg['Servers'][$i]['host'] = ‘localhost’;(通常用默认,也有例外,可以不用修改)

6、查找 $cfg['Servers'][$i]['auth_type'] = ‘config’;

在自己的机子里调试用config;如果在网络上的空间用cookie,这里我们既然在前面已经添加了网址,就修改成cookie ,这里建议使用cookie.

7、查找 $cfg['Servers'][$i]['user'] = ‘root’; // MySQL user( 用户名,一般这里随便填几个字母就可以了; 特殊情况下,自己机里用root,在网上一般为你的ftp用户名,虚拟主机提供商会告诉你的,一般不要修改.)

8、查找 $cfg['Servers'][$i]['password'] = ”; // MySQL password (only needed 留空就可以了)

9、查找 $cfg['Servers'][$i]['only_db'] = ”; // If set to a db-name, only(你只有一个数据就设置一下,设置为你的数据库名;如果你想架设服务器,那么建议留空)

10、查找 $cfg['DefaultLang'] = ‘zh’; (这里是选择语言,zh代表简体中文的意思)

11、查找$cfg['blowfish_secret'],请在$cfg['blowfish_secret'] = ‘ ‘;的等号里面设置你网站的cookie(cookie也就是访问phpmyadmin的域名),例如:$cfg['blowfish_secret'] = ‘www.xinnethz.net’;。

12、设置完毕后保存,现在可以上传到网络空间上了


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/446969.htmlTechArticlephpMyAdmin配置安装全攻略phpMyAdmin安装配置教程傻瓜版,主要为phpMyAdmin 2.11.X 配置安装,其它版本安装方法一样。 1、先下载 phpMyAdmin 安装包...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn