Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create database. I know that I should use the following code:

mysqladmin -h localhost -u {username} -p create lrs

I don't know if something should be replaced with username located between '{' and '}' in the above code. Please help me. Thank you.

share|improve this question
up vote 3 down vote accepted


mysqladmin -h localhost -u YOURMYSQLUSERNAME -p create lrs

replacing YOURMYSQLUSERNAME with either root or an authorized user.

share|improve this answer
I tried what you said and got the message Enter password: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user '{root}'@'localhost' (using password: YES)'. – user543489 Apr 1 '13 at 17:45
Did you configure the database server? Or is it not your database server? – Thomas Ward Apr 1 '13 at 17:48
are you able to login at all 'mysql -u root -p' does this allow you to open the mysql cli? – wlraider70 Apr 1 '13 at 19:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.