Questions about the additional function of the phpMyAdmin link table that has not been activated _ PHP Tutorial

Source: Internet
Author: User
The append function of the phpMyAdmin link table has not been activated. I still did not manually configure the config file when installing phpMyAdmin, but used its setup function. The default value is used except for the server name and authentication method. When installing phpMyAdmin on the server, I still did not manually configure the config file, but used its setup function.
The default value is used except for the server name and authentication method.
The server name is entered at will, and the authentication method is changed to http.
In addition, on the PMA database page, click the pen next to the text box and fill in the default value.
(At this time, I have created a control user and entered the user name and password. I will talk about the creation method later)
After saving the settings, enter the root user name and password of MySQL and open the main screen of phpMyAdmin. the following error occurs:

Click here to see the following figure.


Note the following to solve this problem.
1. delete and copy the config file
This may not be the key to the problem, but I read the official documents after the problem occurs and then handled it.
After saving the settings on the setup screen, Copy./config. inc. php to the./root directory and delete the./config directory.
2. create databases and tables required for additional functions
There is a create_tables. SQL file in the./scripts folder. import it to MySQL and create the corresponding table.
Although the additional functions still have problems, you can use phpMyAdmin to manage MySQL. Therefore, the create_tables. SQL file is displayed in the following figure.

3. create a control user
I have created this before the problem occurs.
I used the MySQL command line tool to execute the SQL command.

The code is as follows:


Grant usage on mysql. * TO 'PMA' @ 'localhost' identified by 'pmapass ';
Grant select (
Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
Execute_priv, Repl_slave_priv, Repl_client_priv
) ON mysql. user TO 'PM' @ 'localhost ';
Grant select on mysql. db TO 'PM' @ 'localhost ';
Grant select on mysql. host TO 'PM' @ 'localhost ';
Grant select (Host, Db, User, Table_name, Table_priv, Column_priv)
ON mysql. tables_priv TO 'PMA' @ 'localhost ';
Grant select, INSERT, UPDATE, DELETE ON . * TO 'PMA' @ 'localhost ';


4. modify the config. inc. php file.
Because tracking is not set on the setup screen, the other items in the second figure become green after the above processing, but the last project is still red.
So I append the object to the config. inc. php file.
$ Cfg ['servers'] [$ I] ['tracking'] = 'PMA _ tracking ';
Such a line.
5. the configuration. inc. php file does not work.
After completing the settings from 1 to 3, when accessing the main screen, the settings of the second image are not immediately green.
To verify whether the modification to the config. inc. php file is effective, I changed one of the most important settings 'host' in the file and added a few.
Then, an error occurred while accessing phpMyAdmin. Then remove those a and access them again, except for the last tracking, the others are green.
Probably because of browser or apache cache problems. I haven't figured it out yet.

Bytes. The default value is used except for the server name and authentication method. Server...

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.