Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6808723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:59:28+00:00 2026-05-26T19:59:28+00:00

OK, I just re-installed MySQL Servers 5.5(32bit to 64bit) on my Windows 7 64-bit

  • 0

OK, I just re-installed MySQL Servers 5.5(32bit to 64bit) on my Windows 7 64-bit machine. I then took the steps to use mysql2 for rails:

gem 'mysql2', '0.2.6'
gem 'rails', '3.0.7'

Step 1:

rake db:drop
Couldn't drop store_development : #<Mysql2::Error: Unknown database 'store_development'>

Strange because in the MySQL Workbench I only see the test database up.

Step 2:

$ rake db:migrate
rake aborted!
Unknown database 'store_development'

No idea why I get this error so I try to reset the database now.

Step 3:

rake db:reset
(in C:/store)
Couldn't drop store_development : #<Mysql2::Error: Unknown database 'store_development'>
store_test already exists
-- create_table("business_online_stores", {:force=>true})
   -> 0.1110s
-- create_table("business_retail_stores", {:force=>true})
   -> 0.0740s
-- create_table("businesses", {:force=>true})
   -> 0.0900s
-- create_table("products", {:force=>true})
   -> 0.0810s
-- create_table("user_prices", {:force=>true})
   -> 0.0720s
-- create_table("users", {:force=>true})
   -> 0.1810s
-- initialize_schema_migrations_table()
   -> 0.2800s
-- assume_migrated_upto_version(0, "db/migrate")
   -> 0.0320s
You have 6 pending migrations:
  20110909175650 DeviseCreateUsers
  20110929161120 CreateUserPrices
  20111004023516 CreateProducts
  20111007023521 CreateBusinesses
  20111009215120 CreateBusinessRetailStores
  20111009215419 CreateBusinessOnlineStores
Run "rake db:migrate" to update your database then try again.

Yes, the Test database does already exist but where is this Ghost development database at? How does it reset the migrations, yet tell me to migrate them again. Ok, ill do as it says now:

Step 4:

$ rake db:migrate
(in C:/store)
==  DeviseCreateUsers: migrating ==============================================
-- create_table(:users)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql2::Error: Table 'users' already exists: CREATE TABLE `users`

Step 5:

$ rake db:migrate
rake aborted!
Unknown database 'store_development'

Impossible, I went inside of my MySQL Workbench and dropped the test and development databases by right-clicking them and going through the necessary steps so nothing exist even when I refresh it, yet I get this error about a database that doesn’t exist.

How do I fix this problem?

Note: 0.2.7 Gives me the same issues.

Note: These are my first 2 migration files just encase anyone wanted to see them: https://gist.github.com/1341682

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:59:29+00:00Added an answer on May 26, 2026 at 7:59 pm

    The only way to solve this that I know of was to recreate my whole application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed ruby on rails on windows. install mysql and created a new
I just downloaded and installed MySQL on a windows machine. I will only be
ORIGINAL POST I just erased and re-installed Snow Leopard. I installed MySQL 5.1.48 64-bit
I was just looking at the MySql database created by drupal after I installed
Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
I have just installed MySQL Community Server and now want to create a database
I have just activated/installed PHP and mySQL on my Mac and all seemed to
I have just installed Debian Lenny with Apache, MySQL, and PHP and I am
I just installed MySql on a mac successfully and according to the website, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.