You can’t load the data to influxdb AFAIK. InfluxDB is not an alternative to MySQL, it’s an additional database you can use in parallel with your primary DB. The recorder component requires an SQL database.
A solution is to disable the recorder component and push everything to InfluxDB, but then the history and the logbook components won’t work and you won’t see any graphs in the HASS UI.
Just in case you’ll be interested: I’ve been wondering the same, as Grafana is really slow with MySQL and I have 35GB of historical data in my Home Assistant over the last 2 years.
I was keen to migrate this data to InfluxDB, so wrote a small app. It currently supports only Sensor data, but I’ll be working on other items, as I’ll need the rest as well.