广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >Windows环境下phpMyAdmin的安装配置方法
  • 932
分享到

Windows环境下phpMyAdmin的安装配置方法

2024-04-02 19:04:59 932人浏览 薄情痞子
摘要

PHPMyAdmin是一款很受欢迎的Mysql管理工具,windows下的安装配置方法如下: 去下载XAMPP包,里面会有配置好的phpMyAdmin环境 https://www.apachefriend

PHPMyAdmin是一款很受欢迎的Mysql管理工具windows下的安装配置方法如下:

XAMPP,里面会有配置好的phpMyAdmin环境
https://www.apachefriends.org/index.html

下载好安装包后,直接安装

安装完成后,会自动弹出控制台窗口,在以后的使用中,可以点击安装目录下面的控制台执行程序来启动控制台
xampp-control.exe

点击Apache和MySQL模块后的Start按钮来启动服务

Windows环境下phpMyAdmin的安装配置方法

启动的Apache过程中,有时候因为监听端口冲突,会报错而启动失败,类似的错误信息如下:
17:09:04  [Apache] Error: Apache shutdown unexpectedly.
17:09:04  [Apache] This may be due to a blocked port, missing dependencies, 
17:09:04  [Apache] improper privileges, a crash, or a shutdown by another method.
17:09:04  [Apache] Press the Logs button to view error logs and check
17:09:04  [Apache] the Windows Event Viewer for more clues
17:09:04  [Apache] If you need more help, copy and post this
17:09:04  [Apache] entire log window on the forums
17:09:12  [Apache] Problem detected!
17:09:12  [Apache] Port 443 in use by ""E:\Program Files (x86)\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 2952!
17:09:12  [Apache] Apache WILL NOT start without the configured ports free!
17:09:12  [Apache] You need to uninstall/disable/reconfigure the blocking application
17:09:12  [Apache] or reconfigure Apache and the Control Panel to listen on a different port

对于这个错误,解决方法是更换监听的端口,点击进行Apache配置文件httpd-ssl.conf
Windows环境下phpMyAdmin的安装配置方法

修改监听的端口
#
# When we also provide SSL we have to listen to the 
# standard Http port (see above) and to the HTTPS port
#
Listen 4450


##

修改端口后,再次启动Apache,直到正常启动

Apache和mysql服务均成功启动后,通过本地网页进入管理界面
http://192.168.8.99

Windows环境下phpMyAdmin的安装配置方法


点击页面右上角的phpMyAdmin

Windows环境下phpMyAdmin的安装配置方法

默认是不需要密码,即可连接到数据库;如果修改了root用户的密码,则需要编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,更改里面的连接密码
Windows环境下phpMyAdmin的安装配置方法

默认连接的是本地的MySQL服务器,如果我们想连接多台MySQL服务器,可以编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,增加数据库。
下面配置参数中,second server是仿照first server增加的数据库配置文件。

<?php

$cfg['blowfish_secret'] = 'xampp';


$i = 0;


$i++;


$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['passWord'] = 'root';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';


$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';


$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';


