mysql command line
You can connect to mysql database from the command line:
mysql -u username -p -h IP -P port
and then issue you queries.
The mysql program is a general purpose client that sends SQL statements to the server, and thus can perform any administrative operation that can be expressed using SQL:
- Create and drop databases.
- Create, drop, and modify tables and indexes.
- Retrieve data from tables.
- Modify data in tables.
- Set up user accounts, grant and revoke privileges, and set passwords.
- Display or reset server status variables.
- Reload the grant tables.
- Flush the log files or various server caches.
- Start or stop replication slave server or display replication status
- Display information about client connections or kill connections.
You can use mysql in interactive mode, where you type in queries and see results. mysql also can operate in batch mode, in which it reads queries stored in a text file.
page_revision: 1, last_edited: 1232487899|%e %b %Y, %H:%M %Z (%O ago)





