Home > Database > Mysql Tutorial > mysql启动的error 2003和1067错误问题解决方法_MySQL

mysql启动的error 2003和1067错误问题解决方法_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:25:30
Original
798 people have browsed it

bitsCN.com mysql安装好经常发现无法正常启动碰到最多的是error 2003的错误,以下为解决方法:

mysqld -nt -remove

mysqld -nt -install

重新启动mysql

net start mysql

可能还会遇到服务1067错误的问题,原因大致有两个:

(1)my.ini的basedir和datadir目录配置有问题,可如下面的例子修改:

basedir=d:/MySQL5.0/#mysql安装位置
datadir=d:/MySQL5.0/data#数据存放位置

不过,一般不会出现这问题。

(2)这个版本不支持my.ini的默认引擎,在my.ini中寻找下面文段:

# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
将"INNODB“修改"MYISAM"为:
default-storage-engine=MYISAM

我当初就出现了这个问题

修改文件后,启动mysql,net start mysql。注意,我说的这条命令一定要在bin的目录下执行。因为mysql、mysqld、mysqladmin等一系列可执行程序都放在那里。

当出现

MySQL 服务正在启动

MySQL 服务已经启动成功

的字样时,表明服务正常启动。

OK!bitsCN.com

Related labels:
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template