Welcome to Centmin Mod Community
Become a Member

MariaDB not running

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by hitman, Jan 29, 2015.

  1. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
    hello
    i installed centmin on a new vps
    my problem is that if i run in ssh "mysql" or "mysqladmin"
    i get --command not found--

    and if i try to update mariaDB i get
    Code:
    file: file://///etc/yum.repos.d/centalt.repo, line 1
    'exclude=mariadb*\n'


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    5:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    which version of centmin mod and where did you download it from ? from centminmod.com or from github.com ?

    reason is centalt.repo should now be disabled by default on .07 stable and .08 betas as centalt is no longer in use as the repo is broken so the file shouldn't exist

    if it doesn't it probably prevented MariaDB from installing, so best to do a fresh CentOS OS reload, and install again :)
     
  3. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
    i installed through centminmod.com
    Code:
    yum -y install bc wget unzip nano yum-plugin-fastestmirror
    cd /usr/local/src
    wget http://centminmod.com/download/centmin-v1.2.3-eva2000.07.zip

    edit
    i reinstalled OS and centmin
    at the end of centmin isntallation i get
    Code:
    inc/mysqlsecure.inc: line 7: mysql: command not found
    inc/mysqlsecure.inc: line 8: mysql: command not found
    inc/mysqlsecure.inc: line 9: mysql: command not found
    inc/mysqlsecure.inc: line 10: mysql: command not found
     
    Last edited: Jan 29, 2015
  4. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
    additional to the above
    at the end of installation it says that
    Code:
    mysql root user password set
    etc
    *MariaDB security setup completed[
    but when i try to run "mysql" or "mysqladmin" i get --command not found--
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    5:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
  7. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    5:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    EPEL yum repository failed to download/install which prevented MariaDB's YUM repo further down the track from installing too

    Code:
    [1;32;40m* CentOS 6.x detected installing EPEL Repo
    (B[m*************************************************
    Error: epel-release-6-8.noarch.rpm not found !!! Download now......
    2015-01-29 04:34:20 URL:http://mirror.sfo12.us.leaseweb.net/epel/6/i386/epel-release-6-8.noarch.rpm [14540/14540] -> "epel-release-6-8.noarch.rpm" [1]
    [1;33;40mDownload done.
    (B[mError: Cannot retrieve metalink for repository: epel. Please verify its path and try again
    [1;32;40mError: problem with epel-release-6-8.noarch.rpm install.
    (B[m
    Code:
    MariaDB 5.5 YUM install...
    yum -q -y --disableplugin=fastestmirror,downloadonly install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
    Centmin Mod .08 betas fixed the MariaDB failure by preventing EPEL's failure from affecting MariaDB install centminmod/mariadb_install.inc at 123.08centos7beta01 · centminmod/centminmod · GitHub but .07 stable doesn't have that work around.

    But still root problem is EPEL yum repo failed and that is relied upon by other installed software. So will need to investigate why, could be just the mirror that EPEL serves to you is down.

    btw who's the web host for server ?
     
  8. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
    so if i reinstall OS and install EPEL Repository prior to centmin installation do you think i will not be having this problem?
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,110
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    5:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    9:02 AM
    problem solved :D
    i also run this command so the repo will be added without https but with http
    Code:
    sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo