蓝鲸blue 2014-02-17 02:08 采纳率: 0%
浏览 2693

mysql非安装版无法启动 报1067错误

在网上查说是配置文件的事。
my.ini复制自my_small.ini。
只增加了
mysql字段
basedir = D:/mysql-5.5.24-winx64
datadir = D:/mysql-5.5.24-winx64/data
character-set-server=utf8
client字段
default-character-set = utf8

另外在安装时候cmd使用管理员身份启动的。是不是这个有影响???

错误日志:
140217 9:59:30 [Note] Plugin 'FEDERATED' is disabled.
140217 9:59:30 InnoDB: The InnoDB memory heap is disabled
140217 9:59:30 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140217 9:59:30 InnoDB: Compressed tables use zlib 1.2.3
140217 9:59:30 InnoDB: Initializing buffer pool, size = 128.0M
140217 9:59:30 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
140217 9:59:30 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
140217 9:59:30 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
140217 9:59:30 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
140217 9:59:31 InnoDB: Waiting for the background threads to start
140217 9:59:32 InnoDB: 1.1.8 started; log sequence number 0
140217 9:59:32 [ERROR] MySQL: unknown variable 'default-character-set=gbk'
140217 9:59:32 [ERROR] Aborting

140217 9:59:32 InnoDB: Starting shutdown...
140217 9:59:33 InnoDB: Shutdown completed; log sequence number 1595675
140217 9:59:33 [Note] MySQL: Shutdown complete

各种查资料各种解决不了。求大神帮忙。
附加:很神奇的是为什么会有 unknown variable 'default-character-set=gbk'
我根本就没有设置default-character-set=gbk,设置了default-character-set=tutf8也还是这个错误。

  • 写回答

1条回答 默认 最新

  • 蓝鲸blue 2014-03-05 09:30
    关注

    真的是my.ini的问题。
    我一直在研究安装目录下的my.ini。没想到C:/windows底下还藏了一个。。。。

    评论

报告相同问题?

悬赏问题

  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决