记录一次mariadb启动错误

机器无意重启了,之后启动一直显示在Start Mysql.....查看mysql日志错误如下

第一个ERROR解决方法:

修改/data/mydata权限,chomd 777 /data/mydata

再次重启故障未解决,查看日志报错如下

根据网上查找的解决方案为初始化mysql

运行/usr/local/mariadb-10.0.12/scripts/mysql_install_db --user=mysql --datadir=/data/mydata进行初始化又提示FATAL ERROR: Could not find ./bin/my_print_defaults

查找到my_print_defaults所在文件夹,查找到是在/usr/local/mysql/下(安装路径不同位置也会不通),进入后再次运行初始化命令解决问题

总结为初始化原因,由于这台机器做测试用,装完mariadb后忘记是否有做初始化了。

时间: 2024-10-01 16:51:36

记录一次mariadb启动错误的相关文章

centos启动错误:Inodes that were part of a corrupted orphan linked list found.

centos启动时,提示错误: 1 /dev/mapper/VolGroup-lv_root contains a file system with errors,check forced. 2 /dev/mapper/VolGroup-lv_root: 3 Inodes that were part of a corrupted orphan linked list found. 4 /dev/mapper/VolGroup-lv_root:unexpected inconsistency:r

STS的启动错误

"Failed to load the JNI shared library jvm.dll” 下班回家下载了一个STS,居然打不开,检查环境变量配置没有错误,试了好几次,甚至把jre都拷贝到sts目录都不行,这让我无语得不行,网上查下,有人说版本可能不对,果然检查了一下自己下载的版本,因为点击的是网站的默认下载,没有进行版本检查,而自己是64位系统+64位JDK,当然总提示错误了.了解后,立刻到官网下了个64版本的,OK 这下没问题了.  做为程序员,真的要细心/细心,再细心. STS的启动错

Qt启动错误:Cannot create semaphore /tmp/qtembedded-0/QtEmbedded-0 'd'

最近要在ARM Cortex-A9平台上移植Qt4.7.3,由于我们选用的平台只支持Android系统,所以,要用Qt只能自己移植了. 硬件平台选用深圳思博特科技的SCM3188M,CPU是RK3188,1.6GHz四核Cortex-A9,启动后出现以下错误.     [[email protected]]# Cannot create semaphore /tmp/qtembedded-0/QtEmbedded-0 'd' Error 38 Function not implemented C

PHP Apache shutdown unexpectedly启动错误解释及解决办法

本文出自:http://blog.csdn.net/svitter 实验环境:Myeclipse10 + tomcat7.0 有时间会写windows和linux下的tomcat配置,现在时间有限,暂且不写了..有些东西也是没有理解透彻. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <%@ page language="java" contentType="

eclipse启动错误

转载自:徐徐微风 eclipse启动错误 1.错误日志 !SESSION 2013-12-09 12:24:33.826 -----------------------------------------------eclipse.buildId=M20130204-1200java.version=1.7.0_25java.vendor=Oracle CorporationBootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CNF

LINUX环境中tomcat启动错误:The servlets named X and Y are both mapped to the url-pattern [/Z] which is not permitted

最近有一个问题困扰了我3天,我在windows部署项目无误后,准备将项目发布到阿里云linux服务器上,发现启动报错了:LINUX环境中tomcat启动错误:The servlets named X and Y are both mapped to the url-pattern [/Z] which is not permitted,首先想到的是肯定部署代码或者项目配置文件的事,怀疑有可能是jar包出错了,果不其然,在项目的WebContent\WEB-INF\lib发现了servlet-ap

Centos安装Apache启动错误:

Apache启动错误:httpd.exe: Could not reliably determine the server's fully qualified 在自己电脑配置Apache开发环境问题的时候,可能会遇到apache的启动错误:httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168. x. x for ServerName,这个错误在error.lo

记一次cognos的启动错误

今日在技术群看到有个人因为cognos启动错误求助: 具体错误信息如下: ====================================================================================================== Launching a JVM using 'Maximum memory in MB']Successfully launched a test JVM with the memory setting of '768'

解决apache启动错误httpd: Could not reliably determine the server&#39;s fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添