Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Mike Franon
going form 5.1 - to 5.5 was easy, I did not have to dump any tabels or triggers, just upgraded binary, ran mysql_upgrade and worked in no time. Thanks everyone for the help! On Wed, Feb 20, 2013 at 2:33 PM, Reindl Harald wrote: > fine and much faster and probably safer too :-) > > a backup with

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Reindl Harald
fine and much faster and probably safer too :-) a backup with rsync is faster as dump/import and can be done with minimize downtime by use it twice, the first time hot-backup with running server and the second time after stop server to get the diffs doing rsync -> stop -> rsync -> start in a scri

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Mike Franon
OK I got it to work. I dumped the tables that it was complaining about first, and then dumped the triggers. I then uninstalled anything to do with mysql, and installed 5.1 Then imported the tables and triggers, and and able to run mysql_upgrade without any errors. This is all without using a fu

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Mike Franon
I am pretty sure I did, and when I did I got the following errors: Error: Table Upgrade Required, Please dump/reload to fix it I got that on 10 tables, and also got the following: Warning: Triggers for table ' have no creation context. I think it has to do with no triggers. I know hen I ra

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Mike Franon
So I did a full mysqldump over the weekend for a second time and this time it is 220GB, no clue what happened last time, I should have realized looking at the file size something was wrong, but since I got no errors did not think about it, and this time I timed it, took 7 hours to do a complete mys

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-20 Thread Reindl Harald
Am 20.02.2013 18:26, schrieb Mike Franon: > So I did a full mysqldump over the weekend for a second time and this > time it is 220GB, no clue what happened last time, I should have > realized looking at the file size something was wrong, but since I got > no errors did not think about it, and thi

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-19 Thread Divesh Kamra
Hi all Is there any better way for grade MySQL version without taking backup with mysqldump Or if there any tool for this R's DK On 16-Feb-2013, at 16:07, Reindl Harald wrote: > > > Am 16.02.2013 09:42, schrieb Manuel Arostegui: >> 2013/2/15 Reindl Harald >

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-19 Thread Reindl Harald
Am 19.02.2013 23:53, schrieb Divesh Kamra: > Hi Reindi > > > Thanks for solution . > > Can u share complete steps ? which steps? * update * call "mysql_upgrade -u root -p" in doubt "mysqlcheck -h localhost --check-upgrade --all-databases --auto-repair --user=root -p" and if you d

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-19 Thread Divesh Kamra
Hi Reindi Thanks for solution . Can u share complete steps ? R's DK On 20-Feb-2013, at 2:50, Reindl Harald wrote: > surely > > * use "mysql_upgrade -u root -p" after EACH update > * upgrade regulary > > we went from MySQL 3.x to 5.5.30 until know without > any dump and here are ar

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-19 Thread Sabika Makhdoom
Use replication as your fail over and why not percona's xtrabackup or lvm type backup if you need a backup? Sabika On Feb 19, 2013, at 1:20 PM, Reindl Harald wrote: > surely > > * use "mysql_upgrade -u root -p" after EACH update > * upgrade regulary > > we went from MySQL 3.x to 5.5.30 unt

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-19 Thread Reindl Harald
surely * use "mysql_upgrade -u root -p" after EACH update * upgrade regulary we went from MySQL 3.x to 5.5.30 until know without any dump and here are around 5000 tables Am 19.02.2013 22:12, schrieb Divesh Kamra: > Is there any better way for grade MySQL version without taking backup with > mys

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-16 Thread Reindl Harald
Am 16.02.2013 09:42, schrieb Manuel Arostegui: > 2013/2/15 Reindl Harald > > > "our database is 400 GB, mysqldump is 600MB" was not a typo and you > honestly believed that you can import this dump to somewhat? > > WTF - as admin you should be able to

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-16 Thread Manuel Arostegui
2013/2/15 Reindl Harald > "our database is 400 GB, mysqldump is 600MB" was not a typo and you > honestly believed that you can import this dump to somewhat? > > WTF - as admin you should be able to see if the things in front > of you are theoretically possible before your start any action > and 1

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Reindl Harald
e what is the best way to fix this? > >>>>> > >>>>> To install all I did was remove all of the 5.0, and then did a yum > >>>>> install 5.1 on my AWS machine. and then just started mysql. > >>>>> > >>>&g

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Akshay Suryavanshi
nces are disallowed for > >>>>>> all > >>>>>> multiple-table DELETE statements. Alias declarations are permitted > >>>>>> only > >>>>>> in > >>>>>> the table_references part. > >>&

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Reindl Harald
this on 4 tables so far, but it still checking, my database is >>>>>>> huge so might be a while. >>>>>>> >>>>>>> The question I have what is the best way to fix this? >>>>>>> >>>>>>> To install all

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Johnny Withers
o fix this? > >>>>> > >>>>> To install all I did was remove all of the 5.0, and then did a yum > >>>>> install 5.1 on my AWS machine. and then just started mysql. > >>>>> > >>>>> Should I instead do a complete

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Reindl Harald
s remove all of the 5.0, and then did a yum >>>>> install 5.1 on my AWS machine. and then just started mysql. >>>>> >>>>> Should I instead do a complete mysqldump, and use that instead? >>>>> >>>>> On Thu, Feb 14, 2013 at 7:40

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Mike Franon
iscovered, can be fixed in the old >> >> > version >> >> > -- then it works correctly in both. >> >> > >> >> > >> >> > >> >> > That is what happened with a 4.0->5.1 conversion years ago. With >> >>

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Keith Murphy
; > > >> > That is what happened with a 4.0->5.1 conversion years ago. With 1000 > >> > different tables and associated code, we encountered two > >> > incompatibilities. > >> > One had to do with NULLs, the other with precedence of commajoin vs >

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Reindl Harald
Am 15.02.2013 22:55, schrieb Mike Franon: > I am having a real hard time upgrading just from 5.0.96 to 5.1 > > I did a full mysqldump and then restore the database, keep in mind our > database is 400 GB, mysqldump is 600MB file, about 30 minutes into the > restore get this error on one table on

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Mike Franon
1000 >> > different tables and associated code, we encountered two >> > incompatibilities. >> > One had to do with NULLs, the other with precedence of commajoin vs >> > explicit >> > JOIN. >> > >> > >> > >> > From: Singe

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Keith Murphy
ire qualification and alias references > > should not be qualified with the database name. Qualified names are > > interpreted as referring to tables, not aliases. > > > > Statements containing alias constructs that are no longer permitted must > be > > rewritten. (

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-15 Thread Mike Franon
ang.com] > Sent: Thursday, February 14, 2013 3:41 PM > To: Rick James > Cc: Mihail Manolov; Mike Franon; Akshay Suryavanshi; > > > Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 > > > > Its a very pedantic case, but we had a few instances where it was an

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Mihail Manolov
: Singer Wang [mailto:w...@singerwang.com] >> Sent: Thursday, February 14, 2013 2:59 PM >> To: Mihail Manolov >> Cc: Mike Franon; Akshay Suryavanshi; >> Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 >> >> There are queries that works with 5.1/5.0 that do not work wit

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Singer Wang
There are queries that works with 5.1/5.0 that do not work with 5.5, I would test extensively.. S On Thu, Feb 14, 2013 at 5:22 PM, Mihail Manolov < mihail.mano...@liquidation.com> wrote: > You could jump from 5.0 directly to 5.5 and skip 5.1. I have without any > issues. There are some configur

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Mihail Manolov
You could jump from 5.0 directly to 5.5 and skip 5.1. I have without any issues. There are some configuration file change, which you may want to consider checking. I definitely recommend upgrading your development servers for an extensive testing. Some queries _may_ run slower or not work at all

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Singer Wang
3 2:59 PM > > To: Mihail Manolov > > Cc: Mike Franon; Akshay Suryavanshi; > > Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 > > > > There are queries that works with 5.1/5.0 that do not work with 5.5, I > > would test extensively.. > >

