quick-docs/modules/ROOT/pages/_partials/proc_using-mysql-mariadb.adoc
Héctor Louzao 4912dc5630 Installing, Configuring, Using and Troubleshotting MYSQL/MARIADB
Why this change is needed:

Restructuring a bit all this stuff, According to this askfedora Question:

https://ask.fedoraproject.org/t/problem-installing-mysql-in-fedora-31/3908
https://ask.fedoraproject.org/t/mysql-wont-start-after-upgrade/291

What this change accomplishes:

* Open Database toolbar for Next Step : review FIXME progrestSQL
* Installation (include container)
* Configuring
* Using
* Troubleshooting
2019-11-11 18:04:01 +01:00

37 lines
645 B
Text

= Using the RDBMS
Connect to the MySQL/MariaDB shell using the `mysql` command.
For both of them, the command is `mysql`. The syntax an the options are generally the same.
----
$ mysql -u root -p
----
Once gained access to the shell you can get the running version of the software:
----
mysql> SELECT version();
----
You can create a database:
----
mysql> create schema test;
----
Create a user:
----
mysql> GRANT ALL PRIVILEGES ON test.* TO 'my_user'@'localhost' IDENTIFIED BY 'PaSsWoRd';
----
List the available databases:
----
mysql> show schemas;
----
== Files location
The database disk storage is located in `/var/lib/mysql`.