mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
4912dc5630
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
37 lines
645 B
Text
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`.
|