非常适合对数据库操作命令不熟悉的数据库管理者,下面我就说下怎么安装该工具:

1.先到网上下载phpmyadmin,再解压到可以访问的web目录下(如果是虚拟空间,可以解压后通过ftp等上传到web目录下),当然您可以修改解压后该文件的名称。

2.配置config文件

打开libraries下的config.default.php文件,依次找到下面各项,按照说明配置即可:

A.访问网址

引用:

$cfg['PmaAbsoluteUri'] = '';这里填写phpmyadmin的访问网址

B.mysql主机信息

引用:

$cfg['Servers'][$i]['host'] =

'localhost'; // MySQL hostname or IP address

填写localhost或mysql所在服务器的ip地址,如果mysql和该phpmyadmin在同一服务器,则按默认localhost

$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default

port

mysql端口,如果是默认3306,保留为空即可

C.mysql用户名和密码

引用:

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user 访问phpmyadmin使用的mysql用户名

fg['Servers'][$i]['password'] = ''; // MySQL password (only

needed对应上述mysql用户名的密码

D.认证方法引用:

$cfg['Servers'][$i]['auth_type'] = 'cookie';

在此有四种模式可供选择,cookie,http,HTTP,config

config方式即输入phpmyadmin的访问网址即可直接进入,无需输入用户名和密码,是不安全的,不推荐使用。

当该项设置为cookie,http或HTTP时,登录phpmyadmin需要数据用户名和密码进行验证,,具体如下:

PHP安装模式为Apache,可以使用http和cookie;

PHP安装模式为CGI,可以使用cookie

E.短语密码(blowfish_secret)的设置

引用:

$cfg['blowfish_secret'] = '';

如果认证方法设置为cookie,就需要设置短语密码,置于设置为什么密码,由您自己决定

,但是不能留空,否则会在登录phpmyadmin时提示错误

好了,到此为止,您已经成功安装了phpmyadmin,简单吧 ,赶快登录体验下吧

说明:

该文档说明的只是安装phpmyadmin的基本配置,关于config.default.php文件中各个配置参数的详细说明可以

phpMyAdmin 就是一种 MySQL 数据库的管理工具,安装该工具后,即可以通过 web 形式直接管理 MySQL

数据,而不需要通过执行系统命令来管理,非常适合对数据库操作命令不熟悉的数据库管理者,下面详细说明该工具的安装方法。

一、下载1、先到官方站点下载phpMyAdmin

安装包:http://www.phpmyadmin.net/

(安装包含各种语言all-languages)

2、再解压到 web 可以访问的目录下,如果是虚拟空间,可以解压后通过 ftp 工具上传到 web

目录下,同时您可以修改解压后该文件的名称(你可以自定义目录名称)。

二、配置3、打开

/libraries/config.default.php文件(旧版本是根目录下的config.inc.php文件),用写字板(不要用记事本,这是UTF8编码)进行编辑,按照说明配置即可。

4、查找 $cfg['PmaAbsoluteUri']=‘'; // 修改为你将上传到空间的phpMyAdmin的网址

如:$cfg['PmaAbsoluteUri'] =‘http: // 网站域名/phpmyadmin/';

5、查找

$cfg['Servers'][$i]['host'] =‘localhost'; // 通常用默认,也有例外,可以不用修改

6、查找

$cfg['Servers'][$i]['auth_type'] =‘config'; //

在自己的机子里调试用config;如果在网络上的空间用cookie.

在此有四种模式可供选择:cookie,http,HTTP,config

config 方式即输入phpMyAdmin 的访问网址即可直接进入,无需输入用户名和密码,是不安全的,不推荐使用。

设置cookie,http,HTTP方式,登录 phpMyAdmin 需要数据用户名和密码进行验证。

具体如下:PHP 安装模式为 Apache,可以使用

http 和 cookie;PHP 安装模式为 CGI,可以使用 cookie。

7、查找 $cfg['Servers'][$i]['user'] =

‘root'; // MySQL用户名

8、查找 $cfg['Servers'][$i]['password'] =''; // MySQL 密码

(only needed 留空就可以了)

9、查找 $cfg['Servers'][$i]['only_db'] = ''; //

你只有一个数据就设置一下,设置为你的数据库名;如果你想架设服务器,那么建议留空

10、查找 $cfg['DefaultLang'] = ‘zh'; //

这里是选择语言,zh代表简体中文的意思

