This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Gouache painting of a crowded kitchen counter of vegetable bowls with an extra cart beside it, one bowl vermilion.

Internal Temporary Tables in MySQL: When a Query Spills to Disk

February 11, 2021
Pinal Dave
SQL Performance
MariaDB, MySQL, SQL Performance, SQL Scripts

MySQL and MariaDB build internal temporary tables behind your back for GROUP BY, DISTINCT, UNION and derived tables. This post counts them with status counters, reads them in EXPLAIN, shows what pushes one to disk, and removes one with an index.

Read More
The beginning of an ordered line of pebbles occupies a separate tray compartment

Retrieve TOP 10 Rows Without Using TOP or LIMIT? – Interview Question of the Week #247

October 20, 2019
Pinal Dave
SQL Interview Questions and Answers
MariaDB, MySQL, PostgreSQL, SQL Server

Question: Retrieve TOP 10 Rows Without Using TOP or LIMIT? We do not want to use TOP or LIMIT as they are actually not an ANSI implementation.

Read More
Gouache painting: a workshop shelf with a row of different small model engines: a little steam engine, a compact motor and a wind-up mechanism; one engine is painted vermilion

MariaDB – MySQL – Show Engines to Display All Available and Supported Engine

October 16, 2019
Pinal Dave
SQL Tips and Tricks
MariaDB, MySQL

I inspect each Supported Engine with SHOW ENGINES on MariaDB. A customer using MariaDB alongside SQL Server asked about this list.

Read More
Gouache painting of a wooden kitchen pass-through with an empty tray on one side and a tray with a teapot coming back, a vermilion towel on the sill.

MySQL OUT Parameter: IN, OUT and INOUT in Stored Procedures

October 14, 2019
Pinal Dave
SQL Tips and Tricks
MariaDB, MySQL, SQL Scripts, SQL Stored Procedure

A MySQL OUT parameter lets a stored procedure hand a value back to the caller through a variable. This post tests IN, OUT and INOUT on a small table, shows the error you get when you pass a literal, and compares the syntax with SQL Server.

Read More
Gouache painting: a tin-can telephone, two paper cups joined by a taut vermilion string stretched across a gap between a slate-blue windowsill and a sage-green doorway

Connect to MySQL From the Command Prompt: Host, Port, User

March 25, 2014
Pinal Dave
SQL Tips and Tricks
Command Line, MariaDB, MySQL, SQL Connection

To connect to MySQL from the command prompt, you pass a host, a port, a user and a password to the mysql client. This post runs every switch, then shows the exact error that a wrong port, user, password or database produces.

Read More
Gouache painting: a long archive wall of identical wooden drawers, one pulled open with a brass lamp beside it and a small vermilion tag on its handle

Find mysqld.exe on Windows and Fix ‘mysql’ Is Not Recognized

November 8, 2013
Pinal Dave
SQL Tips and Tricks
Command Line, MariaDB, MySQL, SQL Error Messages, Windows

To find mysqld.exe on Windows, search the drive with dir or where, or ask the running server where it lives. This post fixes the ‘mysql’ is not recognized error by adding the bin folder to PATH, and it shows every command with its real output.

Read More
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com