Learn about Centmin Mod LEMP Stack today
Become a Member

MariaDB not running

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

  1. hitman

    hitman Member

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 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

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 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

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 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

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  6. hitman

    hitman Member

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 AM
  7. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    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 ?
     
    • Like Like x 1
  8. hitman

    hitman Member

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 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

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  10. hitman

    hitman Member

    115
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    1:32 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