11、查找$cfg['blowfish_secret'] =''; //

如果认证方法设置为cookie,就需要设置短语密码,设置为什么密码,由您自己决定,这里不能留空,否则会在登录 phpMyAdmin

时提示如下图所示的错误。

12、设置完毕后保存,现在可以上传到网络空间上了,浏览http://网站域名/phpmyadmin/测试一下。(输入数据库的用户名及密码就可以了)

如果要安装过程中出现:“phpMyAdmin - 错误 缺少 mysqli 扩展。请检查 PHP

配置。”错误。

解决方法如下:

①到phpmyadmin文件夹的\libraries\config.default.php文件中找:$cfg['Servers'][$i]['extension']='mysql';语句。

②如果有找到$cfg['Servers'][$i]['extension']='mysql';这句,就继续查找下面这句$cfg['Servers'][$i]['extension']='mysqli'; 并把其的注释去掉。

③如果没有找到$cfg['Servers'][$i]['extension']='mysql';这句,就把$cfg['Servers'][$i]['extension']='mysqli';语句,改成$cfg['Servers'][$i]['extension']='mysql';

语句。(即确保 " mysql " 值能生效)

/* $Id: config.inc.php,v 1.204.2.1 2003/10/10 14:24:24 nijel

Exp $ */

// vim: expandtab sw=4 ts=4 sts=4:

/**

* phpMyAdmin Configuration File

*

* All

directives are explained in Documentation.html

*/

/**

* Sets the php error reporting - Please do not change this

line!

*/

if (!isset($old_error_reporting)) {

error_reporting(E_ALL);

@ini_set('display_errors', '1');

}

/**

* Your phpMyAdmin url

*

* Complete the variable below with

the full url ie

*

http://www.your_web.net/path_to_your_phpMyAdmin_directory/

*

* It must

contain characters that are valid for a URL, and the path is

* case sensitive

on some Web servers, for example Unix-based servers.

*

* In most cases you

can leave this variable empty, as the correct value

* will be detected

automatically. However, we recommend that you do

* test to see that the

auto-detection code works in your system. A good

* test is to browse a table,

then edit a row and save it. There will be

* an error message if phpMyAdmin

cannot auto-detect the correct value.

*

* If the auto-detection code does

work properly, you can set to TRUE the

*

$cfg['PmaAbsoluteUri_DisableWarning'] variable

below.

*/

$cfg['PmaAbsoluteUri'] = '';-----这里设置你的phpmyadmin的URL,如:http://localhost/phpmyadmin/

/**

* Disable the default warning about $cfg['PmaAbsoluteUri'] not

being set

* You should use this if and ONLY if the PmaAbsoluteUri

auto-detection

* works

perfectly.

*/

$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;

/**

* Disable the default warning that is displayed on the DB Details

Structure page if

* any of the required Tables for the relationfeatures could

not be found

*/

$cfg['PmaNoRelation_DisableWarning'] = FALSE;

/**

* The 'cookie' auth_type uses blowfish algorithm to encrypt the

password. If

* at least one server configuration uses 'cookie' auth_type,

enter here a

* passphrase that will be used by

blowfish.

$cfg['blowfish_secret'] = '';-----设定好root密码后这里也要填写

/**

* Server(s) configuration

*/

$i = 0;

// The $cfg['Servers']

array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].

// You

can disable a server config entry by setting host to

''.

$i++;

$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL

hostname or IP address----这里可以设定远程MySQL服务器IP地址

$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave

blank for default port-----默认为3306

$cfg['Servers'][$i]['socket']        = '';          // Path to the socket -

leave blank for default socket

$cfg['Servers'][$i]['connect_type'] = 'tcp';       // How to connect to MySQL

server ('tcp' or 'socket')-----连接MySQL服务器的方式

$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed

protocol for the MySQL

connection

// (requires

PHP >= 4.3.0)-----是否使用压缩协议,PHP版本须>= 4.3.0

$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user

settings

// (this user

must have read-only

$cfg['Servers'][$i]['controlpass']   = '';          //

access to the

"mysql/user"

// and

"mysql/db" tables)-----MySQL控制用户设定,该用户只对mysql数据库下的user和db表有完全权限

$cfg['Servers'][$i]['auth_type']     = 'config';

// Authentication

