Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

Try

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 W. 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

 
discard

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.