Phpmyadmin

這些 debconf 問題的含義是什麼?

  • June 11, 2018

正如你所看到的結果debconf-get-selections | grep phpmyadmin

# MySQL application password for phpmyadmin:
phpmyadmin      phpmyadmin/mysql/app-pass       password
phpmyadmin      phpmyadmin/mysql/admin-pass     password
phpmyadmin      phpmyadmin/setup-password       password
phpmyadmin      phpmyadmin/app-password-confirm password
phpmyadmin      phpmyadmin/password-confirm     password
# Configure database for phpmyadmin with dbconfig-common?
phpmyadmin      phpmyadmin/dbconfig-install     boolean true
# MySQL username for phpmyadmin:
phpmyadmin      phpmyadmin/db/app-user  string  phpmyadmin
phpmyadmin      phpmyadmin/internal/reconfiguring       boolean false
phpmyadmin      phpmyadmin/reconfigure-webserver        multiselect
phpmyadmin      phpmyadmin/passwords-do-not-match       error
# Back up the database for phpmyadmin before upgrading?
phpmyadmin      phpmyadmin/upgrade-backup       boolean true
# Perform upgrade on database for phpmyadmin with dbconfig-common?
phpmyadmin      phpmyadmin/dbconfig-upgrade     boolean true
# Delete the database for phpmyadmin?
phpmyadmin      phpmyadmin/purge        boolean false
phpmyadmin      phpmyadmin/remote/port  string
# Reinstall database for phpmyadmin?
phpmyadmin      phpmyadmin/dbconfig-reinstall   boolean true
# MySQL database name for phpmyadmin:
phpmyadmin      phpmyadmin/db/dbname    string  phpmyadmin
phpmyadmin      phpmyadmin/install-error        select  abort
phpmyadmin      phpmyadmin/internal/skip-preseed        boolean false
# Connection method for MySQL database of phpmyadmin:
phpmyadmin      phpmyadmin/mysql/method select  Unix socket
phpmyadmin      phpmyadmin/mysql/admin-user     string  debian-sys-maint
# Host running the MySQL server for phpmyadmin:
phpmyadmin      phpmyadmin/remote/newhost       string
phpmyadmin      phpmyadmin/missing-db-package-error     select  abort
phpmyadmin      phpmyadmin/setup-username       string  admin
phpmyadmin      phpmyadmin/upgrade-error        select  abort
phpmyadmin      phpmyadmin/remove-error select  abort
# Host name of the MySQL database server for phpmyadmin:
phpmyadmin      phpmyadmin/remote/host  select  localhost
# Database type to be used by phpmyadmin:
phpmyadmin      phpmyadmin/database-type        select  mysql
# Deconfigure database for phpmyadmin with dbconfig-common?
phpmyadmin      phpmyadmin/dbconfig-remove      boolean true

那麼這些是什麼?:

phpmyadmin      phpmyadmin/mysql/admin-pass     password
phpmyadmin      phpmyadmin/setup-password       password

.../mysql/admin-pass是為了debian-sys-maint自動生成嗎?dbconfig-common 不會詢問有關這些密碼的任何問題,不是嗎?我已經搜尋了 phpmyadmin 的來源,所以它可能正在使用 debconf 模板作為數據庫,不是嗎?所以在那之後我搜尋了這個模板的 debconf 源,並且有這些行admin-pass即這裡),但如果這裡有人確切地知道他們的意思,它可能會更有效。

最好的問候,V7

我測試並可以確認:

  • phpmyadmin/mysql/admin-pass是mysql的root賬號密碼
  • phpmyadmin/mysql/app-pass(and phpmyadmin/app-password-confirm) 是phpmyadmin@localhost帳戶密碼

我猜(但我沒有證據):

  • phpmyadmin/password-confirm是相同的phpmyadmin/app-password-confirm
  • phpmyadmin/setup-passworddebian-sys-maint賬戶密碼

引用自:https://unix.stackexchange.com/questions/418017