method (config, http or cookie based)?-----如果PHP安装模式为Apache,可以使用http和cookie;如果PHP安装模式为CGI,可以使用cookie;默认为config,是不安全的,不推荐。

$cfg['Servers'][$i]['user']          = 'root';      // MySQL user-----MySQL连接用户

$cfg['Servers'][$i]['password']      = '';

// MySQL password

(only needed with 'config' auth_type)-----MySQL连接密码,建议在安装好PHP和MySQL后,先用phpmyadmin设定root密码,然后在这里填写

$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name,

only

// this db is

displayed

// at left

frame

// It may also be

an array

// of

db-names-----如果在这里设定一个数据库的名字,那么登陆后框架左边将只显示这个数据库

$cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this

host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb']         = '';          // Database used for

Relation, Bookmark and PDF

Features

// (see

scripts/create_tables.sql)

//   - leave blank for no

support

//     DEFAULT:

'phpmyadmin'

$cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark

table

//   - leave blank

for no bookmark support

//     DEFAULT: 'pma_bookmark'

$cfg['Servers'][$i]['relation']      =

'';          // table to describe the relation between links (see

doc)

//   - leave blank

for no relation-links

support

//     DEFAULT:

'pma_relation'

$cfg['Servers'][$i]['table_info']    = '';          // table

to describe the display

fields

//   - leave blank

for no display fields

support

//     DEFAULT:

'pma_table_info'

$cfg['Servers'][$i]['table_coords'] = '';          // table

to describe the tables position for the PDF

schema

//   - leave blank

for no PDF schema support

//     DEFAULT: 'pma_table_coords'

$cfg['Servers'][$i]['pdf_pages']     =

'';          // table to describe pages of

relationpdf

//   - leave

blank if you don't want to use

this

//     DEFAULT:

'pma_pdf_pages'

$cfg['Servers'][$i]['column_info']   = '';          // table

to store column

information

//   - leave

blank for no column comments/mime

types

//     DEFAULT:

'pma_column_info'

$cfg['Servers'][$i]['history']       = '';          //

table to store SQL

history

//   - leave

blank for no SQL query

history

//     DEFAULT:

'pma_history'

$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to

FALSE if you know that your pma_*

tables

// are up to date.

This prevents

compatibility

// checks

and thereby increases

performance.

$cfg['Servers'][$i]['AllowDeny']['order']           // Host

authentication order, leave blank to not

use

=

'';

$cfg['Servers'][$i]['AllowDeny']['rules']           // Host

authentication rules, leave blank for

defaults

= array();

$i++;

$cfg['Servers'][$i]['host']            =

'';

$cfg['Servers'][$i]['port']            =

'';

$cfg['Servers'][$i]['socket']          =

'';

$cfg['Servers'][$i]['connect_type']    =

'tcp';

$cfg['Servers'][$i]['compress']        =

FALSE;

$cfg['Servers'][$i]['controluser']     =

'';

$cfg['Servers'][$i]['controlpass']     =

'';

$cfg['Servers'][$i]['auth_type']       =

'config';

$cfg['Servers'][$i]['user']            =

'root';

$cfg['Servers'][$i]['password']        =

'';

$cfg['Servers'][$i]['only_db']         =

'';

$cfg['Servers'][$i]['verbose']         =

'';

$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see

scripts/create_tables.sql

$cfg['Servers'][$i]['bookmarktable']   = ''; //

'pma_bookmark'

$cfg['Servers'][$i]['relation']        = ''; //

'pma_relation'

$cfg['Servers'][$i]['table_info']      = ''; //

'pma_table_info'

$cfg['Servers'][$i]['table_coords']    = ''; //

'pma_table_coords'

$cfg['Servers'][$i]['pdf_pages']       = ''; //

'pma_pdf_pages'

$cfg['Servers'][$i]['column_info']     = ''; //

'pma_column_info'

$cfg['Servers'][$i]['history']         = ''; //

'pma_history'

$cfg['Servers'][$i]['verbose_check']   =

TRUE;

$cfg['Servers'][$i]['AllowDeny']['order']

=

'';

$cfg['Servers'][$i]['AllowDeny']['rules']

= array();

$i++;

$cfg['Servers'][$i]['host']            =

'';

$cfg['Servers'][$i]['port']            =

'';

$cfg['Servers'][$i]['socket']          =

'';

$cfg['Servers'][$i]['connect_type']    =

'tcp';

$cfg['Servers'][$i]['compress']        =

