Windows环境下phpMyAdmin的安装配置方法
发表于:2025-11-08 作者:千家信息网编辑
千家信息网最后更新 2025年11月08日,phpMyAdmin是一款很受欢迎的MySQL管理工具,Windows下的安装配置方法如下:去下载XAMPP包,里面会有配置好的phpMyAdmin环境https://www.apachefriend
千家信息网最后更新 2025年11月08日Windows环境下phpMyAdmin的安装配置方法phpMyAdmin是一款很受欢迎的MySQL管理工具,Windows下的安装配置方法如下:
去下载XAMPP包,里面会有配置好的phpMyAdmin环境
https://www.apachefriends.org/index.html
下载好安装包后,直接安装
安装完成后,会自动弹出控制台窗口,在以后的使用中,可以点击安装目录下面的控制台执行程序来启动控制台
xampp-control.exe
点击Apache和MySQL模块后的Start按钮来启动服务

启动的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
修改监听的端口
#
# 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

点击页面右上角的phpMyAdmin
默认是不需要密码,即可连接到数据库;如果修改了root用户的密码,则需要编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,更改里面的连接密码
默认连接的是本地的MySQL服务器,如果我们想连接多台MySQL服务器,可以编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,增加数据库。
下面配置参数中,second server是仿照first server增加的数据库配置文件。
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$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'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$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';
/*
* second server
*/
$i++;
/* Authentication type and info */
$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'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$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';
/*
* End of servers configuration
*/
?>
这样,在打开phpMyAdmin页面后,可以选择两个数据库
去下载XAMPP包,里面会有配置好的phpMyAdmin环境
https://www.apachefriends.org/index.html
下载好安装包后,直接安装
安装完成后,会自动弹出控制台窗口,在以后的使用中,可以点击安装目录下面的控制台执行程序来启动控制台
xampp-control.exe
点击Apache和MySQL模块后的Start按钮来启动服务

启动的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
修改监听的端口
#
# 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

点击页面右上角的phpMyAdmin
默认是不需要密码,即可连接到数据库;如果修改了root用户的密码,则需要编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,更改里面的连接密码
默认连接的是本地的MySQL服务器,如果我们想连接多台MySQL服务器,可以编辑F:\xampp\phpMyAdmin目录下的config.inc.php文件,增加数据库。
下面配置参数中,second server是仿照first server增加的数据库配置文件。
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$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'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$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';
/*
* second server
*/
$i++;
/* Authentication type and info */
$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'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$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';
/*
* End of servers configuration
*/
?>
这样,在打开phpMyAdmin页面后,可以选择两个数据库
配置
数据
数据库
文件
端口
服务
密码
控制台
目录
控制
监听
方法
服务器
错误
页面
管理
环境
成功
两个
信息
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
这个网络安全问题怎么回答
管理服务器怎么打开方式
网吧计费管理软件开发
军队手机网络安全宣传图片
超市系统数据库安全
基础软件开发考试题
苹果电话无法连接到服务器
杭州创业 his采用数据库
db2数据库查出所有表
sql数据库求开平方
郑州程序软件开发报价
女生网络安全教育资料
广州闻讯网络技术有限公司
java登录 数据库
数据库如何查入数据代码
wincc服务器连接图标是灰的
数据库技术从何时开始发展
sshd服务器进程
欧盟关税数据库如何使用
珠海线上培训软件开发
网络安全公司组织架构图
php如何选择数据库
管理服务器怎么打开方式
公司软件开发中的服务器
明日之后更新什么服务器好
招标 软件开发资质
服务器usb口不上电
网络安全安全形势分析会
电力网络安全标语
静安区无线网络技术供应