Nov-19-2021, 06:49 AM
Hello again everyone! Admins, Mods (Thank you again for the prior threads, btw).
I am now up against parsing a huge amount of Data and the only way to do so is by learning Python.
I figure I would start with this thread; as I am at a stuck point with MySQL Connectors working with Debian 10 Buster and Python 3.x (No matter the solution; I cannot seem to get it working). Even the code from Oreilly Web Scraping with Python didn't work (I bought the Book).
Continuing;
I feel the best way to resolve this is to use a base line foundational block found from W3 Schools here https://www.w3schools.com/python/python_mysql_getstarted.asp
Code found in that block for Python Connector to MySQL is :
I am now up against parsing a huge amount of Data and the only way to do so is by learning Python.
I figure I would start with this thread; as I am at a stuck point with MySQL Connectors working with Debian 10 Buster and Python 3.x (No matter the solution; I cannot seem to get it working). Even the code from Oreilly Web Scraping with Python didn't work (I bought the Book).
Continuing;
I feel the best way to resolve this is to use a base line foundational block found from W3 Schools here https://www.w3schools.com/python/python_mysql_getstarted.asp
Code found in that block for Python Connector to MySQL is :
import mysql.connector mydb = mysql.connector.connect( host="localhost", user="yourusername", password="yourpassword" ) print(mydb)This is what happens when I run it:
python3 w3.mysql.python.connector.py Traceback (most recent call last): File "w3.mysql.python.connector.py", line 1, in <module> import mysql.connector File "/home/brandon/.local/lib/python3.5/site-packages/mysql/connector/__init__.py", line 54, in <module> from .connection import MySQLConnection File "/home/brandon/.local/lib/python3.5/site-packages/mysql/connector/connection.py", line 451 f"This connection is using {tls_version} which is now " ^ SyntaxError: invalid syntax
“And one of the elders saith unto me, Weep not: behold, the Lion of the tribe of Juda, the Root of David, hath prevailed to open the book,...” - Revelation 5:5 (KJV)
“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)
#LetHISPeopleGo
“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)
#LetHISPeopleGo