phpMyAdmin 的安装简介

学习笔记 马富天 2016-09-14 22:24:38 80 0

【摘要】在WAMP环境下,phpMyAdmin是默认安装的,只要在你的本地环境下的项目根目录后面加/phpMyAdmin即可,如:http://127.0.0.1:8080/phpMyAdmin,这样就会直接跳转到phpMyAdmin的页面去。

在WAMP环境中默认是安装了phpMyAdmin的,当然也可以从phpmyadmin官网上去下载,网址:

https://www.phpmyadmin.net

下载后可以放到自己网站的目录下面,可以用来方便自己的数据界面方式的管理。

另外,WAMP环境下的phpMyAdmin在目录:wamp\apps\phpmyadmin4.1.14下面(当然版本号是不一样的),其实有一个文件是从官网上下载比较中,多的一个文件,是后面创建的:文件名是config.inc.php:在文件中可以配置数据库的相关信息

  1. /* vim: set expandtab sw=4 ts=4 sts=4: */
  2. /**
  3.  * phpMyAdmin sample configuration, you can use it as base for
  4.  * manual configuration. For easier setup you can use setup/
  5.  *
  6.  * All directives are explained in documentation in the doc/ folder
  7.  * or at <http://docs.phpmyadmin.net/>.
  8.  *
  9.  * @package PhpMyAdmin
  10.  */
  11. /*
  12.  * This is needed for cookie based authentication to encrypt password in
  13.  * cookie
  14.  */
  15. $cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  16. /*
  17.  * Servers configuration
  18.  */
  19. $i = 0;
  20. /*
  21.  * First server
  22.  */
  23. $i++;
  24. /* Authentication type */
  25. $cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
  26. //$cfg['Servers'][$i]['auth_type'] = 'cookie';
  27. $cfg['Servers'][$i]['auth_type'] = 'config';
  28. $cfg['Servers'][$i]['user'] = 'root';
  29. $cfg['Servers'][$i]['password'] = '';
  30. /* Server parameters */
  31. $cfg['Servers'][$i]['host'] = '127.0.0.1';
  32. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  33. $cfg['Servers'][$i]['compress'] = false;
  34. /* Select mysql if your server does not have mysqli */
  35. $cfg['Servers'][$i]['extension'] = 'mysqli';
  36. $cfg['Servers'][$i]['AllowNoPassword'] = true;
  37. /*
  38.  * phpMyAdmin configuration storage settings.
  39.  */
  40.  
  41. // No warning on  pmadb tables
  42. $cfg['PmaNoRelation_DisableWarning'] = true;

这个配置文件是用来预先写入数据库用户名和密码的,当用户直接输入http://127.0.0.1:8080/phpMyAdmin/index.php的时候可以直接登录,而不用输入用户名即密码,如果并不想要使用这个配置文件,则可以把这文件删除,则每次都需要输入数据库用户名及密码。

版权归 马富天个人博客 所有

本文标题:《phpMyAdmin 的安装简介》

本文链接地址:http://www.mafutian.com/201.html

转载请务必注明出处,小生将不胜感激,谢谢! 喜欢本文或觉得本文对您有帮助,请分享给您的朋友 ^_^

0

0

上一篇《 基于 SimpleWebRTC 实现网页在线视频聊天 》 下一篇《 phpMyAdmin - 错误 您应升级到 MySQL 5.5.0 或更高版本。 》

暂无评论

评论审核未开启
表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情 表情
验证码

TOP10

  • 浏览最多
  • 评论最多