The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> MySQL Help
|
What is the best way to test queires that may crash the database server?
Discuss What is the best way to test queires that may crash the database server? in the MySQL Help forum on Dev Shed. What is the best way to test queires that may crash the database server? MySQL Help forum discussing administration, SQL syntax, and other MySQL-related topics. MySQL is an open-source relational database management system (RDBMS).
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

July 5th, 2012, 05:37 PM
|
 |
A Change of Season
|
|
|
|
|
What is the best way to test queires that may crash the database server?
When dealing with multi-million row tables, there are times where I have to write queries that could return wrong results (due to wrong JOIN or bad sql practice).
What would be the best way to test such queries before running them on the server? I see sometimes a wrong query can jam the whole database server. Even "EXPLAIN query" can jam the server.
Does it make a difference to run the queries from out of phpmyadmin? For example in Putty?
Anyways, tips would be very appreciated.
__________________
Devshed people, please fix the spell check:
System is temporarily busy. Please try again in a few seconds.
|

July 5th, 2012, 05:46 PM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
Quote: | Originally Posted by zxcvbnm What would be the best way to test such queries before running them on the server? | test them on your desktop computer, where you have a test database with the exact same structure as your live server, but fewer rows
|

July 5th, 2012, 08:16 PM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by r937 test them on your desktop computer, where you have a test database with the exact same structure as your live server, but fewer rows |
Does it make difference if it is via phpmyadmin or command line?
|

July 5th, 2012, 09:01 PM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
Quote: | Originally Posted by zxcvbnm Does it make difference if it is via phpmyadmin or command line? | nope
are you by any chance on a mac?
|

July 5th, 2012, 10:27 PM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by r937 nope
are you by any chance on a mac? |
I have an imac and a mac book pro as well.
Why?
Last edited by zxcvbnm : July 5th, 2012 at 10:32 PM.
|

July 6th, 2012, 04:34 AM
|
 |
SQL Consultant
|
|
Join Date: Feb 2003
Location: Toronto Canada
|
|
|
because you're a musician and you're using phpmyadmin
if you were on a pc, i'd recommend you switch to heidisql
|

July 6th, 2012, 07:15 PM
|
 |
A Change of Season
|
|
|
|
Quote: | Originally Posted by r937 because you're a musician and you're using phpmyadmin
if you were on a pc, i'd recommend you switch to heidisql |
Logic studio and Reason (music things) are on Mac, phpmyadmin is here on this pc (Windows 7).
I check heidisql.
Thanks
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|