2019-11-11 17:04:01 +00:00
[id='install-from-oracle-mysql']
2022-06-10 09:37:14 +00:00
= Install from Oracle MySQL
2019-11-11 17:04:01 +00:00
include::{partialsdir}/3rdparty-message.adoc[]
== Adding the MySQL repository to Fedora
2022-06-10 09:37:14 +00:00
Please download the release package provided by Oracle from: https://dev.mysql.com/downloads/repo/yum/
Once downloaded, please install it using dnf:
2019-11-11 17:04:01 +00:00
----
2022-06-10 09:37:14 +00:00
sudo dnf install <path to downloaded rpm>
2019-11-11 17:04:01 +00:00
----
2022-06-10 09:39:13 +00:00
Please note that this repository is provided by Oracle
so any issues/bugs encountered will need to be reported to them
via their communication channels: https://www.mysql.com/about/faq/
2022-06-10 09:37:14 +00:00
== Installing MySQL on Fedora
2019-11-11 17:04:01 +00:00
----
sudo dnf install mysql-community-server
----
== Start MySQL Service and Enable at Loggin:
----
sudo systemctl start mysqld
sudo systemctl enable mysqld
----
find Default Password, For security reasons, MySQL generates a temporary root key. Please note that MySQL has even stricter security policies than MariaDB.
----
sudo grep 'temporary password' /var/log/mysqld.log
----
== Configuring MySQL before the first use
----
sudo mysql_secure_installation
----
Then, answer the security questions as you prefer. or just say **yes** to all of them.
2023-01-11 15:22:59 +00:00
== Using MySQL
2019-11-11 17:04:01 +00:00
----
sudo mysql -u root -p
----
== Removing MySQL
I suggest to remove in the following way, the most appropriate and safe way without removing many dependencies is:
----
sudo rpm -e --nodeps mysql-community-libs mysql-community-common mysql-community-server
----