576
Comment:
|
662
|
Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
MariaDB [shopify]> show tables | MariaDB [shopify]> show tables; }}} * look at fields in table {{{ MariaDB [shopify]> describe <table-name>; |
mysql (mariadb) command line notes
login
$ mysql -uroot -pmypassword
list dbs
MariaDB [(none)]> show databases;
use a db e.g. mysql for users
MariaDB [(none)]> use mysql ;
show tables in db
MariaDB [shopify]> show tables;
look at fields in table
MariaDB [shopify]> describe <table-name>;
view users and host
MariaDB [mysql]> select user,Host,password from user ;
set password in console
MariaDB [mysql]> GRANT ALL PRIVILEGES ON *.* TO root@192.168.70.1 IDENTIFIED BY 'mypassword' ;
...