PhpMyAdmin 2.x. X-document (installation and configuration)

Source: Internet
Author: User
Tags mysql manual php3 file sql error

Introduction: This is the phpMyAdmin 2. x. x-detailed page of the document (installation and configuration). It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 325318 'rolling = 'no'>

Preface
PhpMyAdmin can manage the entire MySQL Server (requires a Super User) or a single database. To implement the latter, you
The MySQL user needs to be properly set, and he can only read/write the permitted databases. Wait until you have read the related sections in the MySQL manual.

Quick installation

extract the phpMyAdmin package to a directory.
open config. inc. php3, modify $ pipeline servers [1] ['host'] according to your environment, $ incluservers [1] ['user'] and
$ incluservers [1] ['Password'] values. You can see all the configurable variables listed in the configuration section under "allow" and modify other parameters according to the
condition.
we recommend that you protect the directory after installing phpMyAdmin (unless on an enterprise intranet ). For example, you can use a HTTP-AUTH (with A. htaccess file ).
open the file in the browser: Install the host domain name/installation directory/index. php3. PhpMyAdmin should display a welcome screen and your data library.
.
phpMyAdmin supports multiple languages. If you want to change to the Chinese version, modify require ("English. Inc. php3") in config. Inc. php3 to require ("chinese_gb.inc.php3 "). In this way, the interface is Chinese. Great!
Save config. Inc. php3.
Installation notes
ensure that the phpMyAdmin directory is protected. No protection is provided by default! It should not be read by anyone, especially the search engine.
although I add a "nofollow" command to each page, some search engines may still access the link of the page.
imagine how AltaVista accessed a link named "Drop dtabase. You can
at http://www.apacheweek.com/features/userauthto fully understand the authentication certificate of apache. Another tutorial
In http://deepthought.texsci.edu/protected_dirs.html
php3 should be configured as magic_quotes = on.
Configuration
all configurable data is stored in config. Inc. php3.

$ Worker servers Array
PhpMyAdmin supports managing multiple mysql-servers from version 1.4.2. Therefore, the $ regionservers array is added for storage.
Logon Information of different servers. $ Incluservers [1] ['host'] contains the Host Name of the first server, $ incluservers [2] ['host']
Is the host of the second server, and so on. If you only have one server to manage, you can simply ignore the other $ ingress servers
The Host Name of the port.

$ Define servers [N] ['Port'] string
The Port Number of the nth MySQL server. The default value is 3300 (the null value is retained ).

$ Incluservers [N] ['host'] string
The Host Name of the nth MySQL server. For example, localhost.

$ Incluservers [N] ['adv _ auth'] Boolean Value
The basic or advanced authentication method should be used for this server. The basic authentication method ($ adv_auth = false) is a common practice:
The user name and password are stored in config. Inc. php3. Advanced authentication ($ adv_auth = true) is introduced from version 1.3.0.
Use http-auth to log on as a valid MySQL user. In config. Inc, you only need to provide a standard user who can connect
To MySQL and read the user/DB table of the MySQL database (see $ login servers [N] ['stduser']).

We recommend that you use advanced management:

When phpMyAdmin is running in a multi-user environment and people have shell processing permissions, you do not want to know the MySQL user name/password.
When you want users to access their own databases and do not want them to interfere with others.
Advanced authentication is secure because standard users only need read-only permissions on the MySQL database. MySQL passwords cannot be easily cracked.
The plaintext password of other users is not displayed for a common user.

$ Incluservers [N] ['user'] string
$ Login servers [N] ['Password'] string
When the basic authentication method is used, phpMyAdmin uses the user name/password to connect to the MySQL server. When using Advanced Certification providers
Is not required.

$ Incluservers [N] ['stduser'] string
$ Incluservers [N] ['stdpass'] string
When advanced authentication is used, the user name/password pair is used to verify the real user name/password pair. This user must be able to connect to MySQL,
You can also read the user table of the MySQL database. This parameter is not required when basic authentication is used.

$ Incluservers [N] ['only _ db'] string
If a database name is set, only this database is displayed to the user.

$ Incluservers [N] ['verbose '] string
PhpMyAdmin is only useful for multiple server portals. If this parameter is set, the string is displayed to replace the host name in the context menu on the home page. For example, if you want to display only some databases in the system, this may be useful.

$ Cfgmanualbase string
If it is set to a URL (which points to the MySQL document), a corresponding help link is created.

$ Define persistentconnections Boolean Value
Whether to use persistent connection (mysql_connect or mysql_pconnect ).

$ Define confirm Boolean Value
Whether a warning message ("are you sure you want to...") should be displayed when you are about to lose data ...").

$ Explain maxrows integer
The number of records displayed when you browse a result set. If the result set contains more data, the link to the previous or back pages is displayed.

$ Cfgmaxinputsize integer
When you add a new record to a table, edit the field size.

$ Cfgborder integer
The size of the table boundary.

