mysql没关闭 就关机了 再次开机 报 high service error 求解决

问题描述

重装也报错。。。。。。。。。。。。。。

解决方案

解决方案二:
#Otherdefaulttuningvalues#MySQLServerInstanceConfigurationFile#----------------------------------------------------------------------#GeneratedbytheMySQLServerInstanceConfigurationWizard
解决方案三:
InstallationInstructions#----------------------------------------------------------------------##OnLinuxyoucancopythisfileto/etc/my.cnftosetglobaloptions,#mysql-data-dir/my.cnftosetserver-specificoptions#(@localstatedir@forthisinstallation)orto#~/.my.cnftosetuser-specificoptions.##OnWindowsyoushouldkeepthisfileintheinstallationdirectory#ofyourserver(e.g.C:ProgramFilesMySQLMySQLServerX.Y).To#makesuretheserverreadstheconfigfileusethestartupoption#"--defaults-file".##Torunruntheserverfromthecommandline,executethisina#commandlineshell,e.g.#mysqld--defaults-file="C:ProgramFilesMySQLMySQLServerX.Ymy.ini"##ToinstalltheserverasaWindowsservicemanually,executethisina#commandlineshell,e.g.#mysqld--installMySQLXY--defaults-file="C:ProgramFilesMySQLMySQLServerX.Ymy.ini"##Andthenexecutethisinacommandlineshelltostarttheserver,e.g.#netstartMySQLXY
解决方案四:
Guildlinesforeditingthisfile#----------------------------------------------------------------------##Inthisfile,youcanusealllongoptionsthattheprogramsupports.#Ifyouwanttoknowtheoptionsaprogramsupports,starttheprogram#withthe"--help"option.##Moredetailedinformationabouttheindividualoptionscanalsobe#foundinthemanual.##Foradviceonhowtochangesettingspleasesee#http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
解决方案五:
CLIENTSECTION#----------------------------------------------------------------------##ThefollowingoptionswillbereadbyMySQLclientapplications.#NotethatonlyclientapplicationsshippedbyMySQLareguaranteed#toreadthissection.IfyouwantyourownMySQLclientprogramto#honorthesevalues,youneedtospecifyitasanoptionduringthe#MySQLclientlibraryinitialization.#[client]no-beep#pipe#socket=mysqlport=3306[mysql]default-character-set=utf8
解决方案六:
#SERVERSECTION#----------------------------------------------------------------------##ThefollowingoptionswillbereadbytheMySQLServer.Makesurethat#youhaveinstalledtheservercorrectly(seeabove)soitreadsthis#file.##server_type=3[mysqld]#ThenextthreeoptionsaremutuallyexclusivetoSERVER_PORTbelow.#skip-networking#enable-named-pipe#ThePipetheMySQLServerwilluse#socket=mysql#TheTCP/IPPorttheMySQLServerwilllistenonport=3306#Pathtoinstallationdirectory.Allpathsareusuallyresolvedrelativetothis.#basedir="D:/MySQL/MySQLServer5.7/"#Pathtothedatabaserootdatadir="D:/MySQL/MySQLServer5.7/data"#Thedefaultcharactersetthatwillbeusedwhenanewschemaortableis#createdandnocharactersetisdefinedcharacter-set-server=utf8#Thedefaultstorageenginethatwillbeusedwhencreatenewtableswhendefault-storage-engine=INNODB#SettheSQLmodetostrictsql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"#EnableWindowsAuthentication#plugin-load=authentication_windows.dll#GeneralandSlowlogging.log-output=FILEgeneral-log=0general_log_file="ADMINISTATOR-PC.log"slow-query-log=1slow_query_log_file="ADMINISTATOR-PC-slow.log"long_query_time=10#BinaryLogging.#log-bin#ErrorLogging.log-error="ADMINISTATOR-PC.err"#ThemaximumamountofconcurrentsessionstheMySQLserverwill#allow.Oneoftheseconnectionswillbereservedforauserwith#SUPERprivilegestoallowtheadministratortologinevenifthe#connectionlimithasbeenreached.max_connections=151#QuerycacheisusedtocacheSELECTresultsandlaterreturnthem#withoutactualexecutingthesamequeryonceagain.Havingthequery#cacheenabledmayresultinsignificantspeedimprovements,ifyour#havealotofidenticalqueriesandrarelychangingtables.Seethe#"Qcache_lowmem_prunes"statusvariabletocheckifthecurrentvalue#ishighenoughforyourload.#Note:Incaseyourtableschangeveryoftenorifyourqueriesare#textuallydifferenteverytime,thequerycachemayresultina#slowdowninsteadofaperformanceimprovement.query_cache_size=0#Thenumberofopentablesforallthreads.Increasingthisvalue#increasesthenumberoffiledescriptorsthatmysqldrequires.#Thereforeyouhavetomakesuretosettheamountofopenfiles#allowedtoatleast4096inthevariable"open-files-limit"in#section[mysqld_safe]table_open_cache=2000#Maximumsizeforinternal(in-memory)temporarytables.Ifatable#growslargerthanthisvalue,itisautomaticallyconvertedtodisk#basedtableThislimitationisforasingletable.Therecanbemany#ofthem.tmp_table_size=14M#Howmanythreadsweshouldkeepinacacheforreuse.Whenaclient#disconnects,theclient'sthreadsareputinthecacheiftherearen't#morethanthread_cache_sizethreadsfrombefore.Thisgreatlyreduces#theamountofthreadcreationsneededifyouhavealotofnew#connections.(Normallythisdoesn'tgiveanotableperformance#improvementifyouhaveagoodthreadimplementation.)thread_cache_size=10#***MyISAMSpecificoptions#ThemaximumsizeofthetemporaryfileMySQLisallowedtousewhile#recreatingtheindex(duringREPAIR,ALTERTABLEorLOADDATAINFILE.#Ifthefile-sizewouldbebiggerthanthis,theindexwillbecreated#throughthekeycache(whichisslower).myisam_max_sort_file_size=100G#Ifthetemporaryfileusedforfastindexcreationwouldbebigger#thanusingthekeycachebytheamountspecifiedhere,thenpreferthe#keycachemethod.Thisismainlyusedtoforcelongcharacterkeysin#largetablestousetheslowerkeycachemethodtocreatetheindex.myisam_sort_buffer_size=19M#SizeoftheKeyBuffer,usedtocacheindexblocksforMyISAMtables.#Donotsetitlargerthan30%ofyouravailablememory,assomememory#isalsorequiredbytheOStocacherows.Evenifyou'renotusing#MyISAMtables,youshouldstillsetitto8-64Masitwillalsobe#usedforinternaltemporarydisktables.key_buffer_size=8M#SizeofthebufferusedfordoingfulltablescansofMyISAMtables.#Allocatedperthread,ifafullscanisneeded.read_buffer_size=39Kread_rnd_buffer_size=256K#ThisbufferisallocatedwhenMySQLneedstorebuildtheindexin#REPAIR,OPTIMZE,ALTERtablestatementsaswellasinLOADDATAINFILE#intoanemptytable.Itisallocatedperthreadsobecarefulwith#largesettings.sort_buffer_size=256K#***INNODBSpecificoptions***#innodb_data_home_dir=0.0#UsethisoptionifyouhaveaMySQLserverwithInnoDBsupportenabled#butyoudonotplantouseit.Thiswillsavememoryanddiskspace#andspeedupsomethings.#skip-innodb#Ifsetto1,InnoDBwillflush(fsync)thetransactionlogstothe#diskateachcommit,whichoffersfullACIDbehavior.Ifyouare#willingtocompromisethissafety,andyouarerunningsmall#transactions,youmaysetthisto0or2toreducediskI/Otothe#logs.Value0meansthatthelogisonlywrittentothelogfileand#thelogfileflushedtodiskapproximatelyoncepersecond.Value2#meansthelogiswrittentothelogfileateachcommit,butthelog#fileisonlyflushedtodiskapproximatelyoncepersecond.innodb_flush_log_at_trx_commit=1#ThesizeofthebufferInnoDBusesforbufferinglogdata.Assoonas#itisfull,InnoDBwillhavetoflushittodisk.Asitisflushed#oncepersecondanyway,itdoesnotmakesensetohaveitverylarge#(evenwithlongtransactions).innodb_log_buffer_size=1M#InnoDB,unlikeMyISAM,usesabufferpooltocachebothindexesand#rowdata.ThebiggeryousetthisthelessdiskI/Oisneededto#accessdataintables.Onadedicateddatabaseserveryoumaysetthis#parameterupto80%ofthemachinephysicalmemorysize.Donotsetit#toolarge,though,becausecompetitionofthephysicalmemorymay#causepagingintheoperatingsystem.Notethaton32bitsystemsyou#mightbelimitedto2-3.5Gofuserlevelmemoryperprocess,sodonot#setittoohigh.innodb_buffer_pool_size=8M#Sizeofeachlogfileinaloggroup.Youshouldsetthecombinedsize#oflogfilestoabout25%-100%ofyourbufferpoolsizetoavoid#unneededbufferpoolflushactivityonlogfileoverwrite.However,#notethatalargerlogfilesizewillincreasethetimeneededforthe#recoveryprocess.innodb_log_file_size=48M#NumberofthreadsallowedinsidetheInnoDBkernel.Theoptimalvalue#dependshighlyontheapplication,hardwareaswellastheOS#schedulerproperties.Atoohighvaluemayleadtothreadthrashing.innodb_thread_concurrency=9#Theincrementsize(inMB)forextendingthesizeofanauto-extendInnoDBsystemtablespacefilewhenitbecomesfull.innodb_autoextend_increment=64#ThenumberofregionsthattheInnoDBbufferpoolisdividedinto.#Forsystemswithbufferpoolsinthemulti-gigabyterange,dividingthebufferpoolintoseparateinstancescanimproveconcurrency,#byreducingcontentionasdifferentthreadsreadandwritetocachedpages.innodb_buffer_pool_instances=8#DeterminesthenumberofthreadsthatcanenterInnoDBconcurrently.innodb_concurrency_tickets=5000#Specifieshowlonginmilliseconds(ms)ablockinsertedintotheoldsublistmuststaythereafteritsfirstaccessbefore#itcanbemovedtothenewsublist.innodb_old_blocks_time=1000#Itspecifiesthemaximumnumberof.ibdfilesthatMySQLcankeepopenatonetime.Theminimumvalueis10.innodb_open_files=300#Whenthisvariableisenabled,InnoDBupdatesstatisticsduringmetadatastatements.innodb_stats_on_metadata=0#Wheninnodb_file_per_tableisenabled(thedefaultin5.6.6andhigher),InnoDBstoresthedataandindexesforeachnewlycreatedtable#inaseparate.ibdfile,ratherthaninthesystemtablespace.innodb_file_per_table=1#Usethefollowinglistofvalues:0forcrc32,1forstrict_crc32,2forinnodb,3forstrict_innodb,4fornone,5forstrict_none.innodb_checksum_algorithm=0#ThenumberofoutstandingconnectionrequestsMySQLcanhave.#ThisoptionisusefulwhenthemainMySQLthreadgetsmanyconnectionrequestsinaveryshorttime.#Itthentakessometime(althoughverylittle)forthemainthreadtochecktheconnectionandstartanewthread.#Theback_logvalueindicateshowmanyrequestscanbestackedduringthisshorttimebeforeMySQLmomentarily#stopsansweringnewrequests.#Youneedtoincreasethisonlyifyouexpectalargenumberofconnectionsinashortperiodoftime.back_log=80#Ifthisissettoanonzerovalue,alltablesareclosedeveryflush_timesecondstofreeupresourcesand#synchronizeunflusheddatatodisk.#Thisoptionisbestusedonlyonsystemswithminimalresources.flush_time=0#Theminimumsizeofthebufferthatisusedforplainindexscans,rangeindexscans,andjoinsthatdonotuse#indexesandthusperformfulltablescans.join_buffer_size=256K#Themaximumsizeofonepacketoranygeneratedorintermediatestring,oranyparametersentbythe#mysql_stmt_send_long_data()CAPIfunction.max_allowed_packet=4M#Ifmorethanthismanysuccessiveconnectionrequestsfromahostareinterruptedwithoutasuccessfulconnection,#theserverblocksthathostfromperformingfurtherconnections.max_connect_errors=100#Changesthenumberoffiledescriptorsavailabletomysqld.#Youshouldtryincreasingthevalueofthisoptionifmysqldgivesyoutheerror"Toomanyopenfiles".open_files_limit=4161
解决方案七:
#Setthequerycachetype.0forOFF,1forONand2forDEMAND.query_cache_type=0#Ifyouseemanysort_merge_passespersecondinSHOWGLOBALSTATUSoutput,youcanconsiderincreasingthe#sort_buffer_sizevaluetospeedupORDERBYorGROUPBYoperationsthatcannotbeimprovedwithqueryoptimization#orimprovedindexing.sort_buffer_size=256K#Thenumberoftabledefinitions(from.frmfiles)thatcanbestoredinthedefinitioncache.#Ifyouusealargenumberoftables,youcancreatealargetabledefinitioncachetospeedupopeningoftables.#Thetabledefinitioncachetakeslessspaceanddoesnotusefiledescriptors,unlikethenormaltablecache.#Theminimumanddefaultvaluesareboth400.table_definition_cache=1400#Specifythemaximumsizeofarow-basedbinarylogevent,inbytes.#Rowsaregroupedintoeventssmallerthanthissizeifpossible.Thevalueshouldbeamultipleof256.binlog_row_event_max_size=8K#Ifthevalueofthisvariableisgreaterthan0,areplicationslavesynchronizesitsmaster.infofiletodisk.#(usingfdatasync())aftereverysync_master_infoevents.sync_master_info=10000#Ifthevalueofthisvariableisgreaterthan0,theMySQLserversynchronizesitsrelaylogtodisk.#(usingfdatasync())aftereverysync_relay_logwritestotherelaylog.sync_relay_log=10000#Ifthevalueofthisvariableisgreaterthan0,areplicationslavesynchronizesitsrelay-log.infofiletodisk.#(usingfdatasync())aftereverysync_relay_log_infotransactions.sync_relay_log_info=10000

