Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm trying to create Mysql database for Drupal according to these instructions
" First, you must create a new database for your Drupal site (here, 'databasename' is the name of the new database):

mysqladmin -u username -p create databasename

I'm using Ubuntu.

After the command

$ mysqladmin -u xralf -p create ralfdb

it wrote this error

mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'xralf'@'localhost' (using password: YES)'

Could you help me with this problem?

thank you

share|improve this question
up vote 2 down vote accepted

The username needs to be for a username that has the right to create a new database i believe - for a fresh install - most likely root

this should walk you through it

share|improve this answer
Thank you, root helped. – xralf Mar 18 '11 at 14:13
if its the right answer , select it as such. I get a small reputation boost, and it lets future searchers know that's the right answer. – Journeyman Geek Mar 18 '11 at 14:39

Alternatively, you can just use Bitnami Drupal Stack, which installs mysql and all dependencies with a simple graphical wizzard.

Or you could install LAMPStack, which serves as a common infrastructure, then download the Drupal Stack module and install it (and any other apps you find there as modules, sharing the same LAMPStack as a base. )

share|improve this answer
Thank you for interesting alternatives, but I would like to continue with what I began. – xralf Mar 18 '11 at 11:35

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.