<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5856229816967035312</id><updated>2012-01-25T13:25:59.223-08:00</updated><category term='collate'/><category term='Replicate Wild Ignore Table'/><category term='ERROR 1030 (HY000)'/><category term='field naming conventions'/><category term='kickfire'/><category term='pentaho'/><category term='select_db'/><category term='mysql workbench'/><category term='purpose of data warehouse'/><category term='SQL 2005'/><category term='mysql performance LIKE query vertical partition indexes'/><category term='sar'/><category term='data warehouse'/><category term='iostat'/><category term='dstat'/><category term='cmdba'/><category term='Got Error -1 from storage engine'/><category term='insert records'/><category term='mysql vs. MS SQL'/><category term='replicate_wild_ignore_table'/><category term='mpstat'/><category term='OLTP'/><category term='unique index'/><category term='deadlines'/><category term='slave'/><category term='innodb_file_per_table'/><category term='table doesn&apos;t exist on query'/><category term='insert ignore into'/><category term='what do you name date fields'/><category term='jasper'/><category term='replicate_do_db'/><category term='file'/><category term='2008'/><category term='my.cnf'/><category term='case sensitive fields'/><category term='import tablespace'/><category term='OLAP'/><category term='mysql'/><category term='Creating a table copy'/><category term='php'/><category term='2008 mysql users conference cmdba santa clara'/><category term='dba'/><category term='data dictionary'/><category term='mysql replication'/><category term='MS SQL'/><category term='dba shortcuts'/><category term='replicate_ignore_db'/><category term='InnoDB'/><category term='SHOW PROCESSLIST'/><category term='mysql users conference'/><category term='latin1_general_cs'/><category term='cpu utilization'/><category term='mysql performance'/><category term='Replicate Ignore Database'/><category term='tablespace id'/><category term='mysql 5.1'/><category term='error'/><category term='mysql performance blog hints tips SELECT HAVING clause statement SUM GROUP BY Canadian'/><category term='slave error'/><title type='text'>mySQL Hints: Tips, Suggestions, and Findings</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-8181669512944077996</id><published>2012-01-24T12:45:00.000-08:00</published><updated>2012-01-24T12:48:42.300-08:00</updated><title type='text'>How to Find Out if an Entire String Is Numeric</title><summary type='text'>Problem: Find out if an entire string is numeric.  (Just like the is_numeric function in php.)

Problem, Part II: Most online resources show how you can find out if part of your string is numeric.

Solution: 
SELECT str FROM tbl
  WHERE str REGEXP('(^[0-9]+$)');Give it a whirl!


For those who would like to view some test results, here goes:
mysql&gt; SELECT str FROM tbl;
+-----+
| str |
+-----+
| </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/8181669512944077996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=8181669512944077996' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/8181669512944077996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/8181669512944077996'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2012/01/how-to-find-out-if-entire-string-is.html' title='How to Find Out if an Entire String Is Numeric'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2890549115933700494</id><published>2011-06-03T07:37:00.000-07:00</published><updated>2011-06-03T07:37:16.961-07:00</updated><title type='text'>How to Parse the Most Selected Tables From MySQL General Query Log in One Line</title><summary type='text'>Problem: Pin down redundant queries by finding out which tables are being selected from the most.

I like general query log parsing tools, such as mk-query-digest or mysqlsla.

However, there are times when I am on a server as a dba with limited access and can only read files in /tmp.  And other times I just need to get something done quickly.

So what did I do to find out the most selected </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2890549115933700494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2890549115933700494' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2890549115933700494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2890549115933700494'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2011/06/how-to-parse-most-selected-tables-from.html' title='How to Parse the Most Selected Tables From MySQL General Query Log in One Line'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-5775472199416668426</id><published>2011-04-27T10:03:00.000-07:00</published><updated>2011-04-27T10:03:15.069-07:00</updated><title type='text'>My Ignite Talk at MySQL Conference</title><summary type='text'>My Ignite Talk (5 minute talk, 20 slides, 15 seconds per slide) at the MySQL Conference about Data Visualization was picked among three for "the Best of Ignite".  I would say I barely scraped into third spot, and it was inspiring giving a talk after Baron Schwartz gave his at the keynote on the last day of the conference. 

