C:\dbs>c:\dbs\5.0\bin\mysql -uroot --port=3500 --prompt="mysql 5.0 > " Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.0.97-Win X64 Source distribution Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.0 > CREATE DATABASE _sample; Query OK, 1 row affected (0.13 sec) mysql 5.0 > USE _sample; Database changed mysql 5.0 > CREATE TABLE sample (id INT PRIMARY KEY); Query OK, 0 rows affected (0.01 sec) mysql 5.0 > DELETE FROM sample WHERE id IN (SELECT * FROM (SELECT id FROM sample) AS hack); Query OK, 0 rows affected (0.03 sec) C:\dbs>c:\dbs\5.1\bin\mysql -uroot --port=3510 --debug-info --prompt="mysql 5.1 > " Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.74-Win X64 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.1 > CREATE DATABASE _sample; Query OK, 1 row affected (0.00 sec) mysql 5.1 > USE _sample; Database changed mysql 5.1 > CREATE TABLE sample (id INT PRIMARY KEY); Query OK, 0 rows affected (0.00 sec) mysql 5.1 > DELETE FROM sample WHERE id IN (SELECT * FROM (SELECT id FROM sample) AS hack); Query OK, 0 rows affected (0.05 sec) C:\dbs>c:\dbs\5.5\bin\mysql -uroot --port=3550 --prompt="mysql 5.5 > " Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.5.47 Source distribution PULL: 2015-NOV-07 Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.5 > CREATE DATABASE _sample; Query OK, 1 row affected (0.00 sec) mysql 5.5 > USE _sample; Database changed mysql 5.5 > CREATE TABLE sample (id INT PRIMARY KEY); Query OK, 0 rows affected (0.02 sec) mysql 5.5 > DELETE FROM sample WHERE id IN (SELECT * FROM (SELECT id FROM sample) AS hack); Query OK, 0 rows affected (0.06 sec) C:\dbs>c:\dbs\5.6\bin\mysql -uroot --port=3560 -p --prompt="mysql 5.6 > " Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.6.28 Source distribution PULL: 2015-NOV-07 Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.6 > CREATE DATABASE _sample; Query OK, 1 row affected (0.02 sec) mysql 5.6 > USE _sample; Database changed mysql 5.6 > CREATE TABLE sample (id INT PRIMARY KEY); Query OK, 0 rows affected (0.03 sec) mysql 5.6 > DELETE FROM sample WHERE id IN (SELECT * FROM (SELECT id FROM sample) AS hack); Query OK, 0 rows affected (0.02 sec)