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?
Steps for phpmyadmin GUI: Select your Database name -> Privileges (here you can see your Privileges). Save this answer.
So for example, to show MySQL users' username, password and host, we'll modify the sql query to accordingly as such: mysql> select user, password, host from mysql. user; The above sql query will present you with a list of users and their respective user name, password and database host.
The default user for MySQL is root and by default it has no password. If you set a password for MySQL and you can't recall it, you can always reset it and choose another one.
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
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With