Connecting with mysql.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 15 Aug 2018 15:16:47 +0300
changeset 2266 373af6f0e7f8
parent 2265 31e11d79a712
child 2267 2509bce24bb8
Connecting with mysql.
mysql.rst
--- a/mysql.rst	Mon Aug 13 13:52:49 2018 +0300
+++ b/mysql.rst	Wed Aug 15 15:16:47 2018 +0300
@@ -6,31 +6,33 @@
 .. contents::
    :local:
 
-SQL clients.
-============
+SQL clients
+===========
 
 https://mariadb.com/kb/en/mariadb/clients-and-utilities/
   Clients and Utilities.
 https://mariadb.com/kb/en/mariadb/graphical-and-enhanced-clients/
   Graphical and Enhanced Clients.
 
-mysql.
-------
+mysql
+-----
 
-Official client. Install ``mariadb-client`` package - ``mysql`` utility
-will be installed with dependent package.
+Official client. Install ``mariadb-client`` package.
 
 Usage::
 
   $ mysql -u $USER -p
   Enter password:   <== Type password.
 
+  $ mysql --host=$HOST --user=$USER --password=$PASS
+  $ mysql --host=$HOST --user=$USER --password=$PASS  $DATABASE
+
 To save content of session interaction in ``mysql`` use::
 
   mysql> tee out.txt
 
-mycli.
-------
+mycli
+-----
 
 Python command line client with completion. Usage::