Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2008, 08:27 PM
Mike
 
Posts: n/a
Default Migration from 32-bit to 64-bit MySQL

I would like to move from 32-bit to 64-bit MySQL within the next year.
Unfortunately, there is not a lot of documentation on migration or anything
else regarding 64bit MySQL.

My current setup consists of one master and two slaves (all using 32bit and
MySQL 5.0). I am looking to add a 64bit slave to the mix.

What is the difference between 32-bit and 64-bit? Is this a good idea? Can
it be done? What would make this go wrong?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 08:27 PM
B. Keith Murphy
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

Mike wrote:
> I would like to move from 32-bit to 64-bit MySQL within the next year.
> Unfortunately, there is not a lot of documentation on migration or anything
> else regarding 64bit MySQL.
>
> My current setup consists of one master and two slaves (all using 32bit and
> MySQL 5.0). I am looking to add a 64bit slave to the mix.
>
> What is the difference between 32-bit and 64-bit? Is this a good idea? Can
> it be done? What would make this go wrong?
>
>


I have made this migration on multiple servers. It has never been any
trouble. Your biggest gain would probably be the ability to address
more RAM. I would just dump the database from the 32-bit platform and
import it into the 64-bit server.

Keith

--
Keith Murphy


editor: MySQL Magazine
http://www.mysqlzine.net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 08:27 PM
Tim McDaniel
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

On Fri, 25 Apr 2008, B. Keith Murphy <bmurphy@paragon-cs.com> wrote:
> I would just dump the database from the 32-bit platform and import it
> into the 64-bit server.


By "dump" do you mean "mysqldump", or some other process?

--
Tim McDaniel, n00b, tmcd@panix.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-29-2008, 08:27 PM
Mike
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

On Fri, Apr 25, 2008 at 11:45 AM, Olaf Stein <
olaf.stein@nationwidechildrens.org> wrote:

> As long as you use dumps to restore your databases on the new 64bit system
> (instead of the binary files) you should be fine
>
> Olaf
>


I have so much data that we can't take a mysqldump of our database. The
directory tared is about 18GB. I just use the other method by just copying
over the data directory. Do you think the data will be intact if a just
copy over the data directory?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-29-2008, 08:27 PM
Olaf Stein
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

As long as you use dumps to restore your databases on the new 64bit system
(instead of the binary files) you should be fine

Olaf


On 4/25/08 11:23 AM, "Mike" <lunarblu@gmail.com> wrote:

> I would like to move from 32-bit to 64-bit MySQL within the next year.
> Unfortunately, there is not a lot of documentation on migration or anything
> else regarding 64bit MySQL.
>
> My current setup consists of one master and two slaves (all using 32bit and
> MySQL 5.0). I am looking to add a 64bit slave to the mix.
>
> What is the difference between 32-bit and 64-bit? Is this a good idea? Can
> it be done? What would make this go wrong?


----------------------------------------- Confidentiality Notice:
The following mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain confidential
and privileged information. The recipient is responsible to
maintain the confidentiality of this information and to use the
information only for authorized purposes. If you are not the
intended recipient (or authorized to receive information for the
intended recipient), you are hereby notified that any review, use,
disclosure, distribution, copying, printing, or action taken in
reliance on the contents of this e-mail is strictly prohibited. If
you have received this communication in error, please notify us
immediately by reply e-mail and destroy all copies of the original
message. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-29-2008, 08:27 PM
Olaf Stein
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

Probably not

AFAIK it should work in theory if you have no floating point columns but I
would not try it.
Why cant you take a dump, you can do it table by table, you will have some
downtime though.

One option might be to use a 64bit slave and make that the master and then
add more 64 slaves.


On 4/25/08 11:57 AM, "Mike" <lunarblu@gmail.com> wrote:

> On Fri, Apr 25, 2008 at 11:45 AM, Olaf Stein
> <olaf.stein@nationwidechildrens.org> wrote:
>> As long as you use dumps to restore your databases on the new 64bit system
>> (instead of the binary files) you should be fine
>>
>> Olaf

>
> I have so much data that we can't take a mysqldump of our database. The
> directory tared is about 18GB. I just use the other method by just copying
> over the data directory. Do you think the data will be intact if a just copy
> over the data directory?
>




----------------------------------------- Confidentiality Notice:
The following mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain confidential
and privileged information. The recipient is responsible to
maintain the confidentiality of this information and to use the
information only for authorized purposes. If you are not the
intended recipient (or authorized to receive information for the
intended recipient), you are hereby notified that any review, use,
disclosure, distribution, copying, printing, or action taken in
reliance on the contents of this e-mail is strictly prohibited. If
you have received this communication in error, please notify us
immediately by reply e-mail and destroy all copies of the original
message. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-29-2008, 08:27 PM
B. Keith Murphy
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

