• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Username and Password

 
deepak carter
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I dont know whether its a right place to ask a question Mysql however i should try.

Even though i am connected i still waould like to know what are my user name and

password for a database. Do you know any way that i can find my username and my

password. I would really appreciate any information for finding my username and

password.

i connect like this.

mysql -h localhost -u root -p
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically if a database is well designed there will not be a way to find out your password - I don't know of one in MySQL. You can probably get your username by querying "show processlist" where the host is your client machine (assuming you only have one connection from that host).
 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default user name for the database is root, and the password is prompted when during the setup of the mysql.

Please refer the docs for Mysql

http://dev.mysql.com/doc/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic