ubuntu 16.04 install phpmyadmin

  • $ apt install phpmyadmin
  • 安装时出现一个错误:
    An error occurred while installing the database:

│ mysql said: mysql: [Warning] mysql: Empty value for 'port' specified.
│ Will throw an error in future versions ERROR 1819 (HY000) at line 1:
│ Your password does not satisfy the current policy requirements . Your
│ options are:
│ * abort - Causes the operation to fail; you will need to downgrade,
│ reinstall, reconfigure this package, or otherwise manually intervene
│ to continue using it. This will usually also impact your ability to
│ install other packages until the installation failure is resolved.
│ * retry - Prompts once more with all the configuration questions
│ (including ones you may have missed due to the debconf priority
│ setting) and makes another attempt at performing the operation.
│ * retry (skip questions) - Immediately attempts the operation again,
│ skipping all questions. This is normally useful only if you have
│ solved the underlying problem since the time the error occurred.
│ * ignore - Continues the operation ignoring dbconfig-common errors.
│ This will usually leave this package without a functional database.
  • 详细信息日志:
    Preconfiguring packages ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Selecting previously unselected package phpmyadmin.
(Reading database ... 229335 files and directories currently installed.)
Preparing to unpack .../phpmyadmin_4%3a4.5.4.1-2ubuntu2_all.deb ...
Unpacking phpmyadmin (4:4.5.4.1-2ubuntu2) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up phpmyadmin (4:4.5.4.1-2ubuntu2) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version Creating config file /etc/phpmyadmin/config-db.php with new version
granting access to database phpmyadmin for phpmyadmin@localhost: failed.
error encountered creating user:
mysql said: mysql: [Warning] mysql: Empty value for 'port' specified. Will throw an error in future versions ERROR 1819 (HY000) at line 1: Your password does not satisfy the current policy requirements
dbconfig-common: phpmyadmin configure: aborted.
dbconfig-common: flushing administrative password
Automatic configuration using dbconfig-common failed!
  • 端口问题通过这篇文章解决了,原因是mysql5.7更改了某些行为,导致phpmyadmin的端口配置失效了。

  • 继续执行,特么又冒出了新的问题:

    An error occurred while installing the database:                           │
    │ │
    │ mysql said: ERROR 1819 (HY000) at line 1: Your password does not satisfy │
    │ the current policy requirements . Your options are: │
    │ * abort - Causes the operation to fail; you will need to downgrade, │
    │ reinstall, reconfigure this package, or otherwise manually intervene │
    │ to continue using it. This will usually also impact your ability to │
    │ install other packages until the installation failure is resolved. │
    │ * retry - Prompts once more with all the configuration questions │
    │ (including ones you may have missed due to the debconf priority │
    │ setting) and makes another attempt at performing the operation. │
    │ * retry (skip questions) - Immediately attempts the operation again, │
    │ skipping all questions. This is normally useful only if you have │
    │ solved the underlying problem since the time the error occurred. │
    │ * ignore - Continues the operation ignoring dbconfig-common errors. │
    │ This will usually leave this package without a functional database.
  • 搜索到这篇文章,我看到了这个:

    Assuming that the validate_password plugin is installed, it implements three levels of password checking: LOW, MEDIUM, and STRONG. The default is MEDIUM; to change this, modify the value of validate_password_policy. The policies implement increasingly strict password tests. The following descriptions refer to default parameter values, which can be modified by changing the appropriate system variables.

    LOW policy tests password length only. Passwords must be at least 8 characters long.

    MEDIUM policy adds the conditions that passwords must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character.

    STRONG policy adds the condition that password substrings of length 4 or longer must not match words in the dictionary file, if one has been specified.

  • 看着挺眼熟的,哦,想起来了,我在安装mysql的时候运行过mysql_installation_security命令,当时,我还选了LOW选项。也就是说密码必须至少8个字符。

  • 果然重新配置之后,输入了8个字符的密码,就成功了。

  • 成功后的日志记录:

    dbconfig-common: phpmyadmin reconfigure: trying again.

    Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.

    dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf

    Replacing config file /etc/dbconfig-common/phpmyadmin.conf with new version

    Replacing config file /etc/phpmyadmin/config-db.php with new version

    granting access to database phpmyadmin for phpmyadmin@localhost: success.

    verifying access for phpmyadmin@localhost: success.

    dbconfig-common: dumping mysql database phpmyadmin to /var/tmp/phpmyadmin.phpmyadmin.2017-08-13-14.19.mysql.IwpX34.

    database does not exist.

    dbconfig-common: dropping old mysql database phpmyadmin.

    dropping database phpmyadmin: database does not exist.

    creating database phpmyadmin: success.

    verifying database phpmyadmin exists: success.

    populating database via sql... done.

    dbconfig-common: flushing administrative password

phpmyadmin的配置文件和项目文件在哪里?

  • /etc/phpmyadmin/apache.conf
  • /etc/phpmyadmin/config.inc.php
  • 突然想到项目目录可以到项目conf文件中去找啊!然后找到了
  • /usr/share/phpmyadmin

