Description:
If there is no default database SHOW ENGINE NDB STATUS is empty:
mysql> select database ();
+-------------+
| database () |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)
mysql> show engine ndb status;
Empty set (0.00 sec)
mysql> use test;
Database changed
mysql> show engine ndb status;
+-----------------------+---------+------+--------+
| free_list | created | free | sizeof |
+-----------------------+---------+------+--------+
| NdbTransaction | 4 | 4 | 296 |
| NdbOperation | 8 | 8 | 792 |
| NdbIndexScanOperation | 0 | 0 | 920 |
| NdbIndexOperation | 0 | 0 | 800 |
| NdbRecAttr | 0 | 0 | 96 |
| NdbApiSignal | 16 | 16 | 144 |
| NdbLabel | 0 | 0 | 200 |
| NdbBranch | 0 | 0 | 32 |
| NdbSubroutine | 0 | 0 | 72 |
| NdbCall | 0 | 0 | 24 |
| NdbBlob | 0 | 0 | 312 |
| NdbReceiver | 0 | 0 | 96 |
+-----------------------+---------+------+--------+
12 rows in set (0.00 sec)
How to repeat:
1. connect without specifying database name
2. run: show engine ndb status