Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Problem with database creation.

Problem with database creation.

Added by Semyon Sobolev over 11 years ago

Probably my question is silly, but I need some help to understand what could be wrong in my configuration.

I’m using Ubuntu 12.04, 64 bit.
Here is my database.yml

production:
  adapter: mysql
  database: openproj
  host: localhost
  username: openproj
  password: openproj
  encoding: utf8

development:
  adapter: mysql
  database: opendev
  host: localhost
  username: openproj
  password: openproj
  encoding: utf8

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: opentest
  host: localhost
  username: openproj
  password: openproj
  encoding: utf8

When I run rake db:create:all
I get an error.

Database creation error.

What should I investigate or configure to resolve this problem?

Thank you!


Replies (4)

RE: Problem with database creation. - Added by Semyon Sobolev over 11 years ago

I’ve changed username in database.yml to root and the problem is solved.

But I don’t want to use root sql user for OpenProject, how can I fix this?

RE: Problem with database creation. - Added by Philipp Tessenow over 11 years ago

Hi Semyon,

do you use OpenProject 2.4 (stable) or the OpenProject beta (3.0) ? The installations instructions differ depending on which version you use.

Maybe you can get some insight from the installation instructions for OpenProject 3.0 for Ubuntu 12.04, especially step 8 “Configure your DBMS”.

yours,
Philipp

RE: Problem with database creation. - Added by Philipp Tessenow over 11 years ago

Also, google told me that the following link might be interesting for you:

http://stackoverflow.com/questions/5575876/cannot-rake-dbcreateall-couldnt-create-database-for-encoding-utf8

RE: Problem with database creation. - Added by Semyon Sobolev over 11 years ago

Thank tou, Philipp.

It was my mistake - wrong permissions for SQL user. But the error confused me.

Philipp Tessenow wrote:

Also, google told me that the following link might be interesting for you:

http://stackoverflow.com/questions/5575876/cannot-rake-dbcreateall-couldnt-create-database-for-encoding-utf8

  • (1 - 4/4)
Loading...