FALSE;

$cfg['Servers'][$i]['controluser']     =

'';

$cfg['Servers'][$i]['controlpass']     =

'';

$cfg['Servers'][$i]['auth_type']       =

'config';

$cfg['Servers'][$i]['user']            =

'root';

$cfg['Servers'][$i]['password']        =

'';

$cfg['Servers'][$i]['only_db']         =

'';

$cfg['Servers'][$i]['verbose']         =

'';

$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see

scripts/create_tables.sql

$cfg['Servers'][$i]['bookmarktable']   = ''; //

'pma_bookmark'

$cfg['Servers'][$i]['relation']        = ''; //

'pma_relation'

$cfg['Servers'][$i]['table_info']      = ''; //

'pma_table_info'

$cfg['Servers'][$i]['table_coords']    = ''; //

'pma_table_coords'

$cfg['Servers'][$i]['pdf_pages']       = ''; //

'pma_pdf_pages'

$cfg['Servers'][$i]['column_info']     = ''; //

'pma_column_info'

$cfg['Servers'][$i]['history']         = ''; //

'pma_history'

$cfg['Servers'][$i]['verbose_check']   =

TRUE;

$cfg['Servers'][$i]['AllowDeny']['order']

=

'';

$cfg['Servers'][$i]['AllowDeny']['rules']

= array();

// If you have more than one server configured, you can set

$cfg['ServerDefault']

// to any one of them to autoconnect to that server

when phpMyAdmin is started,

// or set it to 0 to be given a list of servers

without logging in

// If you have only one server configured,

$cfg['ServerDefault'] *MUST* be

// set to that server.[color]=red]-----是否显示所有的MySQL服务器

$cfg['ServerDefault'] =

1;              // Default server (0 = no default

server)

$cfg['Server']        = '';

unset($cfg['Servers'][0]);

/**

* Other core phpMyAdmin

settings

*/

$cfg['OBGzip']                  = 'auto'; // use GZIP output

buffering if possible (TRUE|FALSE|'auto')-----有必要的话是否使用GZIP输出缓冲

$cfg['PersistentConnections']   = FALSE; // use persistent connections to

MySQL database-----是否使用MySQL持久连接,即pconnect

$cfg['ExecTimeLimit']           = 300;    // maximum execution time in

seconds (0 for no limit)-----最大脚本执行时间,单位:秒

$cfg['SkipLockedTables']        = FALSE; // mark used tables, make possible

to show

// locked tables (since

MySQL 3.23.30)

$cfg['ShowSQL']                 = TRUE;   // show SQL queries

as run-----运行查询时显示SQL查询语句

$cfg['AllowUserDropDatabase']   = FALSE; // show a 'Drop database' link to

normal users-----是否对普通用户显示“删除数据库”连接

$cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP

DATABASE'-----删除数据表/库前是否出现确认提示框

$cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie

auth. mode or not-----是否收回先前cookie认证模式的cookie

$cfg['UseDbSearch']             = TRUE;   // whether to enable the "database

search" feature

// or

not

$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues

computing multiple-statement

queries

// even if one of the

queries failed

$cfg['VerboseMultiSubmit']      = TRUE;   // if set to true,

PMA will show the affected rows of EACH statement

on

// multiple-statement queries.

See the read_dump.php file for

hardcoded

// defaults on how many

queries a statement may contain!

$cfg['AllowArbitraryServer']    = FALSE; //

allow login to any user entered server in cookie based auth

