官网下的最新解压版mysql-5.6.13-win32,昨晚装完能正常使用,能建表插数据
但今天一早服务就启动不了了,试了网上各种方法都没有用
以前一直都在用SQLSERVER,现在想尝试一下MYSQL,没什么经验,弄了一天也没找出问题关键
分不多,希望各位大神拔刀相助  错误日志:
2013-09-06 13:28:43 5900 [Note] Plugin 'FEDERATED' is disabled.
2013-09-06 13:28:43 5900 [Note] InnoDB: The InnoDB memory heap is disabled
2013-09-06 13:28:43 5900 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2013-09-06 13:28:43 5900 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-09-06 13:28:43 5900 [Note] InnoDB: Not using CPU crc32 instructions
2013-09-06 13:28:43 5900 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-09-06 13:28:43 5900 [Note] InnoDB: Completed initialization of buffer pool
2013-09-06 13:28:43 5900 [Note] InnoDB: Highest supported file format is Barracuda.
2013-09-06 13:28:44 5900 [Note] InnoDB: 128 rollback segment(s) are active.
2013-09-06 13:28:44 5900 [Note] InnoDB: Waiting for purge to start
2013-09-06 13:28:44 5900 [Note] InnoDB: 5.6.13 started; log sequence number 1600637
2013-09-06 13:28:44 5900 [ERROR] G:\mysql-5.6.13-win32\bin\mysqld: unknown variable 'default-file=G:\mysql-5.6.13-win32\my.ini'
2013-09-06 13:28:44 5900 [ERROR] Aborting
2013-09-06 13:28:44 5900 [Note] Binlog end
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'partition'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_METRICS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMPMEM'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_CMP'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_LOCKS'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'INNODB_TRX'
2013-09-06 13:28:44 5900 [Note] Shutting down plugin 'InnoDB'
2013-09-06 13:28:44 5900 [Note] InnoDB: FTS optimize thread exiting.
2013-09-06 13:28:44 5900 [Note] InnoDB: Starting shutdown...
2013-09-06 13:28:45 5900 [Note] InnoDB: Shutdown completed; log sequence number 1600647
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'BLACKHOLE'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'ARCHIVE'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'MRG_MYISAM'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'MyISAM'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'MEMORY'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'CSV'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'sha256_password'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'mysql_old_password'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'mysql_native_password'
2013-09-06 13:28:45 5900 [Note] Shutting down plugin 'binlog'
2013-09-06 13:28:45 5900 [Note] G:\mysql-5.6.13-win32\bin\mysqld: Shutdown complete
my.ini
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M [mysqld]sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [client]
port=3306
default-character-set=utf8
[mysqld]
port=3306character_set_server=utf8basedir=G:/mysql-5.6.13-win32
datadir=G:/mysql-5.6.13-win32/datasql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES[WinMySQLAdmin]
G:/mysql-5.6.13-win32/bin/mysqld.exe mysql服务无法启动my.iniunknown variable配置

解决方案 »

  1.   

    mysqld_sofe --default-file=G:\mysql-5.6.13-win32\my.ini  是这样启动的吗
      

  2.   

    mysqld_safe
    不是,用的是这个
    mysqld install MySQL --defaults-file="G:\mysql-5.6.13-win32\my.ini"
      

  3.   

    mysqld  --defaults-file="G:\mysql-5.6.13-win32\my.ini"
    这样试试能启动吗
      

  4.   

    你的意思是把现在的mysql服务remove了,然后按mysqld  --defaults-file="G:\mysql-5.6.13-win32\my.ini"新建一个服务?
      

  5.   

    不行,
    2013-09-06 14:24:46 6048 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
    2013-09-06 14:24:46 6048 [ERROR] InnoDB: The system tablespace must be writable!
    2013-09-06 14:24:46 6048 [ERROR] Plugin 'InnoDB' init function returned error.
    2013-09-06 14:24:46 6048 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2013-09-06 14:24:46 6048 [ERROR] mysqld: unknown variable 'default-file=G:\mysql-5.6.13-win32\my.ini'
    2013-09-06 14:24:46 6048 [ERROR] Aborting
      

  6.   

    进入MYSQL56目录BIN下
    mysqld --defaults-file="G:\mysql-5.6.13-win32\my.ini" 
    能否启动
      

  7.   

    你是如何安装?直接在DOS进入到 \mysql\BIN\目录下,然后直接运行C:\xx\xx\x\mysql\bin>  mysqld --console
      

  8.   

    哎,粗心大意啊,提示都已近很明显了,没认真看
    unknown variable 'default-file=G:\mysql-5.6.13-win32\my.ini'
    defaults写成defaults了