Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Posts
    3
    Plugin Contributions
    0

    Default 1007 Can't create 'dbStore'; database exists error

    Hi. I am running ZC v1.39h and am moving my site from shared hosting to dedicated on a CentOS 5. Both the old and new sites are hosted with GoDaddy. I have successfully installed ZC on the dedicated server, having walked through that tutorial. Renaming the admin folder and updating both config files went smoothly as well. My issue concerns importing the db from the shared hosting site to the dedicated server. I appropriately backed up the db. Note two things: First, I renamed the db from the long alpha-numeric string provided when it was installed on the old server. Let's call that dbOldName. The new db is called dbStore. Second, I am using a new dba username. Let's call the old one dbOldUserName and the new one dbNewUserName. I went into the backed up sql file and carefully changed all instances of dbOldName to dbStore, using Microsoft Visual Studio. So I dropped all of the tables in the new db, dbStore, that was created upon the ZC installation. When I navigate to my hard drive and import the backed-up database, I get the 1007 error: Can't create database 'dbStore'; database exists. All I want to do is import the tables with my good data into the shell database. What am I missing??? Thanks.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: 1007 Can't create 'dbStore'; database exists error

    Sounds like when you did your export, you included (knowingly or not) a create database statement.

    As you've demonstrated that you're comfortable editing the SQL, and the database already exists, simply remove it from your the SQL that you're importing. It'll be very close to the beginning of the file.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jan 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: 1007 Can't create 'dbStore'; database exists error

    Thanks. I tried that, but now it's giving me a #1044 - Access denied for user 'dbNew'@'%' to database 'information_schema'. Stupid question, but should I be using the server username and the server password or the db username and the db password? I've triple-checked my config files and the connection info is exactly the same as my db UserName and db password. Thanks.

  4. #4
    Join Date
    Jan 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: 1007 Can't create 'dbStore'; database exists error

    Never mind. Got it! Thanks.

 

 

Similar Threads

  1. v151 PHP Fatal error: 1:Can't create/write to file '/tmp/#sql_a48_0.MYI' Error 30
    By woodlandsprite in forum General Questions
    Replies: 1
    Last Post: 30 Nov 2012, 01:08 AM
  2. 0 Install Error: Could not connect to the Database in: [DROP TABLE IF EXISTS upgrade_
    By terrancesmith98 in forum Installing on a Windows Server
    Replies: 8
    Last Post: 2 Aug 2009, 12:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg