{"id":23093118,"url":"https://github.com/crispengari/mysql-python","last_synced_at":"2025-04-03T18:45:01.877Z","repository":{"id":141094780,"uuid":"528133444","full_name":"CrispenGari/mysql-python","owner":"CrispenGari","description":"🎨 this repository contains some mysql and python examples.","archived":false,"fork":false,"pushed_at":"2022-09-09T06:06:59.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T17:02:42.295Z","etag":null,"topics":["mysql","mysql-databases","mysql-server","python","python-mysql-connector"],"latest_commit_sha":null,"homepage":"","language":"Python","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/CrispenGari.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":"2022-08-23T19:22:50.000Z","updated_at":"2022-08-23T19:26:52.000Z","dependencies_parsed_at":"2024-05-31T05:02:32.138Z","dependency_job_id":null,"html_url":"https://github.com/CrispenGari/mysql-python","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/CrispenGari%2Fmysql-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2Fmysql-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2Fmysql-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2Fmysql-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrispenGari","download_url":"https://codeload.github.com/CrispenGari/mysql-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061234,"owners_count":20877166,"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":["mysql","mysql-databases","mysql-server","python","python-mysql-connector"],"created_at":"2024-12-16T21:46:30.220Z","updated_at":"2025-04-03T18:45:01.858Z","avatar_url":"https://github.com/CrispenGari.png","language":"Python","readme":"### MySQL Python\nIn this one we are going to learn how we can configure python to connect with mysql server.\n\n### Installing MSQL Connector\n\n```shell\npip install mysql-connector-python\n```\n\n### Testing the connection.\nTo test the connection create a python file and add the following code in it:\n\n```python\nfrom mysql import connector\n\nconfig ={\n    'host': '127.0.0.1' or 'localhost',\n    'user': 'root',\n    'password': 'root',\n    'database': 'todos',\n    'port': 3306\n}\nconn = connector.connect(**config)\n# closing the connection\nconn.close()\n```\n\n### Refs\n\n1. [w3schools](https://www.w3schools.com/python/python_mysql_getstarted.asp)\n2. [dev.mysql.com](https://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrispengari%2Fmysql-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrispengari%2Fmysql-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrispengari%2Fmysql-python/lists"}