This method raises the NotSupportedError exception. Instead, use the SHOW PROCESSLIST statement or query the tables found in the database INFORMATION_SCHEMA.
SHOW PROCESSLIST
INFORMATION_SCHEMA
This MySQL Server functionality is deprecated.