Results 1 to 4 of 4

Thread: Moving MySQL database to another domain

  1. #1
    Join Date
    Feb 2006
    Location
    Worcester
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Moving MySQL database to another domain

    I'm trying to make a copy of a MySQL site onto another domain, for testing, backup and demo purposes. The problem that I have is in creating the copy of the database, I've tried creating a new empty MySQL database and importing the file dump from the original using phpMyAdmin but it fails. Dumping the SQL into a text file and then executing it in the new database also fails.

    Can anyone help please?

  2. #2
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    350
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    Thats odd. I succesfully copyed MySQL databases a couple of time from one domain to another. Just like you described. Exporting to whole database and inporting it again to a empty database.

    What errors do you run too?

  3. #3
    Join Date
    Feb 2006
    Location
    Worcester
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    When importing I get;

    SQL query:

    --
    -- Database: `dbbackup`
    --
    CREATE DATABASE `dbbackup` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;

    MySQL said: Documentation
    #1044 - Access denied for user 'newuser'@'%' to database 'dbbackup'


    where dbbackup is the old database being imported and 'newuser' is the user name for the newly created db

  4. #4
    Join Date
    Feb 2006
    Location
    Worcester
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Moving MySQL database to another domain (SOLVED)

    The problem is that the MySQL dump includes an instruction to create a database, maybe there's a way of having it not do this but my solution was to dump the database to a text file and then remove the create database code.

    This can then be pasted into the SQL box and executed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zeroing a MySQL database
    By UKFlyer in forum General Technical Support
    Replies: 4
    Last Post: 5th March 2008, 05:21 PM
  2. Replies: 2
    Last Post: 24th April 2007, 02:49 PM
  3. Moving Database from one domain to another
    By spire128 in forum Technical Support
    Replies: 1
    Last Post: 6th April 2007, 07:19 PM
  4. Moving a SQL Server DB to a new domain
    By JohnnyW in forum Technical Support
    Replies: 2
    Last Post: 15th January 2007, 07:09 PM
  5. Problems Moving Database
    By MWF in forum vBulletin (PHP)
    Replies: 4
    Last Post: 9th June 2006, 05:30 PM

Bookmarks

Posting Permissions

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