my-cmd - MySQL interactive and batch query command-line tool »

Download my-cmd Free Trial »

Connnect to MySQL

In interactive mode:

my-cmd> connect username:password@host:port/dbname;

example:

my-cmd> connect pan:withdata@192.168.0.102:3306/test

In batch mode:

my-cmd dsn="username:password@host:port/dbname"

example:

my-cmd dsn="pan:withdata@192.168.0.102:3306/test"


If you want to hide password

In interactive mode:

my-cmd> connect username@host:port/dbname;

example:

my-cmd> connect pan@192.168.0.102:3306/test

In batch mode:

my-cmd dsn="username@host:port/dbname"

example:

my-cmd dsn="pan@192.168.0.102:3306/test"


Disconnect from MySQL:

my-cmd> disconnect;