skip to Main Content

I admit that I am new to back-end work in general and I seem to be stuck (for several hours) following through with completing the setting up process for Magento 2.3

I was following https://devdocs.magento.com/guides/v2.3/install-gde/prereq/mysql.html for my commands but to no success.

I managed to get the following installed:

  • Cent OS 7 (x86_64)
  • Apache 2.4.6
  • PHP 7.2.14 (all the extensions installed passed the Setup Wizard readiness check)

I used these commands to install MySQL 5.7 Community Release: (from the documentation)

wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum -y install mysql mysql-server
yum -y install mysql-community-server

To check if my installation went well, when I run:

mysql --version

I received an error message saying:

-bash: /usr/bin/mysql: No such file or directory

I know that there is something I definitely am missing out completely. When I try to start the MySQL service using the command:

systemctl start mysqld

I get the resulting error message:

Failed to start mysqld.service: Unit not found.

Any suggestions will much be appreciated. Thank you in advance.

2

Answers


  1. Chosen as BEST ANSWER

    After removing MySQL 5.7 community release from my Cent OS, I decided to install MariaDB.

    Inside the directory /etc/yum.repos.d/ I've created a file called MariaDB.repo and added this into the file:

    # MariaDB 10.3 CentOS repository list - created 2019-01-25 05:36 UTC
    # http://downloads.mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/10.3/centos7-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    

    I then performed the command in my terminal window:

    sudo yum install MariaDB-server MariaDB-client
    

    Because of this, mysql --version and systemctl start mysql works like a charm. Thanks @greenberet123 and @danblack for the suggestion.


  2. Maybe it installed it as mariadb?

    systemctl start mariadb
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search