RE: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Rick James
the other with precedence of commajoin vs explicit JOIN. From: Singer Wang [mailto:w...@singerwang.com] Sent: Thursday, February 14, 2013 3:41 PM To: Rick James Cc: Mihail Manolov; Mike Franon; Akshay Suryavanshi; Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 Its a very pedantic case, but

RE: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Rick James
ilto:mihail.mano...@liquidation.com] > Sent: Thursday, February 14, 2013 3:30 PM > To: Rick James > Cc: Singer Wang; Mike Franon; Akshay Suryavanshi; > > Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 > > The ones that didn't work for me required table rearrangement in

RE: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Rick James
Singer, do you have some examples? > -Original Message- > From: Singer Wang [mailto:w...@singerwang.com] > Sent: Thursday, February 14, 2013 2:59 PM > To: Mihail Manolov > Cc: Mike Franon; Akshay Suryavanshi; > Subject: Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6 >

RE: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Rick James
ou go all the way to 5.6? Maybe. You need to do a lot of shakedown anyway. > -Original Message- > From: Mihail Manolov [mailto:mihail.mano...@liquidation.com] > Sent: Thursday, February 14, 2013 2:22 PM > To: Mike Franon > Cc: Akshay Suryavanshi; > Subject: Re: Upgradi

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Akshay Suryavanshi
Mike, 5.6 is GA now, so its stable release. Also you should not jump to 5.6 directly, atleast from 5.0. There are many bug fixes and changes in 5.1, so you should consider this way. 5.0-->5.1-->5.5 (all slaves first, and then the master) And further 5.5 --> 5.6 (again all slaves first and then

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Mike Franon
Great thanks for the info, I guess the best way to do this is take a spare server, set it up with our standard setup, and then start the upgrade as you said 5.0 -> 5.1 -> 5.5, test and then upgrade to 5.6 and test. On Thu, Feb 14, 2013 at 4:22 PM, Akshay Suryavanshi wrote: > Mike, > > 5.6

Re: Upgrading form mysql 5.0.90 to 5.5 or 5.6

2013-02-14 Thread Manuel Arostegui
2013/2/14 Mike Franon > Great thanks for the info, I guess the best way to do this is take a > spare server, set it up with our standard setup, and then start the > upgrade as you said 5.0 -> 5.1 -> 5.5, test and then upgrade to 5.6 > and test. Do not forget to leave that spare server running f