简体   繁体   English

phpMyAdmin 在哪里存储 phpMyAdmin 用户密码?

[英]Where does phpMyAdmin store the phpMyAdmin user password?

During the setup of phpMyAdmin, a phpMyAdmin user was created and I can see the user when I look at the phpMyAdmin database privileges.在 phpMyAdmin 的设置过程中,创建了一个 phpMyAdmin 用户,当我查看 phpMyAdmin 数据库权限时,我可以看到该用户。 Which PHP file stores the password for this user?哪个 PHP 文件存储了该用户的密码?

Paul, there is no such thing as a phpMyAdmin user.保罗,没有 phpMyAdmin 用户这样的东西。 phpMyAdmin is a front-end for MySQL, so we're talking about MySQL users. phpMyAdmin 是 MySQL 的前端,所以我们谈论的是 MySQL 用户。 In MySQL, users and their password are stored in a database called "mysql".在 MySQL 中,用户及其密码存储在名为“mysql”的数据库中。 More details at http://dev.mysql.com/doc/refman/5.5/en/privilege-system.html .更多详细信息,请访问http://dev.mysql.com/doc/refman/5.5/en/privilege-system.html

In phpMyAdmin's documentation, there is a discussion about different authentication modes, see http://docs.phpmyadmin.net/en/latest/setup.html#using-authentication-modes .在 phpMyAdmin 的文档中,有关于不同身份验证模式的讨论,请参阅http://docs.phpmyadmin.net/en/latest/setup.html#using-authentication-modes

If configured properly, phpMyAdmin creates a database and a user for this database.如果配置正确,phpMyAdmin 会为该数据库创建一个数据库和一个用户。 The database is to store visuals for the phpMyAdmin "Database Designer".数据库用于存储 phpMyAdmin“数据库设计器”的视觉效果。

If you installed phpMyAdmin on Ubuntu through the aptitude package manager, the username and password for the phpmyadmin database is stored in plaintext in this file:如果您通过 aptitude 包管理器在 Ubuntu 上安装了 phpMyAdmin,则 phpmyadmin 数据库的用户名和密码以明文形式存储在此文件中:

/etc/phpmyadmin/config-db.php

while installing there is no password specified for root but you can specify it to secure.安装时没有为 root 指定密码,但您可以指定它以确保安全。 when you specify it is stored as a text file in security folder of you server.当您指定时,它会作为文本文件存储在您服务器的安全文件夹中。 In Xampp server for windows C:>xampp>Security>mysqlrootpassword.txt在 Windows 的 Xampp 服务器中 C:>xampp>Security>mysqlrootpassword.txt

Installed Phpmyadmin on Linux Mint 19 via a package, but the users and password would not open the installed Phpmyadmin .The file: /etc/phpmyadmin/config-db.php could not be opened by Vim.通过包在 Linux Mint 19 上安装了 Phpmyadmin,但用户和密码无法打开已安装的 Phpmyadmin。文件:/etc/phpmyadmin/config-db.php 无法被 Vim 打开。 It is the one file that cannot be opened and with a big nasty cross at the based of the closed file.它是一个无法打开的文件,并且在关闭的文件的基础上有一个令人讨厌的大十字。 However,I found a workaround for Debian (Ubuntu, Mint, etc.) where there is a second admin account automatically generated by the system called: debian-sys-maint.但是,我找到了 Debian(Ubuntu、Mint 等)的解决方法,其中有一个由系统自动生成的第二个管理员帐户,名为:debian-sys-maint。 In /var/run/mysqld/mysqld.sock You can see debian-sys-main as user (and should not change) and its password via: sudo nano /etc/mysql/debian.cnf I would still like to to be able to edit /etc/phpmyadmin/config-db.php在 /var/run/mysqld/mysqld.sock 你可以看到 debian-sys-main 作为用户(并且不应该改变)和它的密码: sudo nano /etc/mysql/debian.cnf 我仍然希望能够编辑 /etc/phpmyadmin/config-db.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM