AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / dba / 问题 / 158825
Accepted
FreeSoftwareServers
FreeSoftwareServers
Asked: 2016-12-22 08:36:53 +0800 CST2016-12-22 08:36:53 +0800 CST 2016-12-22 08:36:53 +0800 CST

错误!MySQL 正在运行,但找不到 PID 文件 - MariaDB 10.1 - CentOS 7 - 新鲜 VM

  • 772

因此,我今天刚刚创建的用于测试 Galera 集群的全新 VM 遇到了一些问题。

到目前为止我所做的是...

  1. 在 VM 中下载并安装最新的 CentOS 7。
  2. 安装 open-vm-tools 并配置 SSH
  3. 安装 MariaDB Repo 并通过以下方式安装 MariaDB 10.1

        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
    
    1. 现在我收到了这个错误,但是我可以进入 MariaDB CMD Prompt,它说它正在运行,但是我不能在全新的设置上出现这个错误。

      [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
      
mariadb mariadb-10.1
  • 1 1 个回答
  • 4054 Views

1 个回答

  • Voted
  1. Best Answer
    FreeSoftwareServers
    2016-12-22T08:59:29+08:002016-12-22T08:59:29+08:00

    似乎问题在于它是如何开始的。

    使用以下,一切都很好!

    [root@sql ~]# systemctl start mariadb.service
    [root@sql ~]# systemctl enable mariadb.service
    [root@sql ~]# /etc/init.d/mysql status
    SUCCESS! MySQL running (920)
    

    所以不要/etc/init.d/mysql start按照安装指南中的说明使用...

    https://mariadb.com/kb/en/mariadb/yum/

    • 0

相关问题

  • MariaDB 标头错误

  • 错误 1046 Mariadb:未选择数据库

  • 你还在使用 MyISAM 还是更喜欢 Aria 存储引擎?

  • 从星期四或一周中的任何其他日子开始,如何通过每周结果改进我的 SQL 语句?

  • 什么时候是使用 MariaDB 而不是 MySQL 的合适时机,为什么?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve