Uses of mysqladmin with a remote server


This is how you can use the mysqladmin tool with a remote MySQL server.

Assume MySQL is installed on 172.22.128.25, and user remote with password 12345 on your current host has been granted the necessary rights.

Ping

mysqladmin -h 172.22.128.25 ping --user=remote --password=12345

Get status

mysqladmin -h 172.22.128.25 status --user=remote --password=12345

Get version

mysqladmin -h 172.22.128.25 version --user=remote --password=12345

Create a database

mysqladmin -h 172.22.128.25 create logdb --user=remote --password=12345

Drop a database

mysqladmin -h 172.22.128.25 drop logdb --user=remote --password=12345

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: