Fixed #22391 -- Use pymysql if MySQLdb not available.