public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Keith Christian <keith1christian@gmail.com>
To: cygwin@cygwin.com
Subject: Various questions about 10.1.26-MariaDB on CYGWIN_NT-10.0 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin
Date: Mon, 06 Nov 2017 00:30:00 -0000	[thread overview]
Message-ID: <CAFWoy7EyAKRmKxr_DYXAp_enof3ZvCc9rojHy6FZPE_yBp3-Dg@mail.gmail.com> (raw)

-----
----- Background:
-----

After much trial and error, I installed MariaDB and its mysql client
on the latest Cygwin.

$ mysql_install_db
$ cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
$ mysql
$ mysql -u root -p

Created a 'keithdb' database as the MySQL/MariaDB 'root' user

Also created a 'keith' user and want to add "full" permission TO the
'keithdb' database for this new 'keith' user.

I've tried all of the following grant commands below and none of them
work.  I'm obviously missing something here.  I see that the grant
syntax has changed from older MySQL to MariaDB;




-----
----- Question 1: Could someone help me with the GRANT syntax for
MariaDB 10.1.26?  Even the web pages for MariaDB did not work, so I
must have a fundamental problem.
-----
     1  show grants;
     2  GRANT ALL PRIVILEGES ON keithdb TO 'keith'@'localhost' WITH
GRANT OPTION;
     3  GRANT ALL PRIVILEGES ON 'keithdb 'to 'keith'@'localhost' WITH
GRANT OPTION;
     4  GRANT ALL PRIVILEGES ON 'keithdb' TO 'keith'@'localhost' WITH
GRANT OPTION;
     5  GRANT ALL ON 'keithdb' TO 'keith'@'localhost' WITH GRANT OPTION;
     6  GRANT ALL ON keithdb TO 'keith'@'localhost' WITH GRANT OPTION;
     7  GRANT ALL ON database keithdb TO 'keith'@'localhost' WITH GRANT OPTION;
     8  GRANT ALL 'keith'@'localhost' ON keithdb WITH GRANT OPTION;




-----
----- Question 2:  Why does the login below show "Current user:"
keith@localhost@localhost?  Seems that is should be only
"keith@localhost."
-----
$ mysql -u 'keith'@'localhost'
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 21
Server version: 10.1.26-MariaDB Source distribution

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> status
--------------
mysql  Ver 15.1 Distrib 10.1.26-MariaDB, for CYGWIN (x86_64) using
EditLine wrapper

Connection id:          21
Current database:
Current user:           keith@localhost@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server:                 MariaDB
Server version:         10.1.26-MariaDB Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /var/run/mysql.sock
Uptime:                 1 day 2 hours 7 min 50 sec

Threads: 1  Questions: 110  Slow queries: 0  Opens: 17  Flush tables:
1  Open tables: 11  Queries per second avg: 0.001
--------------

MariaDB [(none)]> quit
Bye




-----
----- Question 3:  How can I get GNU readline back as the editor for
the mysql client?
-----
Someone else asked this question but the answer appeared difficult.


Thanks for your time and suggestions, Cygwin list folks.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2017-11-06  0:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-06  0:30 Keith Christian [this message]
2017-11-06  6:45 ` Wayne Davison
2017-11-06 13:25   ` Keith Christian
2017-11-06 19:33   ` Yaakov Selkowitz
2017-11-06 20:52     ` Keith Christian
2017-11-06 22:29     ` Wayne Davison
2017-11-07 19:50       ` Keith Christian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFWoy7EyAKRmKxr_DYXAp_enof3ZvCc9rojHy6FZPE_yBp3-Dg@mail.gmail.com \
    --to=keith1christian@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).