$ Cfgthbgcolor string [HTML color]
Used in the color of the header.

$ Cfgbgcolorone string [HTML color]
The color of the first row of the table.

$ Cfgbgcolortwo string [HTML color]
The color of the second row of the table.

$ Cfgorder string ["DESC" | "ASC"]
Defines whether the field is displayed in ascending order ("ASC") or in descending order ("DESC") When you click the field name.

$ Empty showblob Boolean Value
Determines whether the Blob field is displayed when you browse the content of a table.

$ Explain showsql Boolean Value
Determines whether to display the SQL query statements generated by phpMyAdmin.

$ Columntypes Array
All possible MySQL column types. In most cases, you do not need to edit it.

$ Cfgfunctions Array
List of functions supported by MySQL. In most cases, you do not need to edit it.

$ Cfgattributetypes Array
Possible attributes of a field. In most cases, you do not need to edit it.

FAQ-FAQs
I cannot insert a new record to the table -- MySQL returns an SQL error.

Check SQL errors carefully. I found manyProgramThe specified field type is incorrect. Common Errors include:

No size specified when using varchar
The size is specified using text or blob.
In addition, check the syntax section in the MySQL manual to confirm that your syntax is correct.

PhpMyAdmin cannot connect to MySQL. What's wrong?

Or PHP installation problems or your username/password is incorrect. Compile a small script using mysql_connect.
Whether it can work. If not, it may be that MySQL has not been compiled in PHP.

I cannot edit the table content, although readme says this is a special feature of phpMyAdmin.

PhpMyAdmin only allows you to edit the content of a table with the primary key or unique key value.

When advanced authentication management is used, phpMyAdmin always provides "Access Denied )".

There may be several reasons:

$ Stduser/$ stdpassword is incorrect. Disable $ adv_auth and use this username and password to connect to MySQL.
The user name/password specified in the logon dialog box is incorrect. Try the same method above to see if it can work.
You have created a security mechanism for the phpMyAdmin installation directory, for example, the. htaccess file. This may interfere with phpMyAdmin's recognition.
Certificate Management, then delete it.
I want to help phpMyAdmin development. What should I do?

The following method is preferred for new developers:

Obtain the current CVS on anonymous CVs:
CVS-D: pserver: anon@www.htmlwizard.net:/usr/local/cvsroot Login
[Password: phpMyAdmin]
CVS-D: pserver: anon@www.htmlwizard.net:/usr/local/cvsroot checkout phpMyAdmin
[Create a New subdirectory named phpMyAdmin]
Add your stuff
Send the modified file to me (tar or gzip) and grant the write permission to the CVS tree to experienced phpMyAdmin users.
Contributed by developers.

Take a look at the developers file.
Is there any good way to make phpMyAdmin more secure against malicious attacks?

It depends on your system. If you are running a server that cannot be used by others, use the directory protection binding of the Web server.
This is enough (for example, you can use the. htaccess file for Apache ). If other users can access your service through telnet
To save the MySQL password in plain text in your Config. Inc. php3 file. In this case, you should
This uses the advanced authentication function of phpMyAdmin.

How can I insert a null value to my table?

Enter "null" (no quotation marks) as the field value. This is particularly useful for timestamps or automatically adding fields.

I am an ISP supplier. Can I install phpMyAdmin copy of a master? Or do I need to install one for every customer?

From version 2.0.3, you can install a master phpMyAdmin copy for all your users. This feature is developed
Proposed by netcologne GmbH. In this way, you must set the MySQL user reasonably and set the advanced authentication method of phpMyAdmin. When authenticated
When a user is using phpMyAdmin, perform these steps:

Select All records whose usernames/passwords match the applied user from the mysql. User table. If no record is returned, authentication fails.
Otherwise, phpMyAdmin continues step 1.
If your global select_priv is "N" (that is, you are not allowed to access all databases), phpMyAdmin searches for MySQL. DB.
Table to find records of select_priv = "Y" for this user. If no record is found, authentication fails. Otherwise, phpMyAdmin
Displays all databases that can be viewed by users.
If your global select_priv is "Y", all the databases in the system are displayed.

This means you need to add users to the MySQL database as follows:

Insert into user (host, user, password, select_priv, primary, update_priv, delete_priv, create_priv, drop_priv, primary, shutdown_priv, primary, file_priv, grant_priv, primary, index_priv, alter_priv) values ('localhost', 'foo', password ('bar'), 'n ', 'N', 'n', 'n ')
Insert into dB (host, DB, user, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, grant_priv, values, index_priv, alter_priv) values ('localhost ', 'foo _ db', 'foo', 'y ','','', '','')

In this way, for user Foo, only the "foo_db" library will be displayed.

PhpMyAdmin home: http://www.htmlwizard.net/phpMyAdmin/

"PhpMyAdmin 2. x. x-document (installation and configuration)"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/325318.html pageno: 14

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.