2019独角兽企业重金招聘Python工程师标准>>>

[root@localhost ~]# /etc/init.d/mysql start
Starting MySQL.170430 23:07:56 mysqld_safe Logging to '/home/mysql/db/mianbao/localhost.localdomain.err'.
170430 23:07:56 mysqld_safe Starting mysqld daemon with databases from /home/mysql/db/mianbao
/usr/bin/mysqld_safe_helper: Can't create/write to file '/home/mysql/db/mianbao/localhost.localdomain.err' (Errcode: 2 "No such file or directory")
. ERROR!
[root@localhost mianbao]# tail -f localhost.localdomain.err
170430 23:08:57 [Note] InnoDB: Creating tablespace and datafile system tables.
170430 23:08:57 [Note] InnoDB: Tablespace and datafile system tables created.
170430 23:08:57 [Note] InnoDB: Waiting for purge to start
170430 23:08:57 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 0
170430 23:08:57 [Note] Plugin 'FEEDBACK' is disabled.
170430 23:08:57 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
170430 23:08:57 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
170430 23:08:57 [Note] Server socket created on IP: '127.0.0.1'.
170430 23:08:57 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
170430 23:08:57 mysqld_safe mysqld from pid file /home/mysql/db/mianbao/localhost.localdomain.pid ended

初始化数据库,指定数据存储路径

[root@localhost mianbao]# mysql_install_db --user=mysql --datadir=/home/mysql/db/mianbao/
Installing MariaDB/MySQL system tables in '/home/mysql/db/mianbao/' ...
170430 23:14:18 [Note] /usr/sbin/mysqld (mysqld 10.0.30-MariaDB) starting as process 46784 ...
170430 23:14:18 [Note] InnoDB: Using mutexes to ref count buffer pool pages
170430 23:14:18 [Note] InnoDB: The InnoDB memory heap is disabled
170430 23:14:18 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
170430 23:14:18 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
170430 23:14:18 [Note] InnoDB: Compressed tables use zlib 1.2.3
170430 23:14:18 [Note] InnoDB: Using Linux native AIO
170430 23:14:18 [Note] InnoDB: Using CPU crc32 instructions
170430 23:14:18 [Note] InnoDB: Initializing buffer pool, size = 128.0M
170430 23:14:18 [Note] InnoDB: Completed initialization of buffer pool
170430 23:14:18 [Note] InnoDB: Highest supported file format is Barracuda.
170430 23:14:18 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463
170430 23:14:18 [Note] InnoDB: Database was not shutdown normally!
170430 23:14:18 [Note] InnoDB: Starting crash recovery.
170430 23:14:18 [Note] InnoDB: Reading tablespace information from the .ibd files...
170430 23:14:18 [Note] InnoDB: Restoring possible half-written data pages
170430 23:14:18 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 1600607
170430 23:14:18 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
170430 23:14:18 [Note] InnoDB: 128 rollback segment(s) are active.
170430 23:14:18 [Note] InnoDB: Waiting for purge to start
170430 23:14:18 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 1600607
170430 23:14:19 [Note] InnoDB: FTS optimize thread exiting.
170430 23:14:19 [Note] InnoDB: Starting shutdown...
170430 23:14:20 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
170430 23:14:22 [Note] InnoDB: Shutdown completed; log sequence number 1616707
OK
Filling help tables...
170430 23:14:22 [Note] /usr/sbin/mysqld (mysqld 10.0.30-MariaDB) starting as process 46814 ...
170430 23:14:22 [Note] InnoDB: Using mutexes to ref count buffer pool pages
170430 23:14:22 [Note] InnoDB: The InnoDB memory heap is disabled
170430 23:14:22 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
170430 23:14:22 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
170430 23:14:22 [Note] InnoDB: Compressed tables use zlib 1.2.3
170430 23:14:22 [Note] InnoDB: Using Linux native AIO
170430 23:14:22 [Note] InnoDB: Using CPU crc32 instructions
170430 23:14:22 [Note] InnoDB: Initializing buffer pool, size = 128.0M
170430 23:14:22 [Note] InnoDB: Completed initialization of buffer pool
170430 23:14:22 [Note] InnoDB: Highest supported file format is Barracuda.
170430 23:14:22 [Note] InnoDB: 128 rollback segment(s) are active.
170430 23:14:22 [Note] InnoDB: Waiting for purge to start
170430 23:14:22 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 1616707
170430 23:14:22 [Note] InnoDB: FTS optimize thread exiting.
170430 23:14:22 [Note] InnoDB: Starting shutdown...
170430 23:14:23 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
170430 23:14:25 [Note] InnoDB: Shutdown completed; log sequence number 1616717
OKTo start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h localhost.localdomain password 'new-password'Alternatively you can run:
'/usr/bin/mysql_secure_installation'which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/home/mysql/db/mianbao/'You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.plPlease report any problems at http://mariadb.org/jiraThe latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/[root@localhost mianbao]# /etc/init.d/mysql start
Starting MySQL.170430 23:14:34 mysqld_safe Logging to '/home/mysql/db/mianbao/localhost.localdomain.err'.
170430 23:14:34 mysqld_safe Starting mysqld daemon with databases from /home/mysql/db/mianbaoSUCCESS!