Ubuntu 16.04 安装 Phpmyadmin 出现的问题及解决的更多相关文章

  1. ubuntu 16.04 安装PhpMyAdmin

    首先,安装mysql $ sudo apt-get install mysql-server $ sudo apt-get install mysql-client 安装时输出root用户的密码 然后 ...

  2. Ubuntu 16.04安装Grub Customizer替代Startup-manager(解决找不到menu.lst,GRUB配置简单介绍)

    关于GRUB的介绍: http://baike.baidu.com/item/GRUB http://blog.csdn.net/bytxl/article/details/9253713 menu. ...

  3. ubuntu 16.04安装好后没声音的解决方法

    刚安装好Ubuntu16.04 后没声音,找了好多方法都不行,看到网上说通过安装pavucontrol和alsamixer调节解决,最后无意发现一个方法,总算是可以用了,在此记录一下.可能有的可以解决 ...

  4. Ubuntu 16.04 安装 Kodi v17 “Krypton” Alpha 2

    Ubuntu 16.04 安装 Kodi v17 “Krypton” Alpha 2:sudo add-apt-repository ppa:team-xbmc/xbmc-nightlysudo ap ...

  5. Ubuntu 16.04安装QQ国际版图文详细教程

            因工作需要,我安装了Ubuntu 16.04,但是工作上的很多事情需要QQ联系,然而在Ubuntu上的WebQQ很是不好用,于是在网上搜索了好多个Linux版本的QQ,然而不是功能不全 ...

  6. Ubuntu 16.04 安装Mysql 5.7 踩坑小记

    title:Ubuntu 16.04 安装Mysql 5.7 踩坑小记 date: 2018.02.03 安装mysql sudo apt-get install mysql-server mysql ...

  7. Ubuntu 16.04安装Matlab 2016b教程

    由于代码需要依赖Linux环境,只好尝试着装MATLAB,然而各种问题接踵而至,开始了由MATLAB引发的三天Linux探寻之旅-- 下载Matlab 2016b for Linux https:// ...

  8. ubuntu 16.04 安装 tensorflow-gpu 包括 CUDA ,CUDNN,CONDA

    ubuntu 16.04 安装 tensorflow-gpu 包括 CUDA ,CUDNN,CONDA 显卡驱动装好了,如图: 英文原文链接: https://github.com/williamFa ...

  9. ROS_Kinetic_01 在ubuntu 16.04安装ROS Kinetic 2017.01更新

    ROS_Kinetic系列学习(一),在ubuntu 16.04安装ROS Kinetic. Celebrating 9 Years of ROS! ubuntu16.04已经发布半年多了,ROS的K ...

随机推荐

  1. FTL页面常用到的一些方法combobox、combotree、datagrid

    参考文件:点击下载 1.combobox: (1).js 1)初始化combobox //相似度 $('#same').combobox({ //url:"<@s.url value= ...

  2. maple minimax函数

    numapprox[minimax] - minimax rational approximation Calling Sequence   minimax(f, x=a..b, [m, n], w, ...

  3. 【Android】14.2 外部文件存储和读取

    分类:C#.Android.VS2015: 创建日期:2016-02-27 一.简介 1.基本概念 内部存储的私有可用存储空间一般都不会很大,对于容量比较大的文件,例如视频等,应该将其存储在外部存储设 ...

  4. Google 商店:您的应用静态链接到的 OpenSSL 版本有多个安全漏洞。建议您尽快更新 OpenSSL

    安全提醒 您的应用静态链接到的 OpenSSL 版本有多个安全漏洞.建议您尽快更新 OpenSSL. 在开头为 1.0.1h.1.0.0m和 0.9.8za的 OpenSSL 版本中这些漏洞已得到修复 ...

  5. cocos2d-x 2.0通过CCAnimation实例获取CCSpriteFrame

    通过CCAnimation实例获取CCSpriteFrame,会出现类型转换问题.我们在创建一个animation的时候,经常遵循下面的步骤:1)create 一个CCArray对象A.2)通过A-& ...

  6. SCWS 中文分词

    SCWS 中文分词v1.2.3 开源免费的中文分词系统,PHP分词的上乘之选! 首页 下载 演示 文档 关于 服务&支持 API/HTTP 论坛 捐赠 源码@github 文档目录 SCWS- ...

  7. 在容器中使用erase函数,迭代器的处理

    在c++编程中,用到迭代器的时候,往往不知道如何删除当前迭代器指向的元素. erase函数:   返回下一个迭代器. 只使用vector的erase函数,记住,该函数是迭代器失效,返回下一个迭代器. ...

  8. gdb 初步学习记录

    客户有一段代码,一个死循环, 里面就一个 times(NULL) 函数,以及一个usleep, 运行了10分钟左右就会出现段错误. 现在用 gdb 调试看一下是哪一步出现了问题. 在Linux 虚拟机 ...

  9. KMP + 求相等前后缀--- POJ Seek the Name, Seek the Fame

    Seek the Name, Seek the Fame Problem's Link: http://poj.org/problem?id=2752 Mean: 给你一个字符串,求这个字符串中有多少 ...

  10. 关于Aspose强大的应用--EXECL

    protected void btnConfirg_Click(object sender, EventArgs e) { genExcel(); } //设置内容文字色 表中有一个蓝色文字列和绿色文 ...