Connections to a local MySQL server with the mysql command-line client are easy to make. Simply run mysql, providing these optional arguments:
Other arguments can be specified to change how mysql behaves or to where it attempts to connect. Run mysql -? to see a complete list of possible arguments.
If you are unfamiliar with user accounts, see Chapter 6, "User Management and Security," for more information.