search
Homephp教程php手册phpMyAdmin安装与配置使用方法

phpMyAdmin安装与配置使用方法

Jun 13, 2016 am 10:15 AM
mysqlphpmyadminNoandInstructionsInstalldatabaseyesmanageConfiguration

phpMyAdmin是一个不错的mysql数据库管理WEB版的软件,只需要简单的配置一下就可以使用了,下面我来介绍phpMyAdmin安装与配置使用方法.

phpMyAdmin的安装

当然,无论是在本地测试还是在远程服务器上测试,都需要进行如下的文件配置才能正常使用phpMyAdmin。

首先,在下载解压下来的文件中有一个文件“config.sample.inc.php”,这是phpMyAdmin配置文件的样本文件,我们需要把该文件中的所有代码拷贝,新建一个文件“config.inc.php”,并将代码粘贴。文件config.inc.php是phpMyAdmin的配置文件,上传服务器时必须上传该文件。

对于config.inc.php文件,最重要的即是修改加入phpMyAdmin连接MySQL的用户名和密码。寻找到代码行:

 

 代码如下 复制代码
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

 

将“//”注释号删除,同时输入MySQL中配置的用户名和密码(远程服务器的请联系你的空间服务商),比如这里:

 

 代码如下 复制代码
$cfg['Servers'][$i]['controluser'] = 'leosn_com';
$cfg['Servers'][$i]['controlpass'] = '*********';

 


注意:如果需要通过远程服务器调试使用phpMyAdmin,则需要添加blowfish_secret内容定义Cookie,寻找到代码行:

 

 代码如下 复制代码
$cfg['blowfish_secret'] = '';

 

设置内容为COOKIE

 

 代码如下 复制代码
$cfg['blowfish_secret'] = 'leosn';

 

三,phpMyAdmin的使用

打开phpMyAdmin所在服务器目录,比如http://www.xxx .ccc/phpmyadmin/ ,继续输入MySQL用户的用户名和密码,进入。



选择相关数据库可看到数据库中的各表,可进行表、字段的增删改,可以导入、导出数据库信息。总之选择中文语系的phpMyAdmin,你可以很快就入门。



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

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)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use