Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
devart-mysql-connector
Advanced tools
Python Connector for MySQL is a connectivity solution for accessing MySQL databases from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows, macOS, and Linux.
Direct connection
The connector enables you to establish a direct connection to MySQL from a Python application via TCP/IP, eliminating the need for the database client library. A direct connection increases the speed of data transmission between the application and MySQL database server. It also streamlines the deployment process since you don't have to distribute any client libraries with the application.
Secure communication
The connector supports encrypted communications using SSL/TLS, SSH tunneling, and HTTP/HTTPS tunneling.
To retrieve data from a database:
Import the module.
import devart.mysql
Connect to a database using the connect()
module method and obtain a connection
object.
my_connection = devart.mysql.connect(
Server="your_server",
Database="your_database",
UserId="your_username",
Password="your_password"
)
Create a cursor
object using the cursor()
connection method.
my_cursor = my_connection.cursor()
Execute the SQL statement using the execute()
cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve the result set using one of the fetch*()
cursor methods.
for row in my_cursor.fetchall():
print(row)
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/mysql/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/mysql/activate-a-license.htm
Python Connector for MySQL 1.2
FAQs
New level of functionality and performance in data access via Python
We found that devart-mysql-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.