mysql phpmyadmin 文件夹_PHPMyadmin 配置文件详解(配置)相关推荐

  1. 理解Git的设计思想,详解git文件夹,以及详解add、commit、push,fetch、pull、merge指令

    在项目目录执行git init,此目录将纳入git管理,git将会自动生成.git文件夹,用以记录git配置(.git/config)和版本信息(commit-id)和文件集合.下面是.git文件夹的 ...

  2. vsftpd配置文件详解 ---配置解说

    vsftpd配置文件详解 1.默认配置: 1>允许匿名用户和本地用户登陆.      anonymous_enable=YES      local_enable=YES 2>匿名用户使用 ...

  3. 操作系统:电脑系统盘常见文件夹的功能详解

    目录 一.C盘根目录常见文件夹 二.隐藏文件夹 相信很多电脑小白对于系统C盘每个文件夹的功能不是很清楚,今天小编给大家介绍一下电脑系统盘文件的功能详解,希望对大家能有所帮助! 一.C盘根目录常见文件夹 ...

  4. gitignore忽略文件夹_原创 | 详解gitignore的使用方法,让你尽情使用git add .

    点击上方蓝字,关注并星标,和我一起学技术. 大家好,欢迎来到周一git专题. 今天和大家聊聊gitignore的作用,其实如果你英文还可以的话,你应该已经基本上猜到它的作用了.ignore在英文当中的 ...

  5. 手机中geetest是什么文件_安卓手机系统中各类英文文件夹的含义详解,不知道的尽快熟知!...

    说到手机,不管是安卓版还是苹果版的手机,总是会有很多地方让人头疼,不是因为不好用,而是因为不认识,完全不知道干嘛用的.看来使用手机,还需要将自己的英文学好,这样才不会导致自己的手机内存不够用和误删除一 ...

  6. python删除文件夹下文件夹_python删除指定文件夹下文件和文件夹的方法详解

    前记 python删除指定文件夹下的文件,是一个常用的功能.我找了不少地方,一直没有找到合适的模版,那只好自己倒腾一个比较实用的模版了. 基本模块 这里面会用到几个模块,一个是目录下所有文件的的函数: ...

  7. wget 命令 指定文件夹_Wget 命令详解

    Wget主要用于下载文件,在安装软件时会经常用到,以下对wget做简单说明. 命令格式: wget [参数] [URL地址] 1.下载单个文件:wget http://www.baidu.com.命令 ...

  8. 如何删除GitHub仓库里的文件夹(配图详解)

    更多干货推荐可以去牛客网看看,他们现在的IT题库内容很丰富,属于国内做的很好的了,而且是课程+刷题+面经+求职+讨论区分享,一站式求职学习网站,最最最重要的里面的资源全部免费!!!点击进入------ ...

  9. windows服务器文件夹权限设置详解,windows服务器如何设置文件夹权限

    windows服务器如何设置文件夹权限 内容精选 换一换 实际业务场景下,您可能会需要将文件临时分享给其他人或者将文件永久共享给其他人.临时分享:通过文件的临时URL直接将其分享给其他用户.文件分享强 ...

最新文章

  1. cocos网络通信php,cocos2d-x网络编程 连接php服务器笔记2
  2. Sendmail+dovecot+saslauth+rainloop
  3. Python中的字符串与字符编码:编码和转换问题
  4. PaddleOCR 文本检测训练+推理模型转换教程
  5. mysql提高运行效率_提升Mysql执行效率的SQL优化技巧汇总
  6. paip.php 与js 的相似性以及为什么它们这么烂还很流行。。
  7. 云服务器远程连接的设置方法、安全组设置(外网可访问)
  8. 剪切板 html 查看器,如何打开剪贴板查看器
  9. 中考计算机wps题怎么做,WPS与ScienceWord联合制作理科试卷 -电脑资料
  10. python打开qq并登录_python爬虫入门之qq登陆初探
  11. 处理C盘容量不足问题(以AppData为例)
  12. c语言程序设计基础计算存款利息,《C语言及程序设计》实践参考——定期存款利息计算器...
  13. Coder往事之: 一些炫酷的特效 for web 前端 (一)
  14. python爬虫热点项目—滑块验证码项目(以Bilili为例)
  15. Unicode双向算法详解(bidi算法)(一)
  16. Android个人信息页面
  17. java音频剪切_Java使用IO流实现音频的剪切和拼接
  18. 解决:RuntimeError: CUDA error: device-side assert triggered
  19. Method of posterior probabilities generation for ordinal classification
  20. Powerful***功能强大的文本编辑器***PilotEdit Lite

热门文章

  1. PDF文件可以修改吗,怎么在PDF上修改文字
  2. 和功率的计算公式_电缆、功率、耗电量计算公式大全
  3. SpringBoot项目启动,80端口被占用解决方法
  4. MTK QT Linux flashtool试用总结
  5. linux洪水攻击软件,Linux服务器下对SYN洪水攻击的诊断和阻挡
  6. 数字图像处理_冈萨雷斯_M函数编程简介
  7. USB2.0 HUB芯片方案-GL850G
  8. Matrix67的KMP讲解
  9. Windows 下编辑 hosts 文件
  10. 社区电商从鸡肋到终局之战,滴滴为什么能领跑?