quick-docs/modules/ROOT/pages/_partials/proc_configuring-mysql.adoc

23 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.