views:

97

answers:

4

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?

A: 

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

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

James
If you have the right permissions you may be able to do this yourself, otherwise you will have to ask your sys admin to do it for you. Just suddenly thought, I'm not sure if phpMyAdmin does anything special when creating databases ...
James
thank you, but i don't have permissions. sys admin set it up for me. thanks again
Menew
A: 

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

webbiedave
A: 

You can access that database with the user/password used to login on the 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.

Adirael
A: 

Steps for 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

Amirouche Douda