mysql服务启动1067错误

1、查看任务管理器中是否有mysqld相关的进程,如果有需要结束进程;

2、配置文件是否错误,下面是寻找到的一片配置文档

[client]

port=3306

[mysql]

default-character-set=utf8

# SERVERSECTION

#----------------------------------------------------------------------

#

# The following options will bereadbythe MySQL Server. Make sure that

# you have installed the server correctly (see above) so it reads this

# file.

#

[mysqld]

# The TCP/IP Port the MySQL Server will listenon

port=3306

#Pathtoinstallation directory.Allpaths are usually resolvedrelativetothis.

basedir="E:/wamp/mysql/"

#Pathtothedatabaseroot

datadir="E:/wamp/mysql/data/Data/"

# Thedefaultcharactersetthat will be usedwhena newschemaortableis

# createdandnocharactersetisdefined

character-set-server=utf8

# Thedefaultstorage engine that will be usedwhencreatenew tableswhen

default-storage-engine=INNODB

#Setthe SQL modetostrict

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

# The maximum amountofconcurrent sessions the MySQL server will

# allow. Oneofthese connections will be reservedforauserwith

# SUPERprivilegestoallow the administratortologin even if the

#connectionlimit has been reached.

max_connections=100

# Query cacheisusedtocacheSELECTresultsandlaterreturnthem

# without actual executing the same query once again.Havingthe query

# cache enabled may resultinsignificant speed improvements, if your

# have a lotofidentical queriesandrarely changing tables. See the

#"Qcache_lowmem_prunes"status variabletocheckif thecurrentvalue

#ishigh enoughforyourload.

# Note:Incaseyour tables change very oftenorif your queries are

# textually different everytime, the query cache may resultina

# slowdowninsteadofa performance improvement.

query_cache_size=0

# The numberofopentablesforallthreads. Increasing this value

# increases the numberoffile descriptors that mysqld requires.

# Therefore you havetomake suretosetthe amountofopenfiles

# allowedtoatleast 4096inthe variable"open-files-limit"in

#section[mysqld_safe]

table_cache=256

# Maximumsizeforinternal (in-memory)temporarytables. If atable

# grows larger than this value, itisautomatically convertedtodisk

# basedtableThis limitationisfora singletable. There can be many

#ofthem.

tmp_table_size=34M

# How many threads we should keepina cacheforreuse.Whena client

# disconnects, the client's threads are put in the cache if there aren't

# more than thread_cache_size threadsfrombefore.  This greatly reduces

# the amountofthread creations needed if you have a lotofnew

# connections. (Normally this doesn't give a notable performance

# improvement if you have a good thread implementation.)

thread_cache_size=8

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while

# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.

# If the file-size would be bigger than this, the index will be created

# through the key cache (which is slower).

myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger

# than using the key cache by the amount specified here, then prefer the

# key cache method.  This is mainly used to force long character keys in

# large tables to use the slower key cache method to create the index.

myisam_sort_buffer_size=68M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.

# Do not set it larger than 30% of your available memory, as some memory

# is also required by the OS to cache rows. Even if you'renotusing

# MyISAM tables, you should stillsetitto8-64Masit will also be

# usedforinternaltemporarydisk tables.

key_buffer_size=55M

#Sizeofthe buffer usedfordoingfulltablescansofMyISAM tables.

# Allocated per thread, if afullscanisneeded.

read_buffer_size=64K

read_rnd_buffer_size=256K

# This bufferisallocatedwhenMySQL needstorebuild theindexin

# REPAIR, OPTIMZE,ALTERtablestatementsaswellasinLOADDATA INFILE

#intoan emptytable. Itisallocated per thread so be carefulwith

# large settings.

sort_buffer_size=256K

#*** INNODB Specific options ***

# Use thisoptionif you have a MySQL serverwithInnoDB support enabled

# but you donotplantouse it. This will save memoryanddiskspace

#andspeed upsomethings.

#skip-innodb

# Additional memory pool thatisusedbyInnoDBtostore metadata

# information.  If InnoDB requires more memoryforthis purpose it will

# starttoallocate itfromthe OS.Asthisisfast enoughonmost

# recent operating systems, you normally donotneedtochange this

# value. SHOW INNODB STATUS will display thecurrentamount used.

innodb_additional_mem_pool_size=3M

# Ifsetto1, InnoDB will flush (fsync) thetransactionlogstothe

# diskateachcommit, which offersfullACID behavior. If you are

# willingtocompromise this safety,andyou are running small

# transactions, you maysetthisto0or2toreduce disk I/Otothe

# logs. Value 0 means that the logisonlywrittentothe log fileand

# the log file flushedtodisk approximately once persecond. Value 2

# means the logiswrittentothe log fileateachcommit, but the log

# fileisonlyflushedtodisk approximately once persecond.

innodb_flush_log_at_trx_commit=1

# Thesizeofthe buffer InnoDB usesforbuffering log data.Assoonas

# itisfull, InnoDB will havetoflush ittodisk.Asitisflushed

# once persecondanyway, it doesnotmake sensetohave it very large

# (evenwithlong transactions).

innodb_log_buffer_size=2M

# InnoDB, unlike MyISAM, uses a buffer pooltocache both indexesand

# row data. The bigger yousetthis the less disk I/Oisneededto

# access dataintables.Ona dedicateddatabaseserver you maysetthis

# parameter upto80%ofthe machine physical memorysize. Donotsetit

# too large, though, because competitionofthe physical memory may

# cause paginginthe operating system.  Note thaton32bit systems you

# might be limitedto2-3.5Gofuserlevelmemory per process, so donot

#setit too high.

innodb_buffer_pool_size=106M

#Sizeofeach log fileina loggroup. You shouldsetthe combinedsize

#oflog filestoabout 25%-100%ofyour buffer poolsizetoavoid

# unneeded buffer pool flush activityonlog file overwrite. However,

# note that a larger logfilesizewill increase thetimeneededforthe

# recovery process.

innodb_log_file_size=53M

# Numberofthreads allowed inside the InnoDB kernel. The optimal value

# depends highlyonthe application, hardwareaswellasthe OS

# scheduler properties. A too high value may leadtothread thrashing.

innodb_thread_concurrency=10

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 219,366评论 6 508
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,521评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 165,689评论 0 356
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,925评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,942评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,727评论 1 305
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,447评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,349评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,820评论 1 317
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,990评论 3 337
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,127评论 1 351
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,812评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,471评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,017评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,142评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,388评论 3 373
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,066评论 2 355

推荐阅读更多精彩内容