Example Python codes that do the processes between MySQL database and Excel spreadsheet files.
https://www.youtube.com/watch?v=axraNvtHjO4
-
Download Python 3 installation file from https://www.python.org/
-
Install pipenv as global package by this command.
pip install pipenv
Note: for macOS with pre-installed Python 2, use pip3 instead of pip.
-
Download this project.
-
Open PyCharm and choose File -> Open... -> Then select project folder
-
Fix any warning recommended by PyCharm.
-
Make sure that every project packages is installed, by open PyCharm Terminal and type command.
pipenv install
- Open "import_data.py" or "export_data.py", right click on code area, select Run '{file name}'
-
Download this project
-
Open Terminal or Command Prompt at project folder, then install packages.
pipenv install
- Activate pipenv environment.
pipenv shell
- Run "import_data.py" or "export_data.py"
python import_data.py
or
python export_data.py