{"id":19003785,"url":"https://github.com/anzo52/csv2mysql","last_synced_at":"2026-05-06T15:42:17.677Z","repository":{"id":204986911,"uuid":"713128074","full_name":"Anzo52/csv2mysql","owner":"Anzo52","description":"Export data from a csv file into a mysql database","archived":false,"fork":false,"pushed_at":"2023-11-02T02:22:38.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-01T19:13:39.293Z","etag":null,"topics":["converter","csv","csv-to-database","csv-to-mysql","csv-to-sql","csv2mysql","mysql","pandas"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anzo52.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":"2023-11-01T22:30:39.000Z","updated_at":"2024-03-19T03:07:55.000Z","dependencies_parsed_at":"2024-01-23T16:45:16.218Z","dependency_job_id":null,"html_url":"https://github.com/Anzo52/csv2mysql","commit_stats":null,"previous_names":["anzo52/csv2mysql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anzo52%2Fcsv2mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anzo52%2Fcsv2mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anzo52%2Fcsv2mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anzo52%2Fcsv2mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anzo52","download_url":"https://codeload.github.com/Anzo52/csv2mysql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240027414,"owners_count":19736210,"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":["converter","csv","csv-to-database","csv-to-mysql","csv-to-sql","csv2mysql","mysql","pandas"],"created_at":"2024-11-08T18:20:17.067Z","updated_at":"2026-04-20T20:30:21.642Z","avatar_url":"https://github.com/Anzo52.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ecsv2mysql\u003c/h1\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n[![Status](https://img.shields.io/badge/status-active-success.svg)]()\r\n[![GitHub Issues](https://img.shields.io/github/issues/Anzo52/csv2mysql.svg)](https://github.com/kylelobo/The-Documentation-Compendium/issues)\r\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/Anzo52/csv2mysql.svg)](https://github.com/Anzo52/csv2mysql/pulls)\r\n[![License](https://img.shields.io/badge/license-GPL3-blue.svg)](/LICENSE)\r\n\r\n\u003c/div\u003e\r\n\r\n---\r\n\r\n\u003cp align=\"center\"\u003e Python script to convert csv files to mysql database tables.\r\n    \u003cbr\u003e \r\n\u003c/p\u003e\r\n\r\n## 📝 Table of Contents\r\n\r\n- [About](#about)\r\n- [Getting Started](#getting_started)\r\n- [Usage](#usage)\r\n- [Built Using](#built_using)\r\n\r\n## 🧐 About \u003ca name = \"about\"\u003e\u003c/a\u003e\r\n\r\nThis project is a python script to convert csv files to mysql database tables. Only tested on Linux, LMDE 5, Debian 10.\r\n\r\n\r\n## 🏁 Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\r\n\r\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.\r\n\r\n### Prerequisites\r\n\r\nAs stated in [Getting Started](#getting_started), this project was only tested on Linux, LMDE 5, Debian 10, so built-in tools may not be available on other systems. Please create an issue if you have any problems.\r\nOther than that, you'll need to install the following dependencies (you'll find step-by-step instructions for the Python packages in the [Installing](#installing) section below):\r\n- Python 3.7 or higher\r\n- pip (Python package manager) \u003c-- I used debian's package manager to install this\r\n- Python packages:\r\n  - sqlalchemy\r\n  - pandas\r\n  - numpy\r\n- MySQL server (version 8.0.23) \u003c-- I used debian's package manager to install this\r\n- MySQL Workbench (version 8.0.23) \u003c-- I used debian's package manager to install this\r\n\r\nIt is recommended to use a virtual environment to install the dependencies. The following instructions will install the dependencies in a virtual environment.\r\nYou should also have a MySQL server running on your machine. You can download it from [here](https://dev.mysql.com/downloads/mysql/). Instructions for setting up a MySQL server can be found [here](https://dev.mysql.com/doc/mysql-getting-started/en/).\r\n\r\n### Installing and Using \u003ca name = \"installing\"\u003e\u003c/a\u003e\r\n\r\nHere's a list of the installation steps required to get the project up and running, it's assumed that you already have Python 3.7 or higher, pip, and venv installed. If you don't, please refer to the [Prerequisites](#prerequisites) section above or the [Python documentation](https://www.python.org/about/gettingstarted/):\r\n\r\n1. Clone the repository and cd into the project directory\r\n2. Create and activate a virtual environment\r\n3. Install the dependencies\r\n4. Create a MySQL database\r\n5. Run the script\r\n\r\n\r\n1. Clone the repository and cd into the project directory\r\n```bash\r\ngit clone https://github.com/Anzo52/csv2mysql.git\r\ncd csv2mysql\r\n```\r\n\r\n2. Create and activate a virtual environment\r\n```bash\r\npython3 -m venv venv\r\nsource venv/bin/activate\r\n```\r\n\r\n3. Install the dependencies\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n4. Create a MySQL database\r\n```bash\r\nmysql -u root -p\r\n```\r\n```sql\r\nCREATE DATABASE [database_name];\r\n```\r\n\r\n5. Run the script (you'll be prompted to enter the database name, username, and password. Make sure to use the same database name you used in step 4)\r\n```bash\r\npython3 csv2mysql.py\r\n```\r\n\r\n## ⛏️ Built Using \u003ca name = \"built_using\"\u003e\u003c/a\u003e\r\n\r\n- [Python](https://www.python.org/) - Programming language\r\n- [pandas](https://pandas.pydata.org/) - Data analysis and manipulation tool\r\n- [numpy](https://numpy.org/) - Scientific computing package\r\n- [sqlalchemy](https://www.sqlalchemy.org/) - SQL toolkit and Object Relational Mapper\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzo52%2Fcsv2mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanzo52%2Fcsv2mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzo52%2Fcsv2mysql/lists"}