Então, estou tendo um pequeno problema com uma VM BRAND new que acabei de criar hoje para testar um Galera Cluster.
O que eu fiz até agora é...
- Baixe e instale o CentOS 7 mais recente em uma VM.
- Instale o open-vm-tools e configure o SSH
Instale o MariaDB Repo e instale o MariaDB 10.1 via
cat << 'EOL' >/etc/yum.repos.d/MariaDB.repo # MariaDB 10.1 CentOS repository list - created 2016-12-21 16:21 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOL yum install MariaDB-server MariaDB-client
Agora recebo esse erro, mas consigo acessar o MariaDB CMD Prompt, que diz que está em execução, mas não posso ter esse erro em uma configuração totalmente nova.
[root@localhost ~]# mysql -uroot Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 10.1.20-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> exit; Bye [root@localhost ~]# /etc/init.d/mysql status ERROR! MySQL is running but PID file could not be found
Parece que o problema era como ele é iniciado.
Usando o seguinte, está tudo bem!!
Portanto, não use
/etc/init.d/mysql start
conforme indicado no guia de instalação ...https://mariadb.com/kb/en/mariadb/yum/