解读phpMyAdmin配置的具体方法
我们在对
$cfgServers 数组
从1.4.2版本开始,phpMyAdmin支持对多个MySQL-server的管理。所以,增加了$cfgServers数组来存放不同服务器的登 录信息。$cfgServers[1]["host"]包含了第一个服务器的主机名,$cfgServers[2]["host"]为第二个服务器的主机 等,等等。如果你只有一个服务器要管理,可以简单地不去理会其它$cfgServers入口的主机名。
$cfgServers[n]["port"] 字符串
第n个MySQL服务器的端口号。缺省值为3300(保留空值)。
phpMyAdmin配置之$cfgServers[n]["host"] 字符串
第n个MySQL服务器的主机名。例如,localhost。
$cfgServers[n]["adv_auth"] 布尔值
对这个服务器应该使用基本或是高级认证方式。基本认证方式($adv_auth = false)是普通的老的作法:
用 户名和口令被存在config.inc.php3中。高级认证方式($adv_auth = true)从1.3.0版开始引入,允许你通过HTTP- Auth来作为合法的MySQL的用户进行登录。在config.inc中你只需要提供一个标准用户,他能够连接到MySQL上并且可以读出mysql库 的user/db表(看$cfgServers[n]["stduser"])。
推荐使用高级方式管理的场合:
当phpMyAdmin运行在多用户环境下,人们拥有shell处理权限时,你不想知道MySQL的用户名/口令。
当你想让用户存取他们自已的数据库,并且不想他们干扰其他人。
高级认证方式是安全的,因为标准用户只需要对mysql库的只读权限。MySQL口令不能被容易的破解,所以对于一个普通用户没有机会看到其它用户的明文口令。
$cfgServers[n]["user"] 字符串
$cfgServers[n]["password"] 字符串
当使用基本认证方式时,phpMyAdmin配置将使用用户名/口令对同这个MySQL服务器连接。当使用高级认证方式时则不需要。
$cfgServers[n]["stduser"] 字符串
$cfgServers[n]["stdpass"] 字符串
当使用高级认证方式时,用户名/口令对被用于校验真正的用户名/口令对。这个用户必须能够连接MySQL,而且可以读取mysql库的user表。当使用基本认证方式时则不需要。
$cfgServers[n]["only_db"] 字符串
如果设置了一个数据库名,只有这个数据库将显示给用户。
$cfgServers[n]["verbose"] 字符串
只有在多服务器入口时进行phpMyAdmin配置才有用。如果设置了,这个字符串将被显示出来,用来代替在主页面中的下接菜单中的主机名。例如,如果你想在系统只显示某些数据库,这个可能就有用了。
$cfgManualBase 字符串
如果设为一个URL(它指向MySQL文档),就会创建相应的帮助链接。
$cfgPersistentConnections 布尔值
是否使用持续连接(mysql_connect或mysql_pconnect)。
$cfgConfirm 布尔值
当你将要丢失数据时是否应该显示一个警告信息("你真的确定要...")。
phpMyAdmin配置之$cfgMaxRows 整数
当浏览一个结果集时显示的记录数。如果结果集包含了更多的数据,将显示前页/后页的链接。
$cfgMaxInputsize 整数
当向一个表增加一条新的记录时,编辑字段的大小。
$cfgBorder 整数
表格边界的大小。
$cfgThBgcolor 字符串 [HTML 颜色]
用在表头的颜色。
$cfgBgcolorOne 字符串 [HTML 颜色]
表格行第一行的颜色。
$cfgBgcolorTwo 字符串 [HTML 颜色]
表格行第二行的颜色。
phpMyAdmin配置之$cfgOrder 字符串 ["DESC"|"ASC"]
定义了当你点击字段名时,字段是以升序("ASC")显示还是以降序("DESC")显示。
$cfgShowBlob 布尔值
定义了当浏览一个表的内容时,是否显示BLOB字段。
$cfgShowSQL 布尔值
定义了是否显示phpMyAdmin所生成的sql查询语句。
$cfgColumnTypes 数组
MySQL列的所有可能的类型。大多数情况下你不需要编辑它。
phpMyAdmin配置之$cfgFunctions 数组
MySQL支持函数的列表。大多数情况下你不需要编辑它。
phpMyAdmin配置之$cfgAttributeTypes 数组
字段可能的属性。大多数情况下你不需要编辑它。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Unfortunately, people often delete certain contacts accidentally for some reasons. WeChat is a widely used social software. To help users solve this problem, this article will introduce how to retrieve deleted contacts in a simple way. 1. Understand the WeChat contact deletion mechanism. This provides us with the possibility to retrieve deleted contacts. The contact deletion mechanism in WeChat removes them from the address book, but does not delete them completely. 2. Use WeChat’s built-in “Contact Book Recovery” function. WeChat provides “Contact Book Recovery” to save time and energy. Users can quickly retrieve previously deleted contacts through this function. 3. Enter the WeChat settings page and click the lower right corner, open the WeChat application "Me" and click the settings icon in the upper right corner to enter the settings page.

