简体   繁体   English

mysql phpmyadmin数据库的用户密码

[英]mysql phpmyadmin user password for database

i am using phpmyadmin; 我正在使用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. 请注意,我不是sys admin,我只是开发人员,但我确实有权在phpmyadmin中创建mysql上的db。 does my sys admin needs to tell me the username and password to access this db, or i can telnet and get it? 我的系统管理员是否需要告诉我访问此数据库的用户名和密码,或者我可以telnet并获取它?

In MySQL creating a database doesn't automatically create a user to go with it. 在MySQL中创建数据库不会自动创建用户使用它。 You must explicitly create the user and grant acess. 您必须明确创建用户并授予访问权限。

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

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 如果要更改密码,请单击操作列中的编辑权限图标

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. 在这里,您可以创建具有相同名称和自动权限授予的用户数据库对。

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

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

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