Show variables. Mysql --user="root" --password="password" --execute='show variables like "max_connections";'.