Professional Web Applications Themes

How to synchronize 2 databases on same server? - MySQL

I need to synchronize 2 databases on the same server - everything except one table. Any suggestions on the best way to do this? Thanks in advance....

  1. #1

    Default How to synchronize 2 databases on same server?

    I need to synchronize 2 databases on the same server - everything except one
    table.

    Any suggestions on the best way to do this?

    Thanks in advance.

    deko Guest

  2. #2

    Default Re: How to synchronize 2 databases on same server?

    deko wrote:
    > I need to synchronize 2 databases on the same server - everything except
    > one table.
    >
    > Any suggestions on the best way to do this?
    >
    > Thanks in advance.
    If by "synchronize" you mean copy all the data, you may use mysqldump.

    $ mysqldump --ignore-table=table_name first_db_name | mysql second_db_name

    ciao
    gmax

    --
    _ _ _ _
    (_|| | |(_|>< The Data Charmer
    _|
    [url]http://datacharmer.org/[/url]
    Giuseppe Maxia Guest

  3. #3

    Default Re: How to synchronize 2 databases on same server?

    "deko" <dekonospam.com> wrote:
    > I need to synchronize 2 databases on the same server - everything
    > except one table.
    >
    > Any suggestions on the best way to do this?
    This depends on what you mean by "synchronize". Maybe MySQLs
    tion works for your problem. You need 2 MySQL instances
    running on the same server for that.

    [url]http://dev.mysql.com/doc/refman/5.0/en/tion-intro.html[/url]
    [url]http://dev.mysql.com/doc/refman/5.0/en/multiple-servers.html[/url]


    XL
    --
    Axel Schwenke, Senior Software Developer, MySQL AB

    Online User Manual: [url]http://dev.mysql.com/doc/refman/5.0/en/[/url]
    MySQL User Forums: [url]http://forums.mysql.com/[/url]
    Axel Schwenke Guest

Similar Threads

  1. SQL Server 2000 vs. DB2 databases.
    By Lam Nguyen in forum Microsoft SQL / MS SQL Server
    Replies: 10
    Last Post: February 25th, 07:51 PM
  2. Two Websites/Two Databases One Server
    By Parrothead46038 in forum Coldfusion Database Access
    Replies: 3
    Last Post: October 11th, 02:08 PM
  3. Can't synchronize with RDS Server?
    By Brad in forum Coldfusion Server Administration
    Replies: 0
    Last Post: September 29th, 07:15 PM
  4. ASP code error with SQL server databases
    By Amit Kela in forum ASP Database
    Replies: 1
    Last Post: December 2nd, 10:46 PM
  5. Server hosts and databases
    By Minding in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: September 6th, 10:35 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139