{"id":19832020,"url":"https://github.com/danielmartensson/csv2mysql","last_synced_at":"2025-09-18T09:31:48.820Z","repository":{"id":120604127,"uuid":"226202783","full_name":"DanielMartensson/CSV2MySQL","owner":"DanielMartensson","description":"Insert CSV into a MySQL/MariaDB database by using a schedule task","archived":false,"fork":false,"pushed_at":"2023-06-05T10:59:00.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-12T11:42:51.730Z","etag":null,"topics":["java","mariadb","mysql","spring-boot","springframework"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielMartensson.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-05T22:51:12.000Z","updated_at":"2024-09-11T17:26:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"43dd7ff4-a1cf-45ad-b4dd-3cfb77630f03","html_url":"https://github.com/DanielMartensson/CSV2MySQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMartensson%2FCSV2MySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMartensson%2FCSV2MySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMartensson%2FCSV2MySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMartensson%2FCSV2MySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielMartensson","download_url":"https://codeload.github.com/DanielMartensson/CSV2MySQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233466586,"owners_count":18680564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","mariadb","mysql","spring-boot","springframework"],"created_at":"2024-11-12T11:35:59.725Z","updated_at":"2025-09-18T09:31:43.430Z","avatar_url":"https://github.com/DanielMartensson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV2MySQL\n\nThis is a tool that can be used if you need to schedule a task that download CSV files from an FTP server, then import then delete these files on the FTP server. Then read the downloaded CSV files and import these into a MySQL/MariaDB database. Then delete these CSV files as well. \n\nJust open the project and go to the .properties files and set your configuration.\nI have been used this for lots of projects when it comes to CodeSys logging. \n\nThis tool is using the awesome Spring Framework.\n\n## How to use\n\nStep 1: Install at least OpenJDK 8 from AdoptOpenJDK\nStep 2: Install MySQL or MariaDB\nStep 3: Go to `application.properties` and change to your database configuration and username\n\n```\n# MySQL\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\nspring.datasource.url=jdbc:mysql://localhost:3306/CSV2MySQL?createDatabaseIfNotExist=true\nspring.datasource.username=myUser\nspring.datasource.password=myPassword\n\n# Hibernate\nspring.jpa.show-sql=true\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect\nhibernate.format_sql=true\n\n# Server\nserver.port = 8081\n```\n\nStep 4: Gto to `ftp.properties` and change to your password and username for the FTP server\n```\n# Enter connections\nftp.username = ITH\nftp.password = ITH\nftp.connectionPath = 192.168.0.52\nftp.folderPath = /FTP\n```\n\nStep5: Go to `schedule.properties` and change your scheduling configuration as well. The key `downloadCSVFiles` is used of you want to download files from FTP.\n```\n# Global enable\nschedule.enable = true\nschedule.downloadCSVFiles = true\nschedule.enableMail = true\n\n# Schedule lists\nschedule.ITHBAEPulsBenchIXPanelPathCSVFolder = C:\\\\Users\\\\Lab4\\\\Documents\\\\FTP\nschedule.ITHBAEPulsBenchIXPanelIntervall = 5000\n```\n\nStep6: Go to 'mail.properties' and change your configurations\n```\n# Mail - Transmitter\nmail.host=smtp.gmail.com\nmail.port=587\nmail.username=yourGmail@gmail.com\nmail.password=yourPassword\nmail.properties.mail.smtp.auth=true\nmail.properties.mail.smtp.starttls.enable=true\n\n# Mail - Reciever\nmail.destination = test@test.se\nmail.subject = Epost ITH\nmail.message = Det fungerar\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmartensson%2Fcsv2mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmartensson%2Fcsv2mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmartensson%2Fcsv2mysql/lists"}