Olaf Stein wrote:
> Probably not
>
> AFAIK it should work in theory if you have no floating point columns but I
> would not try it.
> Why cant you take a dump, you can do it table by table, you will have some
> downtime though.
>
> One option might be to use a 64bit slave and make that the master and then
> add more 64 slaves.
>
>
> On 4/25/08 11:57 AM, "Mike" <lunarblu@gmail.com> wrote:
>
>
>> On Fri, Apr 25, 2008 at 11:45 AM, Olaf Stein
>> <olaf.stein@nationwidechildrens.org> wrote:
>>
>>> As long as you use dumps to restore your databases on the new 64bit system
>>> (instead of the binary files) you should be fine
>>>
>>> Olaf
>>>

>> I have so much data that we can't take a mysqldump of our database. The
>> directory tared is about 18GB. I just use the other method by just copying
>> over the data directory. Do you think the data will be intact if a just copy
>> over the data directory?
>>
>>

>
>

Seriously, 18 gb isn't too big to do a mysqldump. And I really wouldn't
advise you trying to do a binary copy. You are just asking for trouble.
Plan ahead and you can do this on a slave without any problem, import
the data on the new server and sync it back up without any problems.

--
Keith Murphy


editor: MySQL Magazine
http://www.mysqlzine.net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-29-2008, 08:27 PM
Mike
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

That what I want to do, but I'm not sure if the data will propagate right.
Because of lack of documentation for 64bit.

On Fri, Apr 25, 2008 at 12:03 PM, Olaf Stein <
olaf.stein@nationwidechildrens.org> wrote:

> Probably not
>
> AFAIK it should work in theory if you have no floating point columns but I
> would not try it.
> Why cant you take a dump, you can do it table by table, you will have some
> downtime though.
>
> One option might be to use a 64bit slave and make that the master and then
> add more 64 slaves.
>
>
>
> On 4/25/08 11:57 AM, "Mike" <lunarblu@gmail.com> wrote:
>
> On Fri, Apr 25, 2008 at 11:45 AM, Olaf Stein <
> olaf.stein@nationwidechildrens.org> wrote:
>
> As long as you use dumps to restore your databases on the new 64bit system
> (instead of the binary files) you should be fine
>
> Olaf
>
>
> I have so much data that we can't take a mysqldump of our database. The
> directory tared is about 18GB. I just use the other method by just copying
> over the data directory. Do you think the data will be intact if a just
> copy over the data directory?
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-29-2008, 08:27 PM
Olaf Stein
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

Every statement should be executed on the slave from the masters binary log
so in my opinion you should be ok


On 4/25/08 12:20 PM, "Mike" <lunarblu@gmail.com> wrote:

> That what I want to do, but I'm not sure if the data will propagate right.
> Because of lack of documentation for 64bit.
>
> On Fri, Apr 25, 2008 at 12:03 PM, Olaf Stein
> <olaf.stein@nationwidechildrens.org> wrote:
>> Probably not
>>
>> AFAIK it should work in theory if you have no floating point columns but I
>> would not try it.
>> Why cant you take a dump, you can do it table by table, you will have some
>> downtime though.
>>
>> One option might be to use a 64bit slave and make that the master and then
>> add more 64 slaves.
>>
>>
>>
>> On 4/25/08 11:57 AM, "Mike" <lunarblu@gmail.com> wrote:
>>
>>> On Fri, Apr 25, 2008 at 11:45 AM, Olaf Stein
>>> <olaf.stein@nationwidechildrens.org> wrote:
>>>> As long as you use dumps to restore your databases on the new 64bit system
>>>> (instead of the binary files) you should be fine
>>>>
>>>> Olaf
>>>
>>> I have so much data that we can't take a mysqldump of our database. The
>>> directory tared is about 18GB. I just use the other method by just copying
>>> over the data directory. Do you think the data will be intact if a just
>>> copy over the data directory?
>>>

>
>






----------------------------------------- Confidentiality Notice:
The following mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain confidential
and privileged information. The recipient is responsible to
maintain the confidentiality of this information and to use the
information only for authorized purposes. If you are not the
intended recipient (or authorized to receive information for the
intended recipient), you are hereby notified that any review, use,
disclosure, distribution, copying, printing, or action taken in
reliance on the contents of this e-mail is strictly prohibited. If
you have received this communication in error, please notify us
immediately by reply e-mail and destroy all copies of the original
message. Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-29-2008, 08:27 PM
Warren Young
 
Posts: n/a
Default Re: Migration from 32-bit to 64-bit MySQL

Mike wrote:
>
> I have so much data that we can't take a mysqldump of our database. The
> directory tared is about 18GB.


Worst-case expansion for SQL data from binary to text format is about
5:1, which applies mainly to numeric data, not text. That's only 90 GB;
I carry a bigger hard drive in my backpack, which I use for moving files
between machines. Heck, my iPod holds more than that.

You don't even have to store a second copy of the data. You can do
something like pipe the mysqldump through a tool like nc (netcat) from
the old machine to the new. With a decent GigE network connection
between the two, the transfer should complete in about an hour. Add in
a little data compression and you can probably cut that in half.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

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 140 141 142 143 144 145