时间: 2024-11-02 07:56:41

mysql没关闭 就关机了 再次开机 报 high service error 求解决的相关文章

win8.1系统笔记本关机后再次开机电量消耗很多怎么回事

  win8.1系统笔记本关机后再次开机电量消耗很多怎么回事?部分用户说win8.1系统笔记本关闭之后,第二天开机,发现电量消耗很多,一般来讲关机是不消耗电量的,到底怎么回事呢?许多用户并不知道如果点击关机按钮后,没等系统关机马上将盖子合上,电脑将无法正常关机,所以会一些损耗电量.找到原因了,下面小编介绍解决方法给大家,帮助大家避免发生关机后还发生损耗电量的情况. 具体步骤: 1.按下"Win+X"组合键系统快捷菜单,点击"控制面板"; 2.将控制面板查看方式修改为

win8系统开机提示错误代码“runtime Error”怎么解决?

win8系统开机提示错误代码"runtime Error"怎么解决?   方法一:执行CMD命令 1.首先,打开win8运行窗口,执行"CMD"命令,并单击回车键; 2.在打开的命令提示符窗口中,输入命令"cd %windir%system32",再按下回车键.这样就可以找到系统上的system32文件夹路径了. 3.接着继续在窗口中输入"Regsvr32 Msxml3.dl",同样按下回车键执行该命令. 方法二:重置浏览器法