转载于:https://my.oschina.net/2726276586/blog/889948

CentOS6.5启动MariaDB错误相关推荐

  1. an初始java运行环境错误_【环境问题】STS(eclipse)启动出现错误提示:an error hava occured,see the log......

    [环境问题]STS(eclipse)启动出现错误提示:an error hava occured,see the log... 发布时间:2018-06-08 14:08, 浏览次数:562 , 标签 ...

  2. Zookeeper之启动常见错误及解决方法

    Zookeeper之启动常见错误及解决方法 参考文章: (1)Zookeeper之启动常见错误及解决方法 (2)https://www.cnblogs.com/jpfss/p/11510716.htm ...

  3. Window下启动MariaDB服务启动失败

    今天启动MariaDB,弹出"系统错误3 系统路径找不到",我的天啊,昨天还好好的,想深一层,昨天貌似用过 "Advanced SystemCare"清理过注册 ...

  4. Navicat数据库错误2003 Can not connect to Mysql Server on以及Windows无法启动mysql 错误1069

    今天重启了一下服务器,登录系统后用navicat连接数据库报错.以下是解决办法. Navicat连接数据库时报:错误2003 Can not connect to Mysql Server on()解 ...

  5. ubuntu mysql 5.7 出错_\ubuntu mysql5.7 启动提示错误:/var/run/mysqld/mysqld.sock??

    ubuntu mysql5.7 启动提示错误 mysql start ERROR 2002 (HY000): Can't connect to local MySQL server through s ...

  6. 未能连接到许可证服务器 发生错误 -96,ug启动许可证错误怎么办 UG软件启动许可证错误96解决方法...

    许多用户朋友在使用NX UG软件时会出现UG软件启动许可证错误的情况,往往会伴随着一些提示性的数字,例如96,97等,如果您的UG软件在启动过程中出现了UG软件启动许可证错误96的情况,马上点击查看详 ...

  7. 无法启动ServletWebServerApplicatio错误记录

    spring – ApplicationContextException:由于缺少ServletWebServerFactory bean,无法启动ServletWebServerApplicatio ...

  8. 解决mysql无法启动,错误1067

    昨天晚上不知道怎么滴!mysql无法启动,错误内容如下: 没办法,我就打开mysql中的my.ini文件,发现里面的datadir=""没有指定到我的data文件下,立即把它给改了 ...

  9. mysql服务无法启动进程意外终止_mysql服务无法启动 1067 错误,进程意外终止

    mysql服务无法启动 1067 错误,进程意外终止 2015年02月10号 发表于:评论 () 热度:1148 今天window服务器上的mysql 服务 无法启动 , 查看应用程序日志 提示 &q ...

  10. Win10应用程序无法正常启动0xc0000142错误的解决方法

    近期,有win10用户遇到一个问题,打开Word软件出现了"应用程序无法正常启动0xc0000142"的错误提示,将电脑重启之后依然会出现该提示,再次尝试打开发现可以正常打开,并且 ...

最新文章

  1. JQuery日记6.5 Javascript异步模式(一)
  2. Android自定义View:MeasureSpec的真正意义与View大小控制
  3. Oracle常用dump命令
  4. html 下拉框字体,怎么把select下拉菜单里的文字设置成左右滚动效果
  5. leetocde1129. 颜色交替的最短路径(bfs)
  6. 华为虚拟服务器lanip地址,2018软考网络工程师《华为基础实验》十九配置路由器为DHCPServer...
  7. svn mysql认证_SVN基于MySQL认证
  8. python遗传算法计算实例_遗传算法python简单例子(详解)
  9. 【JAVA SE】第十五章 ArrayList、LinkedList、HashMap和HashSet
  10. QUdpSocket 4.6 严重丢包
  11. nacos 单机部署_nacos简介以及作为注册/配置中心与Eureka、apollo的选型比较
  12. IsPostBack详解
  13. 利用高德制作GIS热力图
  14. Nordic--nrf52832--FDS(二)基本使用
  15. 一:计算机基础入门及介绍
  16. 对等商务_对等| 第三部分
  17. html穿越火线游戏代码,CF代码大全.doc
  18. ABAP 发布webservice调用外部webservice
  19. Python基础:字符集和编码
  20. 微软 AutoML 框架之 FLAML | 环境配置、安装、分类/回归测试

热门文章

  1. gre模考软件java.exe_【模考】GRE模考软件逆天版(考G神器)
  2. SEC再收中国互金企业招股书 融360成立简普科技拟融资2亿美元
  3. USB网卡收发数据分析
  4. Swagger2由入门到实战
  5. 浅谈opencv3.2中各个模块的简介
  6. 最新我爱防红网QQ防红跳转短网址生成源码
  7. nlp自然语言处理_自然语言处理中的偏见nlp是一个危险但可解决的问题
  8. 阿里云DevOps助理工程师认证(ACA)笔记
  9. M. Bottle Arrangements
  10. 帝国 cms 列表 php,帝国cms数据表详细中文说明