Skip to content

danteBenitez/mydbclient-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple MySQL DB client CLI (WIP)

This simple CLI connects to a MySQL database and allows you to run queries and see the results. It implements a very simplified version of the MySQL protocol, and is not intended to be used in production.

Usage

The CLI reads the config values from a TOML file that you pass as a parameter. The file should look like this:

username = "username"
password = "password"
db_name  = "test"
host  = "127.0.0.1"
port = 3306

Progress

  • Read configuration file and print errors when needed.
    • Read username, password, db_name, host and port.
  • Connect to the database via TCP/IP's abstraction (std::net::TcpStream in Rust).
  • Complete handshake with the server.
    • Send authentication to the server.
  • Send a query to the server.
  • Parse the result and print it to the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages