Home > Database > Mysql Tutorial > body text

mysql启动的error 2003和1067错误问题_MySQL

WBOY
Release: 2016-06-01 13:30:13
Original
754 people have browsed it

bitsCN.com

mysql启动的error 2003和1067错误问题

 

   mysql安装好经常发现无法正常启动

 

   碰到最多的是error 2003的错误,以下为解决方法:

 

   mysqld -nt  -remove   mysqld -nt  -install
Copy after login

重新启动mysql

   net start mysql
Copy after login

 

 

   可能还会遇到服务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:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!