Socket
Socket
Sign inDemoInstall

mysqlonsockets

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mysqlonsockets

A module which helps you use your MYSQL database over local network by connecting another devices.


Maintainers
1

Readme

mysqlonsockets


pip install mysqlonsockets

Developed by Vedant Barhate (c) 2022

You need basic knowledge of Python And MySQL to use this package.

This package is useful when you want to use your MySQL database from one device on another devices.

Example

Creating A Server


from mysqlonsockets import Server

server = Server(server_host='<IPv4 addr>', server_port=9999, db_host='localhost', db_user='root', db_pswd='<user-pswd>', db_name='<database name>')

server.startServer()

# When You Are Done

server.stopServer()

Creating A Client


from mysqlonsockets import Client

client = Client(host='<IPv4 addr of device to join>', port=9999)

client.connectClient()

data = askQuery('<SQL-Query>')

print(data)

# When You Are Done

client.closeClient()

Keywords

FAQs


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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc