{"id":3856,"date":"2019-03-20T21:09:10","date_gmt":"2019-03-20T15:39:10","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=3856"},"modified":"2019-03-21T09:16:55","modified_gmt":"2019-03-21T03:46:55","slug":"tutorial-on-how-to-connect-python-with-mysql","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/","title":{"rendered":"Tutorial on how to connect python with MySQldb"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Tutorial on how to connect python with MySQldb<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Date posted: 20\/03\/2019<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Introduction:<\/h4>\n\n\n\n<p>In this article helps you in  connect python with MySQldb and insert queries  in DB.&nbsp; This example is explained based on Linux environment in Centos 7.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg\" alt=\"\" class=\"wp-image-3861\" width=\"280\" height=\"198\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites:<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>For centOS and RHEL  based environment:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code># sudo yum install python<\/code><\/pre>\n\n\n\n<p> 2. Pip installation is most important for installing python packages<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># curl -O https:\/\/bootstrap.pypa.io\/get-pip.py<\/code><\/pre>\n\n\n\n<p>3. Confirm the installed PIP version so that we will proceed our work further:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># pip \u2013version<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"> <br><strong>Importing Modules and their Pip Installation:<\/strong> <\/h4>\n\n\n\n<p>While Importing, if the packaging Modules of&nbsp; any one among the above missed, will arise&nbsp;<strong>&nbsp;Import error.<\/strong> To eradicate the error follow these step by step modules to import&nbsp; using pip Installation.<\/p>\n\n\n\n<p>1. Importing Mysqldb:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Yum install MYSQL-python<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/11\/blog-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"178\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/11\/blog-4.png\" alt=\"\" class=\"wp-image-2989\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/blog-4.png 470w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/blog-4-300x114.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/a><\/figure>\n\n\n\n<p>2. Importing mysql.connector:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install mysql-connector-python<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/11\/Blog1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"169\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2018\/11\/Blog1.png\" alt=\"\" class=\"wp-image-2991\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/Blog1.png 796w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/Blog1-300x64.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/11\/Blog1-768x163.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Create a table and insert into it<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env python\n\n# Connect to db and create a table called blog that each have a name field and insert a couple blogs\n\nimport MySQLdb as mysqldb\n\nconnection = mysqldb.connect('localhost', 'bloguser', 'blogpw', 'blogdb');\n\nwith connection:\n    cursor = connection.cursor()\n    cursor.execute(\"create table blogs(id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(25))\")\n    cursor.execute(\"insert into blogs(name) values('author')\")\n cursor.execute(\"insert into blogs(name) values('editor')\")\n cursor.execute(\"insert into blogs(name) values('admin')\")\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>We can verify this on the MySQL side after running<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql&gt; select * from blogs;\n+----+-----------+\n| id | name      |\n+----+-----------+\n| 2 | author    |\n| 3 | editor    |\n| 4 | admin     |\n+----+-----------+\n3 rows in set (0.00 sec)\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Select data from a table<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env python\n\n# Connect to db and create a table called blogs that each have a name field and insert a couple blogs\n\nimport MySQLdb as mysqldb\n\nconnection = mysqldb.connect('localhost', 'bloguser', 'blogpw', 'blogdb');\n\nwith connection:\n    cursor = connection.cursor()\n    cursor.execute(\"select * from blogs\")\nblogs = cursor.fetchall()\n    for blog in blogs:\n        print(blog)\n<\/code><\/pre>\n\n\n\n<p>\n\nThat&#8217;s it! Hope it&#8217;s useful.\n\n<\/p>\n\n\n\n<p>Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonix solutions<\/a>.<\/p>\n\n\n\n<p>You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial on how to connect python with MySQldb Date posted: 20\/03\/2019 Introduction: In this article helps you in connect python with MySQldb and insert queries in DB.&nbsp; This example is explained based on Linux environment in Centos 7. Prerequisites: For centOS and RHEL based environment: 2. Pip installation is most&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Tutorial on how to connect python with MySQldb<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[386,387,259],"tags":[586,179,585,292],"class_list":{"0":"post-3856","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-database","7":"category-mysql-database","8":"category-python","9":"tag-import-mysqldb","10":"tag-mysql-2","11":"tag-pip-installation","12":"tag-python","13":"h-entry","15":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Tutorial on how to connect python with MySQldb Date posted: 20\/03\/2019 Introduction: In this article helps you in connect python with MySQldb and insert queries in DB.&nbsp; This example is explained based on Linux environment in Centos 7. Prerequisites: For centOS and RHEL based environment: 2. Pip installation is most&hellip; Continue Reading Tutorial on how to connect python with MySQldb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-20T15:39:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-21T03:46:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Tutorial on how to connect python with MySQldb\",\"datePublished\":\"2019-03-20T15:39:10+00:00\",\"dateModified\":\"2019-03-21T03:46:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/\"},\"wordCount\":167,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/mysql-python-connect.jpg\",\"keywords\":[\"Import mysqldb\",\"mysql\",\"Pip installation\",\"python\"],\"articleSection\":[\"Database\",\"Mysql\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/mysql-python-connect.jpg\",\"datePublished\":\"2019-03-20T15:39:10+00:00\",\"dateModified\":\"2019-03-21T03:46:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/mysql-python-connect.jpg\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/mysql-python-connect.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/tutorial-on-how-to-connect-python-with-mysql\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial on how to connect python with MySQldb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Tutorial on how to connect python with MySQldb Date posted: 20\/03\/2019 Introduction: In this article helps you in connect python with MySQldb and insert queries in DB.&nbsp; This example is explained based on Linux environment in Centos 7. Prerequisites: For centOS and RHEL based environment: 2. Pip installation is most&hellip; Continue Reading Tutorial on how to connect python with MySQldb","og_url":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2019-03-20T15:39:10+00:00","article_modified_time":"2019-03-21T03:46:55+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Tutorial on how to connect python with MySQldb","datePublished":"2019-03-20T15:39:10+00:00","dateModified":"2019-03-21T03:46:55+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/"},"wordCount":167,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg","keywords":["Import mysqldb","mysql","Pip installation","python"],"articleSection":["Database","Mysql","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/","url":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg","datePublished":"2019-03-20T15:39:10+00:00","dateModified":"2019-03-21T03:46:55+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/03\/mysql-python-connect.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/tutorial-on-how-to-connect-python-with-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorial on how to connect python with MySQldb"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-10c","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3856"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3856\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}