$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['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';


$i++;


$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'neo';
$cfg['Servers'][$i]['password'] = 'neo';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';


$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';


$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';


$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['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';



?>

这样,在打开phpMyAdmin页面后,可以选择两个数据库
Windows环境下phpMyAdmin的安装配置方法

--结束END--

本文标题: Windows环境下phpMyAdmin的安装配置方法

本文链接: https://www.lsjlt.com/news/45236.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Windows环境下phpMyAdmin的安装配置方法
    phpMyAdmin是一款很受欢迎的MySQL管理工具,Windows下的安装配置方法如下: 去下载XAMPP包,里面会有配置好的phpMyAdmin环境 https://www.apachefriend...
    99+
    2022-10-18
  • Windows下Node.js安装及环境配置方法
    一、安装环境 1、本机系统:Windows 10 Pro(64位) 2、Node.js:v6.9.2LTS(64位) 二、安装Node.js步骤 1、下载对应你系统的Node.js版本:https://no...
    99+
    2022-06-04
    环境 方法 Windows
  • win7环境下phpmyadmin怎么安装配置
    小编给大家分享一下win7环境下phpmyadmin怎么安装配置,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!一、首先下载phpmyadmin二、解压到可以访问的web目录下(如果是虚拟空...
    99+
    2022-10-18
  • windows系统下node.js环境配置与安装的方法
    这篇文章主要介绍“windows系统下node.js环境配置与安装的方法”,在日常操作中,相信很多人在windows系统下node.js环境配置与安装的方法问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”win...
    99+
    2023-06-17
  • Windows下MongoDB的下载安装、环境配置
    下载MongoDB 进入官网页面,选择社区版: https://www.mongodb.com/download-center/community进行下载 点击安装包进行安装 根据需要选择完整安装和自定义安装 至此...
    99+
    2016-07-20
    Windows下MongoDB的下载安装 环境配置
  • Windows下Node.JS的安装及环境配置
    这篇文章主要讲解了“Windows下Node.JS的安装及环境配置”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Windows下Node.JS的安装及环境配...
    99+
    2022-10-19
  • 【Windows】Windows下wget的安装与环境变量配置
    1 wget安装 GNU Wget常用于使用命令行下载网络资源(包括但不限于文件、网页等)。 GNU Wget官网:GNU Wget GNU Wget for Windows:GNU Wget for Windows 安装时首先下载主安装包...
    99+
    2023-08-21
    windows linux 服务器
  • windows下怎么配置与安装node.js环境
    本篇内容介绍了“windows下怎么配置与安装node.js环境”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所...
    99+
    2022-11-30
    windows node.js
  • windows下怎么安装和配置php环境
    随着PHP在Web开发中的广泛应用,越来越多的开发者需要在Windows系统上搭建PHP环境。为了方便大家,本文将介绍在Windows系统下安装PHP的步骤。下载PHP安装包首先,你需要从PHP官网下载PHP的Windows安装包。在下载页...
    99+
    2023-05-14
    php windows
  • windows下node.js环境怎么配置与安装
    这篇文章主要讲解了“windows下node.js环境怎么配置与安装”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“windows下node.js环境怎么配置...
    99+
    2022-12-02
    windows node.js
  • windows下如何安装和配置php环境
    这篇文章主要讲解了“windows下如何安装和配置php环境”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“windows下如何安装和配置php环境”吧!下载PHP安装包首先,你需要从PHP官...
    99+
    2023-07-05
  • Windows和Linux环境下如何安装配置PHP
    本篇内容介绍了“Windows和Linux环境下如何安装配置PHP”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!PHP简介PHP即“超文本预...
    99+
    2023-06-29
  • Mac环境下nvm的安装与环境配置
    目录 1.nvm简介 2.nvm安装 3.配置nvm环境 1.nvm简介 nvm全称 Node Version Manager ,意思为node版本控制;它是一个命令行应用,可以快速地更新、安装、使用、卸载本机的全局 node.js 版...
    99+
    2023-09-01
    macos node.js nvm
  • PHP环境的安装与配置(Windows)
    PHP 一、下载地址二、安装步骤Apache安装PHP安装MySQL安装 三、检测环境安装是否成功ApacheMySQL修改数据库密码 四、整合Apache+PHP+MySQLA...
    99+
    2023-09-05
    php apache mysql
  • windows下手动安装phpmyadmin的方法
    小编给大家分享一下windows下手动安装phpmyadmin的方法,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!1、直接到官网...
    99+
    2022-10-18
  • PostgreSQL 在 Windows 环境下的安装方法和连接设置
    目录一、PostgreSQL 的安装和连接设置1.1 安装步骤1.2 修改设置文件二、通过 PostgreSQL 执行 SQL 语句2.1 连接 PostgreSQL(登录)2.2 执行 SQL 语句2.3 创建学习用的数据库2.4 连接...
    99+
    2018-02-05
    PostgreSQL Windows 环境下的安装方法和连接设置
  • ecs安装配置php环境的方法
    这篇文章主要介绍了ecs安装配置php环境的方法,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。配置方法:1、使用Xshell连接ECS服务器;2、执行“yum install...
    99+
    2023-06-14
  • windows下安装Canal配置方法
    Canal是一种开源的MySQL数据同步工具,它可以将MySQL的数据异步复制到Kafka、RocketMQ等消息中间件中。以下是在Windows系统下安装Canal的方法: 下载并安装Java SE环境,可在官网下载JDK安装包,安装过...
    99+
    2023-09-10
    java mysql 数据库
  • Windows下nodejs安装及环境配置的实战步骤
    目录【一:下载·安装】1.下载node.js2.安装2.1选择Node.js runtime 2.2这里不用选择安装其他的插件(如果选择会消耗2.3g流量的)...
    99+
    2023-02-06
    nodejs安装 为什么nodejs安装不成功 nodejs环境配置
  • 2022 最新 JDK17 下载、安装与环境配置(Windows)
    一、JDK 介绍 1.1 前置知识---Java 语言 Java语言是美国Sun公司(Stanford University Network),在1995年推出的高级的编程语言。2009年,Sun公司被甲骨文公司收购,所以我们现在访问ora...
    99+
    2023-09-26
    java jvm 开发语言
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作