Mobile games have become an integral part of people's lives with the development of technology. It has attracted the attention of many players with its cute dragon egg image and interesting hatching process, and one of the games that has attracted much attention is the mobile version of Dragon Egg. To help players better cultivate and grow their own dragons in the game, this article will introduce to you how to hatch dragon eggs in the mobile version. 1. Choose the appropriate type of dragon egg. Players need to carefully choose the type of dragon egg that they like and suit themselves, based on the different types of dragon egg attributes and abilities provided in the game. 2. Upgrade the level of the incubation machine. Players need to improve the level of the incubation machine by completing tasks and collecting props. The level of the incubation machine determines the hatching speed and hatching success rate. 3. Collect the resources required for hatching. Players need to be in the game

Setting font size has become an important personalization requirement as mobile phones become an important tool in people's daily lives. In order to meet the needs of different users, this article will introduce how to improve the mobile phone use experience and adjust the font size of the mobile phone through simple operations. Why do you need to adjust the font size of your mobile phone - Adjusting the font size can make the text clearer and easier to read - Suitable for the reading needs of users of different ages - Convenient for users with poor vision to use the font size setting function of the mobile phone system - How to enter the system settings interface - In Find and enter the "Display" option in the settings interface - find the "Font Size" option and adjust it. Adjust the font size with a third-party application - download and install an application that supports font size adjustment - open the application and enter the relevant settings interface - according to the individual

Mobile phone film has become one of the indispensable accessories with the popularity of smartphones. To extend its service life, choose a suitable mobile phone film to protect the mobile phone screen. To help readers choose the most suitable mobile phone film for themselves, this article will introduce several key points and techniques for purchasing mobile phone film. Understand the materials and types of mobile phone films: PET film, TPU, etc. Mobile phone films are made of a variety of materials, including tempered glass. PET film is relatively soft, tempered glass film has good scratch resistance, and TPU has good shock-proof performance. It can be decided based on personal preference and needs when choosing. Consider the degree of screen protection. Different types of mobile phone films have different degrees of screen protection. PET film mainly plays an anti-scratch role, while tempered glass film has better drop resistance. You can choose to have better

The performance comparison of PHP array key value flipping methods shows that the array_flip() function performs better than the for loop in large arrays (more than 1 million elements) and takes less time. The for loop method of manually flipping key values takes a relatively long time.

Methods for deep copying arrays in PHP include: JSON encoding and decoding using json_decode and json_encode. Use array_map and clone to make deep copies of keys and values. Use serialize and unserialize for serialization and deserialization.

Multidimensional array sorting can be divided into single column sorting and nested sorting. Single column sorting can use the array_multisort() function to sort by columns; nested sorting requires a recursive function to traverse the array and sort it. Practical cases include sorting by product name and compound sorting by sales volume and price.

The best practice for performing an array deep copy in PHP is to use json_decode(json_encode($arr)) to convert the array to a JSON string and then convert it back to an array. Use unserialize(serialize($arr)) to serialize the array to a string and then deserialize it to a new array. Use the RecursiveIteratorIterator to recursively traverse multidimensional arrays.
