Results 1 to 8 of 8
  1. #1
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    red flag MySQL migrate problem

    Hey guys,

    I'm moving my store to a new server, and I'm trying to migrate everything without having to spend a week on re-customizing everything in the admin, and adding all my products, etc again.

    So, ive exported the SQL from the current setup and am trying to import the .sql file into php my admin, however I keep getting the following error:

    Code:
    QL query:
    
    --
    -- Database: `information_schema`
    --
    CREATE DATABASE  `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    
    MySQL said: 
    
    #1044 - Access denied for user 'the0908308241669'@'%' to database 'information_schema'
    Any information on this? I searched around and found mostly probelms with the sql user, but mine seems to be correct. And if i have to change that, I have no idea where to do that inside of phpMyAdmin.

    Any info would be great.

    also I am on godaddy - if that makes a difference I know these big host's often have non-standard user paths, etc.

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: MySQL migrate problem

    GoDaddy has an AWFUL admin console system that is a far cry from facilities like C-Panel...

    Is there not a mechanism within the GoDaddy console to easily create a database, and add a database user with universal privileges?

    Once you have an "Empty" database, it's generally very easy to populate it with the SQL from the original database. (IF, or course, you have the same MySQL version on GoDaddy that you had on the original server!)

  3. #3
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: MySQL migrate problem

    fairestcape,

    It's actually from one go-daddy server to another. Maybe i should look into contacting them to see if they could just switch the actual sql databases between accounts?

  4. #4
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: MySQL migrate problem

    Just spoke with some nimrod of a tech guy at GoDaddy. I don't know how these guys get jobs sometimes. It boggles my mind. In fact he started talking about paying 'monthly' when i could save yearly on my accounts instead of answering my database questions. Awesome!! thanks for nothing GoDaddy!

  5. #5
    Join Date
    Apr 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: MySQL migrate problem

    Sorry to hear this. I'd really like to help you out. Please message the domain name to me and I will get in touch with you so we can get this worked out.

    Thanks,

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: MySQL migrate problem

    Quote Originally Posted by visua View Post
    So, ive exported the SQL from the current setup and am trying to import the .sql file into php my admin, however I keep getting the following error:

    Code:
    QL query:
    
    --
    -- Database: `information_schema`
    --
    CREATE DATABASE  `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    
    
    MySQL said: 
    
    #1044 - Access denied for user 'the0908308241669'@'%' to database 'information_schema'
    The problem is that the method you used to create your backup was not the best choice. Now, if GoDaddy doesn't give you any other option, well, then ... the blame goes onto *them*.

    The thing is, most hosts, including GD apparently, don't allow you to "CREATE DATABASE xxx ..." via a .sql import script.
    (And, since the file is usually too large for most text editing applications to handle, it'd difficult to edit that line out of the file.)

    That's why this FAQ article on doing backups using phpMyAdmin tells you in step 2 to select your database from the pulldown list BEFORE clicking on the Export tab, so that it doesn't automatically include the CREATE DATABASE statement in the sql export file it produces: https://www.zen-cart.com/tutorials/i...hp?article=103

    Another Related FAQ on moving from one server to another: https://www.zen-cart.com/tutorials/i...hp?article=100
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: MySQL migrate problem

    Open your mySQL file in a Text Editor and delete this line:

    CREATE DATABASE `information_schema` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

    Then use phpMyAdmin to Import and all should be well.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: MySQL migrate problem

    Well ... note that the file is likely to be large, and it's quite common that many text editors can croak on the size, or corrupt the content when editing.

    And, if you do edit it, don't just remove the CREATE DATABASE line ... you'll need to *also* delete the USE DATABASE statement on the next line too.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v154 database link problem after migrate to v1.5.4
    By jojo_cool in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 18 Jun 2015, 11:40 AM
  2. Migrate an existing mysql
    By svenne duva in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 23 Dec 2010, 12:17 AM
  3. Use Backup MySQL Database to migrate store? - Migration Gameplan
    By LaserGecko in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 14 Feb 2008, 06:46 PM
  4. MySQL Problem
    By bgroup99 in forum General Questions
    Replies: 4
    Last Post: 26 Oct 2006, 09:44 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