-- Run multiple procedures on all databases

SELECT DISTINCT CONCAT (
        'use ',
        table_schema,
        ';select* from WP_Info;select* from WP_UserList;select* from WP_SiteRoles;'
        ) AS Script
FROM `information_schema`.`columns`
WHERE table_schema NOT IN (
        'information_schema',
        'mysql',
        'test'
        )