phpMyAdmin安装与配置使用方法
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,你可以很快就入门。

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

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

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 latest version

SublimeText3 Chinese version
Chinese version, very easy to use