Forum Problems Installing LAMS: Error creating database


 
You may request notification for Error creating database.
Search: 

1: Error creating database
04/15/11 07:39 AM
[ Reply | Forward ]
Hi,

I am trying to install lams but getting the error ant build failed:Unable to create database".
My database is MySQL 5.1 up and running.

Appreciate your help.

Posted by mousam kumari

2: Re: Error creating database
In response to 1 04/22/11 04:59 PM
[ Reply | Forward ]
Hi Mousam,

What OS are you using?

You need to create the database *before* you try to install LAMS. So login as root into mysql and run:

> SET FOREIGN_KEY_CHECKS=0;
> DROP DATABASE IF EXISTS lams;
> CREATE DATABASE lams DEFAULT CHARACTER SET utf8;
> SET FOREIGN_KEY_CHECKS=1;
> GRANT ALL PRIVILEGES ON *.* TO lams@localhost IDENTIFIED BY 'somepasswordhere';
> REVOKE PROCESS,SUPER ON *.* from lams@localhost;
Then when LAMS prompts for a user and password for MySQL, just enter:

u: lams
p: somepasswordhere

Thanks,

ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to Problems Installing LAMS