Phpmyadmin安装配置方法图解教程
Phpmyadmin是现在大多数php mysql开发者使用的一款WEB数据库管理工具了,Phpmyadmin安装配置方法也是非常的简单,下面我来给大家介绍Phpmyadmin安装配置方法图解,有需要了解的朋友可参考。
分析
找到 /libraries/config.default.php文件(旧版本是根目录下的config.inc.php文件),用写字板(不要用记事本,这是UTF8编码)进行编辑。
4、查找 $cfg['PmaAbsoluteUri']
修改为你将上传到空间的phpMyAdmin的网址
如:$cfg['PmaAbsoluteUri'] = ‘http://www.xxx.com/phpmyadmin/’;
5、查找 $cfg['Servers'][$i]['host'] = ‘localhost’;(通常用默认,也有例外,可以不用修改)
6、查找 $cfg['Servers'][$i]['auth_type'] = ‘config’;
在自己的机子里调试用config;如果在网络上的空间用cookie,这里我们既然在前面已经添加了网址,就修改成cookie ,这里建议使用cookie.
7、查找 $cfg['Servers'][$i]['user'] = ‘root’; // MySQL user( 用户名,一般这里随便填几个字母就可以了; 特殊情况下,自己机里用root,在网上一般为你的ftp用户名,虚拟主机提供商会告诉你的,一般不要修改.)
8、查找 $cfg['Servers'][$i]['password'] = ”; // MySQL password (only needed 留空就可以了)
9、查找 $cfg['Servers'][$i]['only_db'] = ”; // If set to a db-name, only(你只有一个数据就设置一下,设置为你的数据库名;如果你想架设服务器,那么建议留空)
10、查找 $cfg['DefaultLang'] = ‘zh’; (这里是选择语言,zh代表简体中文的意思)
11、查找$cfg['blowfish_secret'],请在$cfg['blowfish_secret'] = ‘ ‘;的等号里面设置你网站的cookie(cookie也就是访问phpmyadmin的域名),例如:$cfg['blowfish_secret'] = ‘www.xinnethz.net’;。
phpmyadmin的链接表的额外特性尚未激活问题如何解决?
回到上图我们看到尽管phpmyadmin配置完成可以使用了,但是底部仍然提示有部分配置工作没有完成,其中一条提示:链接表的额外特性尚未激活,那么如何解决呢?
首先,点击导入链接,上传scripts/create_tables.sql并执行,创建phpmyadmin数据库。
其次,在phpmyadmin配置文件config.default.php中找到
代码如下 | 复制代码 |
$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['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; |
在phpmyadmin配置文件中默认这些变量都是空的,你只需要根据注释对变量进行赋值即可。
完成上述配置操作后,关闭游览器,重新登录即可。
phpmyadmin配置文件现在需要一个短语密码如何解决?
在phpmyadmin配置文件config.default.php中找到
代码如下 | 复制代码 |
|
此处我赋值为leapsoul.cn,这个密码用于Cookies的加密
phpmyadmin登录方式说明
在phpmyadmin3中,总共有四种登录方式
config:直接输入phpmyadmin远程登录地址即可,只要在配置文件中设置用户名密码即可。
http:弹出对话框,输入用户名和密码后进入
signon:类似于页面跳转的登录方式,同时需要设定$cfg['Servers'][$i]['SignonURL'],当你输入phpmyadmin的远程登录地址后会自动跳转到signonURL设定的网址。
cookie:也就是phpmyadmin配置时候的登录方式。
至此整个phpmyadmin3的安装和配置工作就算完成了,你可以体验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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

One of the major changes introduced in MySQL 8.4 (the latest LTS release as of 2024) is that the "MySQL Native Password" plugin is no longer enabled by default. Further, MySQL 9.0 removes this plugin completely. This change affects PHP and other app

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

CMS stands for Content Management System. It is a software application or platform that enables users to create, manage, and modify digital content without requiring advanced technical knowledge. CMS allows users to easily create and organize content

Arrays are linear data structures used to process data in programming. Sometimes when we are processing arrays we need to add new elements to the existing array. In this article, we will discuss several ways to add elements to the end of an array in PHP, with code examples, output, and time and space complexity analysis for each method. Here are the different ways to add elements to an array: Use square brackets [] In PHP, the way to add elements to the end of an array is to use square brackets []. This syntax only works in cases where we want to add only a single element. The following is the syntax: $array[] = value; Example
