MySQL is the actual database system that uses the Structured Query Language to process data. MySQL is currently the most popular open source database and is frequently utilized with PHP to create dynamic websites. That said, MySQL also works well with Python, Ruby and Perl. This article will guide you on how to access the MySQL tool via command line.
Accessing MySQL via command line
- Log into your server via ssh.
- Once in your shell, you will at the command line prompt. To log into the MySQL monitor, use the following syntax:mysql -u
-p
The
Your MySQL connection id is 19472
Server version: 5.5.30-cll MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.
mysql>
very nice article