Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql phpmyadmin user password for database

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?

like image 536
NULL Avatar asked Jul 16 '10 15:07

NULL


People also ask

How do I find my database password in phpMyAdmin?

Steps for phpmyadmin GUI: Select your Database name -> Privileges (here you can see your Privileges). Save this answer.

How do I find MySQL database username and password?

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.

What is the password for MySQL database?

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.


3 Answers

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

like image 153
Amirouche Douda Avatar answered Oct 18 '22 15:10

Amirouche Douda


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.

like image 30
Adirael Avatar answered Oct 18 '22 14:10

Adirael


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

like image 28
James Avatar answered Oct 18 '22 15:10

James