mysql服務(wù)啟動(dòng)1067錯(cuò)誤

1主儡、查看任務(wù)管理器中是否有mysqld相關(guān)的進(jìn)程,如果有需要結(jié)束進(jìn)程惨缆;

2糜值、配置文件是否錯(cuò)誤,下面是尋找到的一片配置文檔

[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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末坯墨,一起剝皮案震驚了整個(gè)濱河市寂汇,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌畅蹂,老刑警劉巖健无,帶你破解...
    沈念sama閱讀 207,113評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異液斜,居然都是意外死亡累贤,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,644評論 2 381
  • 文/潘曉璐 我一進(jìn)店門少漆,熙熙樓的掌柜王于貴愁眉苦臉地迎上來臼膏,“玉大人,你說我怎么就攤上這事示损∩酰” “怎么了?”我有些...
    開封第一講書人閱讀 153,340評論 0 344
  • 文/不壞的土叔 我叫張陵,是天一觀的道長始鱼。 經(jīng)常有香客問我仔掸,道長,這世上最難降的妖魔是什么医清? 我笑而不...
    開封第一講書人閱讀 55,449評論 1 279
  • 正文 為了忘掉前任起暮,我火速辦了婚禮,結(jié)果婚禮上会烙,老公的妹妹穿的比我還像新娘负懦。我一直安慰自己,他們只是感情好柏腻,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,445評論 5 374
  • 文/花漫 我一把揭開白布纸厉。 她就那樣靜靜地躺著,像睡著了一般五嫂。 火紅的嫁衣襯著肌膚如雪颗品。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,166評論 1 284
  • 那天沃缘,我揣著相機(jī)與錄音抛猫,去河邊找鬼。 笑死孩灯,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的逾滥。 我是一名探鬼主播峰档,決...
    沈念sama閱讀 38,442評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼寨昙!你這毒婦竟也來了讥巡?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,105評論 0 261
  • 序言:老撾萬榮一對情侶失蹤舔哪,失蹤者是張志新(化名)和其女友劉穎欢顷,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體捉蚤,經(jīng)...
    沈念sama閱讀 43,601評論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡抬驴,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,066評論 2 325
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了缆巧。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片布持。...
    茶點(diǎn)故事閱讀 38,161評論 1 334
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖陕悬,靈堂內(nèi)的尸體忽然破棺而出题暖,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 33,792評論 4 323
  • 正文 年R本政府宣布胧卤,位于F島的核電站唯绍,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏枝誊。R本人自食惡果不足惜况芒,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,351評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望侧啼。 院中可真熱鬧牛柒,春花似錦、人聲如沸痊乾。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,352評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽哪审。三九已至蛾魄,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間湿滓,已是汗流浹背滴须。 一陣腳步聲響...
    開封第一講書人閱讀 31,584評論 1 261
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留叽奥,地道東北人扔水。 一個(gè)月前我還...
    沈念sama閱讀 45,618評論 2 355
  • 正文 我出身青樓,卻偏偏與公主長得像朝氓,于是被迫代替她去往敵國和親魔市。 傳聞我的和親對象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,916評論 2 344

推薦閱讀更多精彩內(nèi)容