深度win7旗舰版系统开机提示disk read error如何解决

  1.首先要检查一下驱动程序,因为如果是有软盘存在,则需要把软件驱动直接禁止或者是关闭掉; 2.win7系统用户需要启动防病毒保护程序,然后检查硬盘连接线是否完整连接,如果连接线没有问题,则检查硬盘是否出现坏道或者是在硬盘上是否有灰尘,有的话要及时解决. 3.检查一下引导区写入是不是出现问题,如果出现问题的话,则需要重新恢复BIOS默认设置,然后重新连接光驱数据线,这样就可以解决问题了. 小结:当遇到问题的时候要分析出故障根本原因,并且从根本上解决所有故障引发原因,对于win7系统用户来说,当

Win7旗舰版系统开机蓝屏提示0xc0000005如何解决

  1.当电脑出现下图中的蓝屏界面时,按住电源开关10秒强制关机,关机后再次开机,并在开机的时候长按住F8键; 2.按住F8键直到出现高级选项菜单,接着使用键盘的方向键选择"安全模式",回车,再选择当前的系统后按回车; 3.在选择账户的界面的时候请选择管理员帐户登录系统,进入系统后,弹出"Windows 正在安全模式下运行"的提示,点击"是"; 4.进入系统安全模式桌面之后,依次点击"开始--控制面板--添加或删除程序", 5

