LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   MySQL install on Red Hat Enterprise Linux 8 (https://www.linuxquestions.org/questions/linux-enterprise-47/mysql-install-on-red-hat-enterprise-linux-8-a-4175668646/)

jmartin17 01-29-2020 05:17 PM

MySQL install on Red Hat Enterprise Linux 8
 
I have RHEL 8 installed on Linux Server. I have tried to download lamp and install mysql but can not get connected to mysql or verify it is installed. can anyone supply linux commands to install and verify MySQL install for RHEL 8?

scasey 01-29-2020 05:33 PM

Quote:

Originally Posted by jmartin17 (Post 6084246)
I have RHEL 8 installed on Linux Server. I have tried to download lamp and install mysql but can not get connected to mysql or verify it is installed. can anyone supply linux commands to install and verify MySQL install for RHEL 8?

mysql is not in the repositories. It's been replaced by mariadb.
yum install mariadb should install it.

On CentOS, I was able to install mysql by adding these repositories:
Code:

mysql-connectors-community/x86_64
mysql-tools-community/x86_64
mysql57-community/x86_64

I don't know if those are available to Red Hat

What does Red Hat Support have to say about using mysql instead of mariadb?

If you think it has been installed, then
Code:

systemctl status mysqld
will show you if it's there and running.

michaelk 01-29-2020 05:39 PM

lamp is an acronym for Linux, Apache, mysql or MariaDB and PHP. Assuming you have a subscription you can install all of those packages via the package manager i.e yum although I think now dnf is the preferred tool. You should be able to find several howtos with a simple search. You should also be able to find howtos on how to setup MariaDB too.

The package name for Apache is httpd, MariaDB is mariadb-server, PHP is php and you also need to install the PHP MariaDB module which is php-mysqlnd I believe.


All times are GMT -5. The time now is 04:35 AM.