
{"id":19157,"date":"2022-08-24T22:58:55","date_gmt":"2022-08-24T17:28:55","guid":{"rendered":"https:\/\/valavil.in\/?p=19157"},"modified":"2022-08-24T22:58:55","modified_gmt":"2022-08-24T17:28:55","slug":"verifying-mysql-connector-python-installation","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2022\/08\/24\/verifying-mysql-connector-python-installation\/","title":{"rendered":"Verifying MySQL Connector\/Python installation"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">$python3\nPython 3.10.6 (main, Aug 10 2022, 11:19:32) [GCC 12.1.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; import mysql.connector\n&gt;&gt;&gt; \n&gt;&gt;&gt; \n&gt;&gt;&gt; mysql.connector.connect(host='localhost',\n...                         database='learning',\n...                         user='jeff',\n...                         password='sixer')\n&lt;mysql.connector.connection_cext.CMySQLConnection object at 0x7f9ddd630400&gt;\n&gt;&gt;&gt; \n$cat ted.py \nimport mysql.connector\n\n\nmysql.connector.connect(host='localhost',\n\t\t\tdatabase='learning',\n\t\t\tuser='jeff',\n\t\t\tpassword='sixer')\n$\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$python3 Python 3.10.6 (main, Aug 10 2022, 11:19:32) [GCC 12.1.0] on linux Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information. &gt;&gt;&gt; import mysql.connector &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; mysql.connector.connect(host=&#8217;localhost&#8217;, &#8230; database=&#8217;learning&#8217;, &#8230; user=&#8217;jeff&#8217;, &#8230; password=&#8217;sixer&#8217;) &lt;mysql.connector.connection_cext.CMySQLConnection object at 0x7f9ddd630400&gt; &gt;&gt;&gt; $cat ted.py import mysql.connector mysql.connector.connect(host=&#8217;localhost&#8217;, database=&#8217;learning&#8217;, user=&#8217;jeff&#8217;, password=&#8217;sixer&#8217;) $<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/19157"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=19157"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/19157\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=19157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=19157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=19157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}