{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/mysql-server-configuration/",
  "atlas": "https://www.pystone.net/?node=mysql-server-configuration#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/mysql-server-configuration.md",
  "context": "https://www.pystone.net/notes/mysql-server-configuration.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:mysql-server-configuration",
  "slug": "mysql-server-configuration",
  "title": "MySQL服务端配置",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "MySQL服务端配置 如何启动/停止/重启MySQL 一、 启动方式 1、使用 service 启动：",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "updatedAt": "2022-02-09T13:04:52.000002Z",
  "contentHash": "11fe7d7e622a630972385c603dd5f059b1d9827cee35c30d5cf26205868b2554",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "MySQL服务端配置",
      "anchor": "mysql服务端配置",
      "citation": "https://www.pystone.net/notes/mysql-server-configuration/#mysql%E6%9C%8D%E5%8A%A1%E7%AB%AF%E9%85%8D%E7%BD%AE"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:application-and-cloud-engineering",
      "title": "应用开发与云端工程",
      "url": "https://www.pystone.net/notes/application-and-cloud-engineering/",
      "atlas": "https://www.pystone.net/?node=application-and-cloud-engineering#knowledge-atlas",
      "label": "应用开发与云端工程",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "后端与数据库中的“MySQL服务端配置”导航项",
      "citation": "https://www.pystone.net/notes/application-and-cloud-engineering/#%E5%90%8E%E7%AB%AF%E4%B8%8E%E6%95%B0%E6%8D%AE%E5%BA%93"
    }
  ],
  "contentMarkdown": "# MySQL服务端配置\n如何启动/停止/重启MySQL\n一、 启动方式\n1、使用 service 启动：\n\nservice mysql start\n\n2、使用 mysqld 脚本启动：\n\n/etc/inint.d/mysql start\n\n3、使用 safe_mysqld 启动：\n\nsafe_mysql&\n\n二、停止\n1、使用 service 启动：\n\nservice mysql stop\n\n2、使用 mysqld 脚本启动：\n\n/etc/inint.d/mysql stop\n\n3、执行mysqladmin shutdown\n\nmysqladmin shutdown\n\n三、重启\n1、使用 service 启动：\n\nservice mysql restart\n2、使用 mysqld 脚本启动：\n\n/etc/inint.d/mysql restart\n其实有时mysql已经正 常启动了，查看mysql是否启动命令\n\nps -aux | grep mysqld\n\n查看mysql是否在监 听端口命令\n\nnetstat -tl | grep mysql\n\n会看到如下类似内容\n\ntcp 0 0 *:mysql *:* LISTEN\n————————————————\n版权声明：本文为CSDN博主「suwu150」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。\n原文链接：https://blog.csdn.net/suwu150/article/details/52719371\n"
}
