1. # ./mysql_install_db \
  2. > --defaults-file=/etc/my.cnf \
  3. > --basedir=/data/mysql \
  4. > --datadir=/data/mysql/data \
  5. > --user=mysql
  6. Installing MySQL system tables...-- :: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  7. -- :: [Note] /data/mysql/bin/mysqld (mysqld 5.6.) starting as process ...
  8. -- :: [Note] InnoDB: Using atomics to ref count buffer pool pages
  9. -- :: [Note] InnoDB: The InnoDB memory heap is disabled
  10. -- :: [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  11. -- :: [Note] InnoDB: Memory barrier is not used
  12. -- :: [Note] InnoDB: Compressed tables use zlib 1.2.
  13. -- :: [Note] InnoDB: Using CPU crc32 instructions
  14. -- :: [Note] InnoDB: Initializing buffer pool, size = 128.0M
  15. -- :: [Note] InnoDB: Completed initialization of buffer pool
  16. -- :: [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
  17. -- :: [Note] InnoDB: Setting file ./ibdata1 size to MB
  18. -- :: [Note] InnoDB: Database physically writes the file full: wait...
  19. -- :: [Note] InnoDB: Setting log file ./ib_logfile101 size to MB
  20. -- :: [Note] InnoDB: Setting log file ./ib_logfile1 size to MB
  21. -- :: [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
  22. -- :: [Warning] InnoDB: New log files created, LSN=
  23. -- :: [Note] InnoDB: Doublewrite buffer not found: creating new
  24. -- :: [Note] InnoDB: Doublewrite buffer created
  25. -- :: [Note] InnoDB: rollback segment(s) are active.
  26. -- :: [Warning] InnoDB: Creating foreign key constraint system tables.
  27. -- :: [Note] InnoDB: Foreign key constraint system tables created
  28. -- :: [Note] InnoDB: Creating tablespace and datafile system tables.
  29. -- :: [Note] InnoDB: Tablespace and datafile system tables created.
  30. -- :: [Note] InnoDB: Waiting for purge to start
  31. -- :: [Note] InnoDB: 5.6. started; log sequence number
  32. -- :: [Note] Binlog end
  33. -- :: [Note] InnoDB: FTS optimize thread exiting.
  34. -- :: [Note] InnoDB: Starting shutdown...
  35. -- :: [Note] InnoDB: Shutdown completed; log sequence number
  36. OK
  37.  
  38. Filling help tables...-- :: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  39. -- :: [Note] /data/mysql/bin/mysqld (mysqld 5.6.) starting as process ...
  40. -- :: [Note] InnoDB: Using atomics to ref count buffer pool pages
  41. -- :: [Note] InnoDB: The InnoDB memory heap is disabled
  42. -- :: [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  43. -- :: [Note] InnoDB: Memory barrier is not used
  44. -- :: [Note] InnoDB: Compressed tables use zlib 1.2.
  45. -- :: [Note] InnoDB: Using CPU crc32 instructions
  46. -- :: [Note] InnoDB: Initializing buffer pool, size = 128.0M
  47. -- :: [Note] InnoDB: Completed initialization of buffer pool
  48. -- :: [Note] InnoDB: Highest supported file format is Barracuda.
  49. -- :: [Note] InnoDB: rollback segment(s) are active.
  50. -- :: [Note] InnoDB: Waiting for purge to start
  51. -- :: [Note] InnoDB: 5.6. started; log sequence number
  52. -- :: [Note] Binlog end
  53. -- :: [Note] InnoDB: FTS optimize thread exiting.
  54. -- :: [Note] InnoDB: Starting shutdown...
  55. -- :: [Note] InnoDB: Shutdown completed; log sequence number
  56. OK
  57.  
  58. To start mysqld at boot time you have to copy
  59. support-files/mysql.server to the right place for your system
  60.  
  61. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  62. To do so, start the server, then issue the following commands:
  63.  
  64. /data/mysql/bin/mysqladmin -u root password 'new-password'
  65. /data/mysql/bin/mysqladmin -u root -h zabbix.chinayasha.con password 'new-password'
  66.  
  67. Alternatively you can run:
  68.  
  69. /data/mysql/bin/mysql_secure_installation
  70.  
  71. which will also give you the option of removing the test
  72. databases and anonymous user created by default. This is
  73. strongly recommended for production servers.
  74.  
  75. See the manual for more instructions.
  76.  
  77. You can start the MySQL daemon with:
  78.  
  79. cd . ; /data/mysql/bin/mysqld_safe &
  80.  
  81. You can test the MySQL daemon with mysql-test-run.pl
  82.  
  83. cd mysql-test ; perl mysql-test-run.pl
  84.  
  85. Please report any problems at http://bugs.mysql.com/
  86.  
  87. The latest information about MySQL is available on the web at
  88.  
  89. http://www.mysql.com
  90.  
  91. Support MySQL by buying support/licenses at http://shop.mysql.com
  92.  
  93. New default config file was created as /data/mysql/my.cnf and
  94. will be used by default by the server when you start it.
  95. You may edit this file to change server settings
  96.  
  97. WARNING: Default config file /etc/my.cnf exists on the system
  98. This file will be read by default by the MySQL server
  99. If you do not want to use this, either remove it, or use the
  100. --defaults-file argument to mysqld_safe when starting the server

MySQL执行mysql_install_db初始化的更多相关文章

  1. mysql通过mysql_install_db初始化数据目录时使用--user选项的作用是什么?

    需求描述: mysql数据库通过mysql_install_db初始化数据目录时,使用了--user选项,这里记录下该参数的作用 参数解释: 1.--user的作用:就是以哪个操作系统用户来执行mys ...

  2. centos 7安装mysql 执行./scripts/mysql_install_db --user=mysql 报错 FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db: Data::Dumper

    [root@localhost mysql]# ./scripts/mysql_install_db  --user=mysql FATAL ERROR: please install the fol ...

  3. MySQL数据库的初始化mysql_install_db 【基础巩固】

    一.mysql_install_db说明 当MySQL的系统库(mysql系统库)发生故障或需要新加一个mysql实例时,需要初始化mysql数据库. 需要使用的命令:/usr/local/mysql ...

  4. mysql 执行流程

    mysql 执行流程 我们可以人为的把mysql 的主要功能分为如下模块. 1.初始化模块 mysql启动的时候执行初始化工作,如读取配置文件,分配一些全局变量(sql_model,catch buf ...

  5. Java开源博客My-Blog之mysql容器重复初始化的严重bug修复过程

    写在前面的话 <Docker+SpringBoot+Mybatis+thymeleaf的Java博客系统开源啦> <Java开源博客My-Blog之docker容器组件化修改> ...

  6. mysql数据库二进制初始化出现:170425 17:47:04 [ERROR] /application/mysql//bin/mysqld: unknown option '--skip-locking' 170425 17:47:04 [ERROR] Aborting 解决办法

    [root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --basedir=/application/mysql/ --data ...

  7. MySql 执行计划解读

    说明 解读执行计划l对于我们日常工作中慢sql的分析和调优有很大帮助,同时在解读的过程中也能知道如何规避慢sql 建议需要了解join匹配原理的知识:https://www.cnblogs.com/L ...

  8. -bash: /usr/local/mysql/scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory

    安装 MySQL 初始化时,报错如下: [root@hcdb1 ~]# /usr/local/mysql/scripts/mysql_install_db --defaults-file=/etc/m ...

  9. 阿里云服务执行mysql_install_db报错

    问题描述:阿里云服务执行mysql_install_db报错解决方案:安装autoconf库(yum -y install autoconf)然后在执行:mysql_install_db就会出现这样, ...

随机推荐

  1. CAD2006您没有足够的权限来安装本产品

    在Win10的环境下安装CAD2006,可能会报错"您没有足够的权限来安装本产品". 解决方法是,右键以"兼容性疑难解答"运行 在弹出的对话框中,点击 &quo ...

  2. 使用Selenium+PhantomJS实现网页内容加载(包括网页后期Ajax出来的结果)

    一.需求 需要Nuget下面的库: 二.代码 class Program { static void Main(string[] args) { TestPhantomJsDriver(); } pr ...

  3. Extjs的各版本下载

    Extjs的版本繁多,本文收集了Extjs各个版本的下载链接,包括官网和非官网的,以及各种汉化版api,欢迎大家下载分享. Extjs最新版下载链接:http://www.sencha.com/pro ...

  4. WEB打印控件Lodop使用体会

                    控件的使用方法,作者都已经有详细的使用说明供使用者参考. 但是对于打印表格,确实出现一点小问题,如果表格是自然高度,也就是只设置了table的高度,此时是可以正常显示的 ...

  5. Shell与Bash

    1:Shell编程的本质 Shell的意思是“壳程序”,它是一个视窗,供我们交互. 系统中有许多负责不同功能的可执行文件,他们被添加到PATH变量后,我们就可以在Shell中通过命令行调用.这些这些可 ...

  6. Java通过在主循环中判断Boolean来停止线程

    Java代码: package Threads; /** * Created by Frank */ public class StopBoolean extends Thread { // 确保变化 ...

  7. .NET 工具生成引擎概述

    Mark Michaelis 微软中国MSDN 过去几年大家一直都在使用 .NET Core(有这么久吗?)并且都知道“生成系统”经历了重大改变,不论是终止对 Gulp 的内置支持,还是放弃 Proj ...

  8. 网站流量分析指标-PV/UV/PR/ip分析及区别

    1.什么是pv? PV(page view),即页面浏览量,或点击量;通常是衡量一个网络新闻频道或网站甚至一条网络新闻的主要指标. 高手对pv的解释是,一个访问者在24小时(0点到24点)内到底看了你 ...

  9. 使用PowerDesigner生成SQL语句

    0.我使用的PowerDedigner的版本如下: 1.tools>>Resource>>DBMS,然后选中你的数据库版本,双击或点击左上角的properties. 2.再选择 ...

  10. Oracle自学笔记(一)

    1.创建用户并指定表空间 create user gy_3004 identified by gy_3004 default tablespace gy_3004_data temporary tab ...