Re: Question about Backup

2011-03-21 Thread Karen Abgarian
That would be the last question :-) Suppose we worked out strategy, lined up the solutions along with their costs and then compare them with our budget. That would be easy to find the one we can afford, and we will know what we could dream about :-). On Mar 21, 2011, at 11:28 AM, Singer X.

Re: Question about Backup

2011-03-21 Thread Karen Abgarian
Hi, The statement like 'I need to back up a 5T database' is not a backup strategy. It is intention. There are some specifics that have to be determined to work out a strategy. Going from there, the backup solution can be chosen. The examples of questions one typically asks when determinin

Ranking a table within a stored procedure

2011-03-21 Thread Albart Coster
Dear list, since this is the first time that I submit a question to this list, I hope that it is not to silly. My problem is as follows. I need to assing a ranking to the rows a large table. In general, I would do it as follows: SET @i = 0; UPDATE data_DgSt SET ii=@i:=@i + i ORDER BY datumt

Re: Question about Backup

2011-03-21 Thread Reindl Harald
Forget mysqldump because TABLE LOCKS for so hughe databases I would setup a replication-slave because you can stop the salave and make a filesystem-backup of the whole db-folder while the production server is online, we do this with our dbmail-server since 2009 Am 21.03.2011 12:23, schrieb Pedro N

RE: Problem filtering with a "like" expression

2011-03-21 Thread johan de taeye
After updating the SQL_MODE, it works as I expect. Thanks for your prompt replies! Johan -Original Message- From: petya [mailto:pe...@petya.org.hu] Sent: Monday, March 21, 2011 12:10 PM To: Johan De Taeye Cc: mysql@lists.mysql.com Subject: Re: Problem filtering with a "like" expres

Question about Backup

2011-03-21 Thread Pedro Nuñez
Hi I need set up a backup strategy for a mysql database in a ubuntu server, the database will grow up to a 5TB. What would be the best option ?? Maybe a script that uses mysqldump?? There is a better way to do this? Thanks in advance to all Pedro.

Re: Problem filtering with a "like" expression

2011-03-21 Thread Simcha Younger
On Mon, 21 Mar 2011 11:51:27 +0100 Johan De Taeye wrote: > insert into lookup (name) values ('AAA'); > > select * from lookup where name like 'A%'; > => 1 record returned. OK > > select * from lookup where name like 'A' || '%'; > => returns nothing. INCORRECT! The query is incorrect. The O

Re: Problem filtering with a "like" expression

2011-03-21 Thread petya
Hi, || isn't the concatenation operator by default. If you want it to be set sql_mode=PIPE_AS_CONCAT. Otherwise, use the CONCAT() function instead of || operator. Peter Boros On 03/21/2011 11:51 AM, Johan De Taeye wrote: I ran into this case where a "like" expression is not evaluated correc

Problem filtering with a "like" expression

2011-03-21 Thread Johan De Taeye
I ran into this case where a "like" expression is not evaluated correctly if the pattern is an expression. The example below shows a case where *AAA* is not considered *like 'A' || '%'* Is this a known limitation? Or a bug? create table lookup ( name varchar(60) ); insert into lookup (name) va