How to get all segments in mysql

hi, all,

how to get all segments in mysql? i want to make a tool to load uploaded segments, but i cant gets all uploaded segments in mysql.

thanks,

Jenny