You have to use sqoop to export data from hdfs to mysql, first you have to create a table in mysql with a schema based on the type of data you have then use the below command to export the data from hdfs to mysql in the web console:
$ sqoop export --connect jdbc:mysql://sqoopdb.edu.cloudlab.com/databasename --table tabename --username labuser --password edureka -m 1 --fields-terminated-by "," --lines-terminated-by "\n" --export-dir /user/edureka_422446/spark/county_facts_dictionary.csv