php mysql phpmyadmin 数据库用户密码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3266524/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 09:10:52  来源:igfitidea点击:

mysql phpmyadmin user password for database

phpmysqlphpmyadmin

提问by NULL

i am using phpmyadmin; i created a database; now i want to locate the username and password for this new database i created. note, i am not sys admin, i am only the developer, but i do have access to create db on mysql in phpmyadmin. does my sys admin needs to tell me the username and password to access this db, or i can telnet and get it?

我正在使用 phpmyadmin;我创建了一个数据库;现在我想找到我创建的这个新数据库的用户名和密码。请注意,我不是系统管理员,我只是开发人员,但我确实有权在 phpmyadmin 中的 mysql 上创建数据库。我的系统管理员是否需要告诉我访问这个数据库的用户名和密码,或者我可以通过 telnet 获取它?

采纳答案by James

In MySQL creating a database doesn't automatically create a user to go with it. You must explicitly create the user and grant acess.

在 MySQL 中,创建数据库不会自动创建一个用户来使用它。您必须明确创建用户并授予访问权限。

http://dev.mysql.com/doc/refman/5.1/en/adding-users.html

http://dev.mysql.com/doc/refman/5.1/en/adding-users.html

回答by Amirouche Douda

Steps for phpmyadmin GUI:

phpmyadmin GUI 的步骤:

Select your Database name -> Privileges (here you can see your Privileges).

选择您的数据库名称 -> 权限(在这里您可以看到您的权限)。

if you want change password click on the edit privileges icon in the action column

如果您想更改密码,请单击操作栏中的编辑权限图标

回答by Adirael

You can access that database with the user/password used to login on the phpMyAdmin.

您可以使用用于登录 phpMyAdmin 的用户/密码访问该数据库。

You can also create new users (if you have permission to) under the tab Privileges > Add new User. Here you can create pairs of user-database with the same name and auto-permission-granting.

您还可以在选项卡权限 > 添加新用户下创建新用户(如果您有权限)。在这里,您可以创建具有相同名称和自动授予权限的用户数据库对。

回答by webbiedave

In your situation, it is highly likely that the login you used to create the database can be used to access the database.

在您的情况下,您用来创建数据库的登录名很可能可用于访问数据库。