Mysql启动服务报错解决方案

上面是我的my.ini文件

然后启动服务的时候net start mysql 报错是:
MySql 服务正在启动 .
MySql 服务无法启动。

这个时候我是先查看我的my.ini文件的那两个路径,把路径改为我们的安装的目录的路径
安装路径是么没有data文件夹的,这时候我们可以手动创建一个;
然后执行:
mysqld --initialize-insecure
这个命令,执行成功之后再重启服务就可以了。


阅读更多

启动服务报错

04-02

刚安装的JBoss 7.1 启动服务时报了如下的错。rnJava HotSpot(TM) Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0rn00:51:24,854 信息 [org.jboss.modules] JBoss Modules version 1.1.1.GArn00:51:25,000 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GArn00:51:25,038 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" startingrn00:51:25,133 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.as: org.jboss.msc.service.StartException in service jboss.as: Failed to start servicern at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_40]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_40]rn at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]rnCaused by: java.lang.IllegalStateException: JBAS014921: Cannot obtain SHA-1 MessageDigestrn at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.(ContentRepository.java:134)rn at org.jboss.as.repository.ContentRepository$Factory.addService(ContentRepository.java:97)rn at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]rn at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]rn ... 3 morernCaused by: java.security.NoSuchAlgorithmException: SHA-1 MessageDigest not availablern at sun.security.jca.GetInstance.getInstance(GetInstance.java:159) [rt.jar:1.8.0_40]rn at java.security.Security.getImpl(Security.java:695) [rt.jar:1.8.0_40]rn at java.security.MessageDigest.getInstance(MessageDigest.java:167) [rt.jar:1.8.0_40]rn at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.(ContentRepository.java:132)rn ... 7 morernrn00:51:25,145 ERROR [stderr] java.util.concurrent.ExecutionException: Operation failedrn00:51:25,145 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74)rn00:51:25,146 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268)rn00:51:25,146 ERROR [stderr] at org.jboss.as.server.Main.main(Main.java:98)rn00:51:25,146 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn00:51:25,147 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn00:51:25,147 ERROR [stderr] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn00:51:25,148 ERROR [stderr] at java.lang.reflect.Method.invoke(Method.java:497)rn00:51:25,148 ERROR [stderr] at org.jboss.modules.Module.run(Module.java:260)rn00:51:25,149 ERROR [stderr] at org.jboss.modules.Main.main(Main.java:291)rn00:51:25,149 ERROR [stderr] Caused by: org.jboss.msc.service.StartException in service jboss.as: Failed to start servicern00:51:25,150 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)rn00:51:25,150 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn00:51:25,151 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn00:51:25,151 ERROR [stderr] at java.lang.Thread.run(Thread.java:745)rn00:51:25,152 ERROR [stderr] Caused by: java.lang.IllegalStateException: JBAS014921: Cannot obtain SHA-1 MessageDigestrn00:51:25,152 ERROR [stderr] at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.(ContentRepository.java:134)rn00:51:25,153 ERROR [stderr] at org.jboss.as.repository.ContentRepository$Factory.addService(ContentRepository.java:97)rn00:51:25,153 ERROR [stderr] at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:134)rn00:51:25,154 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)rn00:51:25,155 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)rn00:51:25,155 ERROR [stderr] ... 3 morern00:51:25,155 ERROR [stderr] Caused by: java.security.NoSuchAlgorithmException: SHA-1 MessageDigest not availablern00:51:25,156 ERROR [stderr] at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)rn00:51:25,156 ERROR [stderr] at java.security.Security.getImpl(Security.java:695)rn00:51:25,157 ERROR [stderr] at java.security.MessageDigest.getInstance(MessageDigest.java:167)rn00:51:25,157 ERROR [stderr] at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.(ContentRepository.java:132)rn00:51:25,158 ERROR [stderr] ... 7 morern

没有更多推荐了,返回首页