search
HomeDatabasephpMyAdminHow to start phpmyadmin installed by yum

How to start phpmyadmin installed by yum

After installing Apache, MySQL, and PHP, you can use the Remi source to install the latest version of phpMyAdmin.

(1) Install Remi source

CentOS 6.5 epel and remi source.

# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Source for CentOS 7.0.

# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

(2) Install phpMyAdmin

# yuminstall--enablerepo=remi--enablerepo=remi-php56phpmyadmin

(3) Configure phpMyAdmin

a. Modify /etc/phpMyAdmin/ config.inc.php:

Open the config.inc.php file and make the following modifications:

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $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['blowfish_secret'] = '';修改为$cfg['blowfish_secret'] = 'config';
$cfg['Servers'][$i]['controluser'] ='pma';把pma修改为你的帐号
$cfg['Servers'][$i]['controlpass'] ='pmapass';把pmapass设置为你的mysql登录密码
$cfg['blowfish_secret'] ='';添加短语密码,可是任意字符串例如:$cfg['blowfish_secret'] = 'abcd'修改以后,
以后登入phpMyAdmin就方便多了,但一定不要使用空密码。

b. Modify /etc/httpd/conf.d/phpMyAdmin.conf

This file is the access control file of phpMyAdmin to ensure remote access. Just modify it as follows:

<Directory /usr/share/phpMyAdmin/>
OrderDeny,Allow
#Deny  from All
Allow from All
</Directory>

(4) Use the command /etc/init.d/httpd restart to restart Apache. Test: visit http://ip address/phpMyAdmin/

The following problems may occur:

1. If the php-mcrypt package is not installed when installing php, an error message may appear. In this case, just install it:

yum -y install php-mcrypt

2 .phpMyAdmin access denied

Change the config of $cfg['Servers'][$i]['auth_type'] = 'config'; in the config.inc file to http, restart Apache, and access http: //ip address/phpMyAdmin/ will pop up a dialog box, you can enter the user name and password to enter phpMyAdmin.

3. If after modifying the above two steps, you are still prompted that phpMyAdmin refuses access, then it is likely that the cookie is to blame. Open the browser, select Tools, click Internet Options and then select General to delete cookies. Then visit http://ip address/phpMyAdmin/.

(5) After successfully logging in to phpMyAdmin, if "Configuration of pmadb... error" is prompted, perform the following operations:

a. Log in to mysql from the command line:

mysql -uroot -p

b. Create a new database named phpmyadmin:

CREATE DATABASE phpmyadmin

c. Import create_tables.sql in the sql directory under the PHPMyAdmin installation directory into the newly created database phpmyadmin:

use phpmyadmin
source /usr/share/phpMyAdmin/sql/create_tables.sql

d. Access phpMyAdmin. If it still doesn’t work, restart Apache and try again.

PHP Chinese website has a large number of free phpmyadmin introductory tutorials, everyone is welcome to learn!

The above is the detailed content of How to start phpmyadmin installed by yum. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MySQL, phpMyAdmin, and Database Administration: A GuideMySQL, phpMyAdmin, and Database Administration: A GuideApr 15, 2025 am 12:01 AM

MySQL and phpMyAdmin are powerful database management tools. 1.MySQL is an open source relational database management system, and phpMyAdmin is a MySQL management tool based on the Web. 2.MySQL works through the client-server model, and phpMyAdmin simplifies database operations. 3. Basic usage includes creating tables and data operations, and advanced usage involves stored procedures and triggers. 4. Common errors include SQL syntax errors, permission issues and performance bottlenecks. 5. Optimization techniques include reasonable use of indexes, optimized query, regular maintenance and backup and recovery.

phpMyAdmin: Unveiling Its Relationship to SQLphpMyAdmin: Unveiling Its Relationship to SQLApr 14, 2025 am 12:11 AM

phpMyAdmin implements the operation of the database through SQL commands. 1) phpMyAdmin communicates with the database server through PHP scripts, generates and executes SQL commands. 2) Users can enter SQL commands in the SQL editor for query and complex operations. 3) Performance optimization suggestions include optimizing SQL queries, creating indexes and using pagination. 4) Best practices include regular backups, ensuring security and using version control.

phpMyAdmin: Enhancing Database ProductivityphpMyAdmin: Enhancing Database ProductivityApr 13, 2025 am 12:04 AM

phpMyAdmin improves database productivity through an intuitive web interface: 1. Simplify the creation and management of databases and tables; 2. Support complex SQL queries and data operations; 3. Provide relationship view functions to manage table relationships; 4. Optimize performance and best practices to improve efficiency.

phpMyAdmin's Purpose: Managing MySQL Databases with EasephpMyAdmin's Purpose: Managing MySQL Databases with EaseApr 12, 2025 am 12:14 AM

phpMyAdmin is a web-based MySQL database management tool. 1. It supports basic CRUD operations and advanced features such as database design and performance optimization. 2. Run through the web server, accept user input and convert it to MySQL commands. 3. The basic usage includes creating a database, and the advanced usage supports query optimization. 4. Common errors such as insufficient permissions can be solved by checking user permissions. 5. Performance optimization includes index optimization, query optimization and database design.

The Roles of MySQL and phpMyAdmin: A Detailed BreakdownThe Roles of MySQL and phpMyAdmin: A Detailed BreakdownApr 11, 2025 am 12:14 AM

The roles of MySQL and phpMyAdmin are to store and manage data and provide user-friendly database management interfaces. MySQL performs data operations through SQL, phpMyAdmin interacts with MySQL through HTTP requests, and converts user operations into SQL commands.

phpmyadmin connection to databasephpmyadmin connection to databaseApr 10, 2025 pm 11:09 PM

How to connect to the database through phpMyAdmin: Visit the phpMyAdmin website and log in with credentials. Select the database to connect to. Under the Actions tab, select the Export option. Configure export settings and select format, table, and data range. Save the exported file. Select the Import tab in the target database and browse the exported files. Click the "Execute" button and use the "Query" tab to verify that the import is successful.

How to connect to oracle by phpmyadminHow to connect to oracle by phpmyadminApr 10, 2025 pm 11:03 PM

Connect phpMyAdmin to the Oracle database by following the steps: 1. Install the Oracle driver; 2. Create a database connection, including host, username, password, port, and type; 3. Save settings to establish a connection; 4. Select the connected Oracle database from phpMyAdmin to manage and use it.

phpmyadmin creates data tablephpmyadmin creates data tableApr 10, 2025 pm 11:00 PM

To create a data table using phpMyAdmin, the following steps are essential: Connect to the database and click the New tab. Name the table and select the storage engine (InnoDB recommended). Add column details by clicking the Add Column button, including column name, data type, whether to allow null values, and other properties. Select one or more columns as primary keys. Click the Save button to create tables and columns.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download

Atom editor mac version download

The most popular open source editor