Re: errors running WHILE loop

2011-12-27 Thread Peter Brawley
On 12/27/2011 12:13 PM, Mark Haney wrote: I've had a DEVIL of a time with this problem and I'm sure it's something simple, but I can't find it anywhere in the documentation or online what the problem is. Let me explain. I cannot get any WHILE loop to work from either a CLI or a script on MySQ

Re: errors running WHILE loop

2011-12-27 Thread Hal�sz S�ndor
2011/12/27 18:13 +, Mark Haney So, what the heck is going on here? I'm at the end of my wits. I suspect that you have to make the block delimiter something other than semicolon, and set the block in a routine or trigger. Semicolon terminates SQL routine statements, after

errors running WHILE loop

2011-12-27 Thread Mark Haney
I've had a DEVIL of a time with this problem and I'm sure it's something simple, but I can't find it anywhere in the documentation or online what the problem is. Let me explain. I cannot get any WHILE loop to work from either a CLI or a script on MySQL 5.1.41. For example, this is a simple sc

query question

2011-12-27 Thread Richard Reina
Hello All, Hope everyone is having a wonderful holiday. I have a table like: |ID |city|ST |memo| I would like to write a query that somewhat randomly grabs a record for a for a given city and state. I say randomly because what I'm specifically after is that if city IS NOT NULL than I want

Re: mysql_secure_installation

2011-12-27 Thread Shawn Green (MySQL)
Hello Ryan, On 12/18/2011 15:36, Ryan Dewhurst wrote: Hi, Does anyone know why what's done in 'mysql_secure_installation' [0] isnot part of the default mysql installation? [0] http://dev.mysql.com/doc/refman/5.0/en/mysql-secure-installation.html Thank you,Ryan Dewhurst P.S. I also asked this que

Re: thread connected and thread cached

2011-12-27 Thread Nitin Mehta
Hi Jeff,   threads_connected tells you total number of connections created since server startup and threads_cached says how many stay alive (connection pooling) even if there are no clients connected. This means that because the value of threads_cached was reduced on your server, it is having to