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

link|improve this question

80% accept rate
feedback

2 Answers

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

link|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
feedback

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

link|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
feedback

Your Answer

 
or
required, but never shown

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