Win7系统强制关机后无法开机的解决办法

  一般人出现电脑死机状况会选择怎么做,我相信大部分人都会去强制关机,因为一般情况下,只要强制关机重启之后电脑的问题就会得到解决.但是有种最困难的情况就是,强制关机之后电脑直接打不开了,重启也没有用途,直接死机,真是让人头疼,因为强制关机对于电脑的损伤很大,在很多程序没有正常关闭的情况下就被强制关闭,是受到很大的伤害的.下面小编来给大家分享电脑死机如何启动的方法. 第一种方法:重新启动Win7旗舰版电脑,然后在开机之后按下键盘上的F8,这样就可以进入到win7旗舰版的高级设置菜单中了,利用键盘上

BIOS中如何关闭指纹识别并再次开启

  1.在电脑刚开机时,快速按下"F1"或"DEL"或"F2"(根据开机提示,不同的机型进BIOS的按键有所不同)按键后,进入BIOS界面; 2.进入"Security"菜单,选择"I/O Port Access"后,将"Fingerprint Reader"改为"Disabled"后保存并关机; 3.再次开机进入BIOS界面,将"Fingerprint R

系统-安卓 发生错误后没回到桌面,而是再次运行了程序。

问题描述 安卓 发生错误后没回到桌面,而是再次运行了程序. RT,但是这时候很多控件都失效了.请问,怎么避免这种情况呢? 解决方案 你应该避免的是发生anr错误,所以你要在程序中尽量捕获那些致命错误,不要让app崩溃 解决方案二: 写一个捕获全局异常类吧 代码http://blog.csdn.net/jdsjlzx/article/details/7606423

c-将含有指针的结构体写入文件,关闭程序后如何再次读写

问题描述 将含有指针的结构体写入文件,关闭程序后如何再次读写 从文件中读出一篇英文文章,若干行,每行最多不超过80个字符.首次运行都不会出现错误,关闭后再次读写文件就会出现错误 #include #include #include #include #include #define N 100 typedef struct lnode { char data; struct lnode *next; }Linklist; Linklist *Par[N]; struct paragraph {

电脑开机出现CMOS Checksum Bad如何解决?

  一.问题描述 开机后出现如下图界面,无法进入系统.我们看最后两条: 尝试按F1,可以进入了BIOS, 而按F2却一直卡着,无法进入系统,一会之后又自动关机. 二.解析信息 上面的信息就是系统启动的时候,我们一项项来分析下. 第一句:DRAM Frequercy For DDR3 1333...显然是指内存,DDR3 1333是内存型号. 第二句:1 AMD North Bridge, Rev C3 显然是指AMD的主板 第三句:Initializing USB Controllers.. D