安装过程中出现 phpmyadmin 错误“指定了‘端口’的空值." [英] phpmyadmin error during installation "Empty value for 'port' specified."

查看:28
本文介绍了安装过程中出现 phpmyadmin 错误“指定了‘端口’的空值."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用 ubuntu 14.04/mysql 5.7.12 在我的 digitalocean droplet 上安装 phpmyadmin.我有一个使用 apache 作为网络服务器的 LAMP 堆栈.

I have been trying to install phpmyadmin on my digitalocean droplet using ubuntu 14.04 / mysql 5.7.12 . I have a LAMP stack with apache as the web server.

在安装过程中,我不断收到此处显示的错误.E

During installation I keep getting the error shown here. E

我对 phpmyadmin 很陌生,想知道为什么我一直收到这个.以前使用旧版本的 mysql 安装 phpmyadmin 没有错误.我正在尝试以非 root sudo 用户身份安装它.

I am pretty new to phpmyadmin and wondering why I keep getting this. Previously installing phpmyadmin with an older version of mysql was error free. I am trying to install it as a non-root sudo user.

任何方向或建议将不胜感激.

Any direction or suggestions will be greatly appreciated.

推荐答案

我的机器配置- Ubuntu 16.04- MySQL 5.7.13- PHP 7.0.8- Apache 2.4.18

My machine configuration - Ubuntu 16.04 - MySql 5.7.13 - PHP 7.0.8 - Apache 2.4.18

编辑文件/etc/dbconfig-common/phpmyadmin.conf,修改

Edit the file /etc/dbconfig-common/phpmyadmin.conf, changing

dbc_dbport=''dbc_dbport='0'

编辑文件并保存后,如果您仍在使用 dbconfig-common 向导,请选择重试;如果不运行 sudo dpkg-reconfigure phpmyadmin(当询问您是否要为 phpmyadmin 重新安装数据库时选择 )并正常继续而不更改任何值.如果您想更改某个值,请在您之前编辑过的文件中进行.

After editing the file and saving it, if you are still on the dbconfig-common wizard select retry; if not run sudo dpkg-reconfigure phpmyadmin (choose Yes when asked you if you want to Reinstall database for phpmyadmin) and continue normally without changing any value. If you want to change some value do it in the file that you have edited before.

当配置窗口询问您要对现有配置文件做什么时,选择保留当前安装的本地版本.

When configuration window asks what you want to do with existing configuration file choose Keep the local version currently installed.

此时您可以检查差异,并且只有那些必须存在于文件中的差异.

At this point you can check the differences and only those must exist that you made in the file.

这篇关于安装过程中出现 phpmyadmin 错误“指定了‘端口’的空值."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