Home > Database > Mysql Tutorial > Mysql服务无法启动的1067错误解决_MySQL

Mysql服务无法启动的1067错误解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 14:01:36
Original
930 people have browsed it

无论安装何版本的mysql,在管理工具的服务中启动mysql服务时都会在中途报错。内容为:在 本地计算机 无法启动mysql服务 错误1067:进程意外中止。

  经过多方求教,得解决方法如下

  查找系统(后来验证应该为windows目录)目录下的my.ini文件,编辑内容(如果没有该文件,则新建一个),至少包含basedir,datadir这两个基本的配置。

  [mysqld]

  # set basedir to installation path, e.g., c:/mysql

  # 设置为MYSQL的安装目录

  basedir=D:/www/WebServer/MySQL

  # set datadir to location of data directory,

  # e.g., c:/mysql/data or d:/mydata/data

  # 设置为MYSQL的数据目录

  datadir=D:/www/WebServer/MySQL/data

  另外,要主意

  [WinMySQLadmin]

  Server=D:/www/WebServer/MySQL/bin/mysqld-nt.exe

  user=root

  password=xxxxxxxx

  #以上是设置WinMySQLadmin的配置

  [Client]

  user=root

  password=xxxxxxxx

  hehe~ :) 解决了

  my.ini 文件内容如下.我自己改的,就好了,嘿嘿

  [mysqld]

  # set basedir to installation path, e.g., D:/mysql

  # 设置为MYSQL的安装目录

  basedir=D:/mysql

  # set datadir to location of data directory,

  # e.g., d:/mysql/data or d:/mysql/mydata/data

  # 设置为MYSQL的数据目录

  datadir=D:/MySQL/data

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template