Windows server 2003上手动安装MySQL 5.4.1

今天在03 Server 上安装MySQL 5.4.1时,MySQL Installation Wizard报 ended prematurely。试了另外一个5.1的版本,同样的问题。以前这个系统有装过MySQL的,是不是没卸载干净,于是将注册表里所有关于MySQL的全删除了。再试,问题没有解决。只能到官网下载手动安装版了。

 

  1. 将下载的uninstall package解压到C:/mysql-5.4.1-beta-win32.
  2. 创建配置文件my.ini。(My recommendation here is direclty copy this file from user mysql server and change a little bit.)
  3. 直接启动:mysqld --console (这个会输出信息到console window上,方便查看错误信息。)
    如果遇到以下错误:
    Plugin 'InnoDB' init function returned error.
    Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    Unknown/unsupported table type : INNODB
    直接把data目录下的ibdata 以及ib_logfile0、ib_logfile1删掉再启动。
  4. 注册成windows服务
    >C:/mysql-5.4.1-beta-win32/bin/mysqld --install
    (这里必需使用全路径,不然启动服务时会提示找不到路径。如果想删除服务 --remove)
  5. 启动服务
    >net start mysql
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值