mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
24 lines
777 B
Text
24 lines
777 B
Text
|
= Configuring MySQL
|
||
|
|
||
|
Enable the service at boot and start it right now
|
||
|
|
||
|
----
|
||
|
$ sudo systemctl enable mysqld --now
|
||
|
----
|
||
|
|
||
|
If you installed the package from the Fedora repository, the default root password is empty.
|
||
|
|
||
|
The package installed from the third party MySQL repository, generates instead a temporary root password. So you have to look which is this temporary password generated during the first startup in order to run the `mysql_secure_installation` script and to be able to set a custom root password.
|
||
|
|
||
|
----
|
||
|
$ sudo grep 'A temporary password is generated' /var/log/mysql/mysqld.log
|
||
|
----
|
||
|
|
||
|
Perform the initial setup:
|
||
|
|
||
|
----
|
||
|
$ sudo mysql_secure_installation
|
||
|
----
|
||
|
|
||
|
Some questions will be asked: answer to them as you prefer; answering _yes_ to all of them is perfectly fine.
|