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

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

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

  • 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 clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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