The other two talks were "Scale Fail" by Josh Berkus (hilarious, must see</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/5775472199416668426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=5775472199416668426' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5775472199416668426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5775472199416668426'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2011/04/my-ignite-talk-at-mysql-conference.html' title='My Ignite Talk at MySQL Conference'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-3300606854111521509</id><published>2011-02-02T08:57:00.000-08:00</published><updated>2011-02-02T08:57:59.787-08:00</updated><title type='text'>Need to Replicate to a Database with a Different Name?</title><summary type='text'>This is the first time this has happened to me, so I got excited about it until I noticed that this command has been with us from nearly the very beginning (ie MySQL 4).

The Situation
Master Server contains db1
Slave Server contains db1 and db2
Slave Server needs db1 from the Master to replicate to db2

The Solution
On my.cnf on the slave server:
--replicate-rewrite-db=from_name-&gt;to_name
Thus, </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/3300606854111521509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=3300606854111521509' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3300606854111521509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3300606854111521509'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2011/02/need-to-replicate-to-database-with.html' title='Need to Replicate to a Database with a Different Name?'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2923462289217137039</id><published>2011-01-11T13:17:00.000-08:00</published><updated>2011-01-11T13:46:11.223-08:00</updated><title type='text'>How to Log User Connections in MySQL</title><summary type='text'>There is nothing that MySQL 5.1 explicitly performs to log user connections, but there is a combination of MySQL commands that can log user connections without having to turn on the general query log.  I repeat: you do not have to turn the general query log on to make this work!

Would you like to find out what that is?
With the help of Baron Schwartz's post on http://www.xaprb.com/blog/2006/07/</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2923462289217137039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2923462289217137039' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2923462289217137039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2923462289217137039'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2011/01/how-to-log-user-connections-in-mysql.html' title='How to Log User Connections in MySQL'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-5584205161172077181</id><published>2010-02-19T14:40:00.001-08:00</published><updated>2010-02-19T15:00:05.910-08:00</updated><title type='text'>How to Save a Lot of Time with LOAD DATA INFILE Involving Large Files</title><summary type='text'>Are you tired of waiting an hour or so performing a LOAD DATA INFILE statement involving a file with millions of rows?If so, and you have enough money to pay for 3 monthly installments of $5.99...  (Belgian chocolate will substitute nicely) -- you TOO can be a hero in your office and go home early for the weekend. :)How? Disable keys.  Load data infile.  Enable keys.ALTER TABLE </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/5584205161172077181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=5584205161172077181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5584205161172077181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5584205161172077181'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2010/02/how-to-save-lot-of-time-with-load-data.html' title='How to Save a Lot of Time with LOAD DATA INFILE Involving Large Files'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-4314196892946974716</id><published>2010-01-08T13:33:00.000-08:00</published><updated>2010-01-08T14:02:53.819-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHOW PROCESSLIST'/><category scheme='http://www.blogger.com/atom/ns#' term='dba shortcuts'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>How to SHOW PROCESSLIST Every .5 Seconds</title><summary type='text'>Yes, it has been a while since I last posted, so we'll see how this year goes...Just the other evening I came across something that I should have done much sooner.  Run SHOW PROCESSLIST every second without hitting "ENTER" repetitively.The Setup1) Create a temporary user with a non-sensitive password on localhost with SUPER privs.  Yes, this crazy, but I did say *temporary*, right? mysql&gt; GRANT </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/4314196892946974716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=4314196892946974716' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4314196892946974716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4314196892946974716'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2010/01/how-to-show-processlist-every-5-seconds.html' title='How to SHOW PROCESSLIST Every .5 Seconds'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-3811089415950395781</id><published>2008-11-19T08:04:00.000-08:00</published><updated>2008-11-19T08:34:11.692-08:00</updated><title type='text'>My Top 10 List For Developers</title><summary type='text'>An excellent question was posted in a MySQL group in LinkedIn the other day that I had to post it here.What is your "Top 10 List for Programmers Working with MySQL"?I started mine... Let me know your thoughts on my list, and feel free to add other items to the list.  I interface with programmers on a daily basis, and our experience lends us to help them in certain ways, but I think a "Top 10" </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/3811089415950395781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=3811089415950395781' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3811089415950395781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3811089415950395781'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/11/my-top-10-list-for-developers.html' title='My Top 10 List For Developers'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Yy46efT5Bl0/SSQ_a8mEz0I/AAAAAAAAAAM/VK_xA_aAYEQ/s72-c/Waynes_Top_Ten.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2507549614323140433</id><published>2008-10-15T14:59:00.000-07:00</published><updated>2008-10-15T15:46:44.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql 5.1'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='deadlines'/><category scheme='http://www.blogger.com/atom/ns#' term='data warehouse'/><category scheme='http://www.blogger.com/atom/ns#' term='kickfire'/><title type='text'>KickFire is Back</title><summary type='text'>After receiving an email about talking with Robert David, Director of Sales at KickFire, I checked out recent news on KickFire, as there had been little written about this company aside from the big splash they made at the MySQL Users Conference back in April 2008.And, lo and behold, there was a piece of news, posted on October 14 - Kickfire Enters Into MySQL Enterprise Agreement With Sun </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2507549614323140433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2507549614323140433' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2507549614323140433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2507549614323140433'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/10/kickfire-is-back.html' title='KickFire is Back'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-746732460823661683</id><published>2008-10-10T08:48:00.000-07:00</published><updated>2008-10-10T14:46:45.509-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ERROR 1030 (HY000)'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='data dictionary'/><category scheme='http://www.blogger.com/atom/ns#' term='tablespace id'/><category scheme='http://www.blogger.com/atom/ns#' term='Got Error -1 from storage engine'/><category scheme='http://www.blogger.com/atom/ns#' term='innodb_file_per_table'/><category scheme='http://www.blogger.com/atom/ns#' term='InnoDB'/><category scheme='http://www.blogger.com/atom/ns#' term='import tablespace'/><title type='text'>Fixing InnoDB IMPORT TABLESPACE Error: ERROR 1030 (HY000): Got error -1 from storage engine</title><summary type='text'>SetupWe have one InnoDB file per table on our database, which was set with the following option: innodb_file_per_table.This allows me to portably transport Innodb files on a system level with minimal hassle, and is much faster than mysqldump, as these tables are several GB each.ProblemWhen transporting an .idb file from one server to another, I ran into the following error:ERROR 1030 (HY000): Got</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/746732460823661683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=746732460823661683' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/746732460823661683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/746732460823661683'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/10/fixing-innodb-import-tablespace-error.html' title='Fixing InnoDB IMPORT TABLESPACE Error: ERROR 1030 (HY000): Got error -1 from storage engine'/><author><name>David Holoboff</name><uri>http://www.blogger.com/profile/09642019350937418521</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-70550085507054168</id><published>2008-09-04T10:12:00.000-07:00</published><updated>2008-10-11T14:08:05.688-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='case sensitive fields'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='collate'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql performance'/><category scheme='http://www.blogger.com/atom/ns#' term='latin1_general_cs'/><title type='text'>Case Sensitive Fields</title><summary type='text'>Yes, it has been too long since I last posted on this blog (3 months) - that's my apology; let's move forward.There's too many interesting MySQL bits and pieces that I still come across my desk that I cannot help but post these fantastic learning opportunities to my blog.  Obviously, you can read about all things interesting from PlanetMySql.org, but I hope that my blog will help sift people </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/70550085507054168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=70550085507054168' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/70550085507054168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/70550085507054168'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/09/case-sensitive-fields.html' title='Case Sensitive Fields'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_b0R-QFcSgZ0/SOJoGwY3TYI/AAAAAAAAAHM/coU4PWAjZNQ/s72-c/denver.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-8054684265854748344</id><published>2008-06-27T14:21:00.000-07:00</published><updated>2008-10-11T14:48:57.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='replicate_wild_ignore_table'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='select_db'/><category scheme='http://www.blogger.com/atom/ns#' term='replicate_ignore_db'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='replicate_do_db'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql replication'/><title type='text'>Things Not Replicating Correctly? Part 2</title><summary type='text'>My last post on June 10 was about when MySQL received queries from php scripts that looked like this:mysql_select_db = ('database_I_DO_want_to_replicate', $link);$sql = "INSERT INTO db_I_DO_NOT_want_to_replicate.repl_table (a,b,c) VALUES (1,2,3);";-- and thus could not pass this over to the slave unless I set Replicate_Wild_Ignore_Table value IN ADDITION to Replicate_Ignore_DB as such in my </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/8054684265854748344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=8054684265854748344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/8054684265854748344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/8054684265854748344'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/06/things-not-replicating-correctly-part-2.html' title='Things Not Replicating Correctly? Part 2'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-6631954947274241329</id><published>2008-06-10T07:21:00.000-07:00</published><updated>2008-10-11T14:11:23.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='my.cnf'/><category scheme='http://www.blogger.com/atom/ns#' term='table doesn&apos;t exist on query'/><category scheme='http://www.blogger.com/atom/ns#' term='slave'/><category scheme='http://www.blogger.com/atom/ns#' term='Replicate Ignore Database'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql replication'/><category scheme='http://www.blogger.com/atom/ns#' term='Replicate Wild Ignore Table'/><category scheme='http://www.blogger.com/atom/ns#' term='slave error'/><title type='text'>An Interesting Replication Tip</title><summary type='text'>We recently moved some databases to different servers, and I altered our mySQL slave configuration files to take into account some of the databases we wanted to replicate (Replicate-do-db) and others that we wanted to ignore (Replicate-ignore-db) -- each of these server cases were mutually exclusive.All went well, until I found a peculiar error:Error 'Table 'db101.table101' doesn't exist' on </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/6631954947274241329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=6631954947274241329' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/6631954947274241329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/6631954947274241329'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/06/interesting-replication-tip.html' title='An Interesting Replication Tip'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2374543048574891067</id><published>2008-05-07T14:48:00.000-07:00</published><updated>2008-05-07T18:29:28.372-07:00</updated><title type='text'>How to Group Customers by Number of Purchases Quickly!</title><summary type='text'>This is a great little sql statement that packs a nice punch for the number crunchers out there...A disclaimer first: make sure you don't do this on a live OLTP table with millions of rows unless you want your customers to wait.  Thus, run it on your slave :).Onto business...The Request"I need to know the number of people who made one purchase, two purchases, three purchases, and so on.  Right </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2374543048574891067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2374543048574891067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2374543048574891067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2374543048574891067'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/05/very-quick-reporting-summation-for.html' title='How to Group Customers by Number of Purchases Quickly!'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-831881696350461383</id><published>2008-04-22T13:42:00.000-07:00</published><updated>2008-10-11T14:12:09.830-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql users conference'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql workbench'/><category scheme='http://www.blogger.com/atom/ns#' term='2008 mysql users conference cmdba santa clara'/><category scheme='http://www.blogger.com/atom/ns#' term='cmdba'/><category scheme='http://www.blogger.com/atom/ns#' term='2008'/><title type='text'>MySQL Conference: The Week After</title><summary type='text'>Wow... I had a great time at the annual MySQL Users Conference in Santa Clara.Highlights:Received my CMDBA designation.  Woohoo!Sun announced the possibility of an open source mobile phone;All day mysql proxy tutorial with Jan Kneschke and Giuseppe Maxia;Amazon's Power of Infrastructure as a Service - great premise; glitches remain;Great food and a nifty side trip to Santa Cruz;MySQL Workbench - </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/831881696350461383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=831881696350461383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/831881696350461383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/831881696350461383'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/04/mysql-conference-week-after.html' title='MySQL Conference: The Week After'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-4325592500039541962</id><published>2008-03-14T07:43:00.000-07:00</published><updated>2008-03-14T09:40:53.474-07:00</updated><title type='text'>Data Warehousing 101: Pitfalls to Avoid</title><summary type='text'>Sometimes technology gets in the way of getting things done, and us tekkies must do what we can to make our data warehouse work for the purpose it is intended.  Ralph Kimball makes 10 good points about the common pitfalls to avoid when implementing a data warehouse, as listed in his book "The Data Warehouse Toolkit", published by Wiley.Become immersed with technology rather than the requirements </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/4325592500039541962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=4325592500039541962' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4325592500039541962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4325592500039541962'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/03/pitfall.html' title='Data Warehousing 101: Pitfalls to Avoid'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_b0R-QFcSgZ0/R9qqZwhL6JI/AAAAAAAAAEw/CEssAUGKp5A/s72-c/pitfall.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-833340535914677352</id><published>2008-03-07T10:59:00.000-08:00</published><updated>2008-03-11T13:03:58.185-07:00</updated><title type='text'>Data Warehousing 101: Requirements for a Data Warehouse</title><summary type='text'>Yes, it has been a while since I added an entry in my blog.  I have been working on creating a dynamic data warehouse system reliant on the traditional LAMP stack (and a very nifty graphical plug-in - please comment below if you wish to know what it is!).Firstly, I must make these qualifications before you read further:I consider Bill Inmon and Ralph Kimball the pioneers of data warehousing; Data</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/833340535914677352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=833340535914677352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/833340535914677352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/833340535914677352'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/03/data-warehousing-101-requirements-for.html' title='Data Warehousing 101: Requirements for a Data Warehouse'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_b0R-QFcSgZ0/R9bi5whL6HI/AAAAAAAAAEg/bUwBWpNik8Y/s72-c/lamp_stack.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2176715863555482210</id><published>2008-02-13T07:55:00.000-08:00</published><updated>2008-02-13T08:22:29.174-08:00</updated><title type='text'>Don't Ever Use NOW() - `datetime field`</title><summary type='text'>***All point news bulletin***Do not ever use NOW() - `datetime field`!  Broadcast this from the mountaintops of open source to the valleys of companies who dabble in it.Instead, use the following:TIME_TO_SEC(TIMEDIFF(Now(),`datetime field`))There are other ways to do the above, just as long as you do not use NOW() - `datetime field`.Wanna see proof?mysql&gt; SELECT RIGHT(NOW(),8) `Now`, RIGHT(</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2176715863555482210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2176715863555482210' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2176715863555482210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2176715863555482210'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/02/dont-ever-use-now-datetime-field.html' title='Don&apos;t Ever Use NOW() - `datetime field`'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-1814095364452700058</id><published>2008-02-06T11:29:00.000-08:00</published><updated>2008-02-06T12:03:23.169-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='purpose of data warehouse'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='pentaho'/><category scheme='http://www.blogger.com/atom/ns#' term='OLTP'/><category scheme='http://www.blogger.com/atom/ns#' term='data warehouse'/><category scheme='http://www.blogger.com/atom/ns#' term='jasper'/><category scheme='http://www.blogger.com/atom/ns#' term='OLAP'/><title type='text'>Data Warehousing 101: The purpose of a data warehouse</title><summary type='text'>When your company decides that "it is time to build a data warehouse", what thoughts come to mind?1) A magical fairy ice cream land where data is presented in chocolate shells for everyone to digest perfectly;2) A big literal warehouse in the industrial section of town with rusty old containers;3) Another place to put data, which means another place for you to track and monitor additional </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/1814095364452700058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=1814095364452700058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1814095364452700058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1814095364452700058'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/02/data-warehousing-101-purpose-of-data.html' title='Data Warehousing 101: The purpose of a data warehouse'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_b0R-QFcSgZ0/R6oR2aUn44I/AAAAAAAAAEQ/6Hab2D4nqJk/s72-c/warehouse_big.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2744929503736859923</id><published>2008-01-30T08:38:00.000-08:00</published><updated>2008-10-11T14:12:45.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='what do you name date fields'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='field naming conventions'/><title type='text'>What Do You Name Date Fields?</title><summary type='text'>I have seen too many date fields that have been named after reserved key words that I need to make an entry for this... It's like naming your kid "Kid".  Wait a sec... that's happened many times before as well.I will make a "Proper Naming Conventions" page for mySQL after checking a few more sources first, but this date naming issue cannot wait another day.Thus..First Rule: Do not use a reserved </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2744929503736859923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2744929503736859923' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2744929503736859923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2744929503736859923'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/01/what-do-you-name-date-fields.html' title='What Do You Name Date Fields?'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-9042798787508992294</id><published>2008-01-23T07:22:00.000-08:00</published><updated>2008-01-23T20:17:26.973-08:00</updated><title type='text'>Sun + MySQL: One Week Later</title><summary type='text'>I really like the 21st century open source technology community.  20 years ago, if a company bought out another company, everyone would have their own island of opinions and response, and you would not know if you were on-track or even if the publicized reports were on-track either.Today, it is amazing to see the responses around the boards and blogs, which seems to keep the mainstream reports </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/9042798787508992294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=9042798787508992294' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/9042798787508992294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/9042798787508992294'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/01/sun-mysql-one-week-later.html' title='Sun + MySQL: One Week Later'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_b0R-QFcSgZ0/R5gRQKUn43I/AAAAAAAAAEI/f8SU6cHx0Rc/s72-c/one_million_dollars.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-4016542949153006687</id><published>2008-01-15T08:09:00.000-08:00</published><updated>2008-01-15T09:19:43.130-08:00</updated><title type='text'>An exercise in SELF JOINing</title><summary type='text'>There was only so much I could do for my 1976 Mustang.  I did not have money to put an Edelbrock head in, so I spent what little I had in a new stereo, a tinted back window, a new muffler that increased the neighborhood noise level a notch, and a couple of other random parts.  In the end, it really did not go any faster, and I was $650 poorer.I liken my experience with SELF JOIN to my 1976 </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/4016542949153006687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=4016542949153006687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4016542949153006687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4016542949153006687'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/01/exercise-in-self-joining.html' title='An exercise in SELF JOINing'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-1621530693618957220</id><published>2008-01-07T07:48:00.000-08:00</published><updated>2008-01-09T10:34:39.303-08:00</updated><title type='text'>How to Send a Report on Most Common Domain Names without Grinding Your DB</title><summary type='text'>This is a continuance from my previous entry on reversing an email address to search for a domain.  Minutes after I ran the following query,SELECT COUNT(1) FROM rv_emails WHERE rv_email LIKE REVERSE('%msn.com');I was asked to do a count of the top 50 domains in our table of email addresses.So, I simply changed my previous route by performing the following steps:1) Add a 'domain' column to my </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/1621530693618957220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=1621530693618957220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1621530693618957220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1621530693618957220'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2008/01/how-to-send-report-on-most-common.html' title='How to Send a Report on Most Common Domain Names without Grinding Your DB'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-3041040606288133298</id><published>2007-12-18T13:14:00.000-08:00</published><updated>2007-12-18T14:33:48.561-08:00</updated><title type='text'>How to Find Domain Names of Emails Without Using LIKE '%domain.com'</title><summary type='text'>I like working at companies where there are "problems related to success".  My colleague and I from a former company that I worked for in LA talked about two types of problems faced by business:Problems related to failure - the problems of having your doors open for business but few people know about it;Problems related to success -the problems of having so many people come through your doors </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/3041040606288133298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=3041040606288133298' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3041040606288133298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3041040606288133298'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/12/how-to-find-domain-names-of-emails.html' title='How to Find Domain Names of Emails Without Using LIKE &apos;%domain.com&apos;'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-1370471416607066133</id><published>2007-12-13T14:10:00.000-08:00</published><updated>2007-12-18T14:35:52.232-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql performance LIKE query vertical partition indexes'/><title type='text'>My One Night mySQL Road Trip</title><summary type='text'>I like driving.  It relaxes me.  I especially like driving in the Carolinas versus driving the freeways in Los Angeles.  In LA, you have to intentionally calm yourself down before going to the on ramp of the 101, 5 or the 10.  Here, in South Carolina, it is possible to drive highway speeds on the highways (in LA, it is possible, but only at night time or early in the morning).When I heard that </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/1370471416607066133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=1370471416607066133' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1370471416607066133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/1370471416607066133'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/12/my-one-night-mysql-road-trip.html' title='My One Night mySQL Road Trip'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-3828930685957708146</id><published>2007-12-06T12:27:00.000-08:00</published><updated>2007-12-06T14:18:21.349-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='MS SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Creating a table copy'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql vs. MS SQL'/><title type='text'>Creating Copies of Tables: MS SQL vs. MySql</title><summary type='text'>I was reminded the other day how  SQL Server was annoying in regards to table structure changes.  All I wanted to to was copy a table (with structure intact - keys, dependancies) with its data.How hard could that be?MS SQL in ActionFirst, I needed to do a complete DDL on TableOne and replace every instance of the word "TableOne" with "TableTwo".  It works, even though it is bulky and takes time, </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/3828930685957708146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=3828930685957708146' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3828930685957708146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/3828930685957708146'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/12/creating-copies-of-tables-ms-sql-vs.html' title='Creating Copies of Tables: MS SQL vs. MySql'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2450312778938785289</id><published>2007-11-30T14:20:00.001-08:00</published><updated>2007-12-04T13:26:49.980-08:00</updated><title type='text'>A Zip Code Solution - ...WHERE LEFT(zip_code,3) vs. This Article</title><summary type='text'>The Price is MySql with Jay PipesQuick!  Pick a curtain!  Do it now!Curtain #1:SELECT zip_code FROM table_name WHERE LEFT(zip_code,3) IN (123,456,789);What's under curtain #2 you ask?Well, I'm glad you asked!  It is...ALTER TABLE table_name ADD COLUMN zip3 INTEGER UNSIGNED ZEROFILL NOT NULL, ADD INDEX idx_zip3 (zip3);What?? Another column and another index?  My table already has 7,351 columns?  </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2450312778938785289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2450312778938785289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2450312778938785289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2450312778938785289'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/11/zip-code-solution-where-leftzipcode3-vs.html' title='A Zip Code Solution - ...WHERE LEFT(zip_code,3) vs. This Article'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-4957904603330464133</id><published>2007-11-20T13:49:00.000-08:00</published><updated>2007-11-20T14:18:54.673-08:00</updated><title type='text'>Table Joins vs. php Loops</title><summary type='text'>Table joins are fun and useful, but did you know that there are circumstances that a php loop will beat out table joins?For those of you who already know this, feel free to return to www.PlanetMySql.com.  But for the rest of us, read on...The Setup (fictional, but mimics my production environment)I have two tables, employees and termination_info.  Employees has 150,000 records and </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/4957904603330464133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=4957904603330464133' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4957904603330464133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/4957904603330464133'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/11/table-joins-vs-php-loops.html' title='Table Joins vs. php Loops'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-867532235331938676</id><published>2007-11-16T07:14:00.000-08:00</published><updated>2008-10-11T14:59:57.912-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iostat'/><category scheme='http://www.blogger.com/atom/ns#' term='dstat'/><category scheme='http://www.blogger.com/atom/ns#' term='sar'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='cpu utilization'/><category scheme='http://www.blogger.com/atom/ns#' term='mpstat'/><title type='text'>My Favorite Three Stooges Stats</title><summary type='text'>Quick... You have to let everyone (boss, biz dev, customer service, and random bean counters) know why everything is moving slowly!  Of course, rarely do people define what "everything" is, and what type of slowness is occuring.  But, in the face of customer service agents that cannot work because their pages will not render, generally all eyes are on the famed-dba-of-the-minute.So, with 7 people</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/867532235331938676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=867532235331938676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/867532235331938676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/867532235331938676'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/11/my-favorite-three-stooges-stats.html' title='My Favorite Three &lt;s&gt;Stooges&lt;/s&gt; Stats'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-5524488828347348825</id><published>2007-11-02T12:17:00.000-07:00</published><updated>2007-11-02T13:00:13.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='insert ignore into'/><category scheme='http://www.blogger.com/atom/ns#' term='unique index'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='insert records'/><category scheme='http://www.blogger.com/atom/ns#' term='dba'/><title type='text'>How to Select Unique Records from a table that does not have a Unique Index</title><summary type='text'>Many times DBAs work with data sets that are not the most optimal (in their opinion), and I recently had the pleasure of working with a table that did not have a unique identifier.  And I needed to get unique results from this table, as I would need to do this query in different forms in the future, without selecting records from the past.Caveat: I could not alter the table structure yet; I </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/5524488828347348825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=5524488828347348825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5524488828347348825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5524488828347348825'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/11/insert-unique-ids-from-table-that-does.html' title='How to Select Unique Records from a table that does not have a Unique Index'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-7047296009837554673</id><published>2007-10-30T07:18:00.000-07:00</published><updated>2007-10-30T07:45:08.689-07:00</updated><title type='text'>mySql Utility to Set Up a Slave Server, Unattended</title><summary type='text'>This utility written by Kevin Burton is worth checking into - even though it is a first version and needs to be modded for your purposes (in my case I had to alter the local mysql connection string).  However, in any case, this is going to be needed by us DBAs in the future, as we manage and build more and more slave servers.This is what the script does, in Kevin's words:This is a script to </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/7047296009837554673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=7047296009837554673' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/7047296009837554673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/7047296009837554673'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/10/mysql-utility-to-set-up-unattended.html' title='mySql Utility to Set Up a Slave Server, Unattended'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-877777000673858424</id><published>2007-10-25T12:00:00.000-07:00</published><updated>2007-10-25T13:19:25.161-07:00</updated><title type='text'>Google + mysql = distributed fun!</title><summary type='text'>Google seems to be everybody's favorite girlfriend these days.  We might even replace the antiquated statement "Midas touch" with "googlitis", a condition you get when google looks in your direction.  Your valuation goes up even if google does not become a successful bidder (MSN + facebook = $15 billion dollar valuation), and everybody wants to be your best friend, even if you are politely </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/877777000673858424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=877777000673858424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/877777000673858424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/877777000673858424'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/10/google-mysql-distributed-fun.html' title='Google + mysql = distributed fun!'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-2060363104236698887</id><published>2007-10-19T08:01:00.000-07:00</published><updated>2007-10-25T08:50:19.858-07:00</updated><title type='text'>IP Addresses: No more char(15)'s allowed!</title><summary type='text'>OK... This is my second entry on this blog.  And it is about something I want every mysql/php newbie to know at the starting gate:DON'T USE CHAR(15) FOR IP Address fields in mysql!Well... what about the periods in ip addresses, you say?Well... mysql has a FANTASTIC way of solving this issue!  Convert the standard ip address into an unsigned integer!ok... at first it sounds a little cryptic, but </summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/2060363104236698887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=2060363104236698887' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2060363104236698887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/2060363104236698887'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/10/ip-addresses-in-mysql-no-more-char15s.html' title='IP Addresses: No more char(15)&apos;s allowed!'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5856229816967035312.post-5575539062773674979</id><published>2007-09-05T08:23:00.000-07:00</published><updated>2007-09-05T12:16:14.640-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql performance blog hints tips SELECT HAVING clause statement SUM GROUP BY Canadian'/><title type='text'>The Underestimated Power of HAVING</title><summary type='text'>This is the query that just got me to thinking that I should blog about mySQL hints, tips, and ramblings.  So... thinking turned into action and now I have a blog!  The next step is to be able to keep it going so that it becomes useful to mySQL database administrators that are concerned about performance of mySQL and also need make sure that queries are written well.Now... onward and forward...</summary><link rel='replies' type='application/atom+xml' href='http://mysqlhints.blogspot.com/feeds/5575539062773674979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5856229816967035312&amp;postID=5575539062773674979' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5575539062773674979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5856229816967035312/posts/default/5575539062773674979'/><link rel='alternate' type='text/html' href='http://mysqlhints.blogspot.com/2007/09/underestimated-power-of-having.html' title='The Underestimated Power of HAVING'/><author><name>David H.</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
