热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

redhatmysqlrpm_新手MySQL5.6版本RedHatRPM包安装过程记录

[[emailprotected]桌面]#rpm-eMySQL-shared-compat[[emailprotected]桌面]#rpm-ivhrootdataMySQL-cli

[[email protected] 桌面]# rpm -e MySQL-shared-compat

[[email protected] 桌面]#  rpm -ivh /root/data/MySQL-client-5.6.21-1.el6.x86_64.rpmPreparing...                ########################################### [100%]

1:MySQL-client           ########################################### [100%]

[[email protected] 桌面]# rpm -ivh /root/data/MySQL-devel-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

1:MySQL-devel            ########################################### [100%]

[[email protected] 桌面]# rpm -Uvh /root/data/MySQL-shared-compat-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

1:MySQL-shared-compat    ########################################### [100%]

[[email protected] 桌面]# rpm -ivh /root/data/MySQL-server-5.6.21-1.el6.x86_64.rpm

Preparing...                ########################################### [100%]

1:MySQL-server           ########################################### [100%]

warning: user mysql does not exist - using root

warning: group mysql does not exist - using root

2014-11-25 10:15:30 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2014-11-25 10:15:30 2573 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-11-25 10:15:30 2573 [Note] InnoDB: The InnoDB memory heap is disabled

2014-11-25 10:15:30 2573 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2014-11-25 10:15:30 2573 [Note] InnoDB: Memory barrier is not used

2014-11-25 10:15:30 2573 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-11-25 10:15:30 2573 [Note] InnoDB: Using Linux native AIO

2014-11-25 10:15:30 2573 [Note] InnoDB: Using CPU crc32 instructions

2014-11-25 10:15:30 2573 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-11-25 10:15:30 2573 [Note] InnoDB: Completed initialization of buffer pool

2014-11-25 10:15:31 2573 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Database physically writes the file full: wait...

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2014-11-25 10:15:31 2573 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2014-11-25 10:15:31 2573 [Warning] InnoDB: New log files created, LSN=45781

2014-11-25 10:15:31 2573 [Note] InnoDB: Doublewrite buffer not found: creating new

2014-11-25 10:15:31 2573 [Note] InnoDB: Doublewrite buffer created

2014-11-25 10:15:31 2573 [Note] InnoDB: 128 rollback segment(s) are active.

2014-11-25 10:15:31 2573 [Warning] InnoDB: Creating foreign key constraint system tables.

2014-11-25 10:15:31 2573 [Note] InnoDB: Foreign key constraint system tables created

2014-11-25 10:15:31 2573 [Note] InnoDB: Creating tablespace and datafile system tables.

2014-11-25 10:15:31 2573 [Note] InnoDB: Tablespace and datafile system tables created.

2014-11-25 10:15:31 2573 [Note] InnoDB: Waiting for purge to start

2014-11-25 10:15:31 2573 [Note] InnoDB: 5.6.21 started; log sequence number 0

A random root password has been set. You will find it in ‘/root/.mysql_secret‘.

2014-11-25 10:15:33 2573 [Note] Binlog end

2014-11-25 10:15:33 2573 [Note] InnoDB: FTS optimize thread exiting.

2014-11-25 10:15:33 2573 [Note] InnoDB: Starting shutdown...

2014-11-25 10:15:35 2573 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2014-11-25 10:15:35 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2014-11-25 10:15:35 2596 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-11-25 10:15:35 2596 [Note] InnoDB: The InnoDB memory heap is disabled

2014-11-25 10:15:35 2596 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2014-11-25 10:15:35 2596 [Note] InnoDB: Memory barrier is not used

2014-11-25 10:15:35 2596 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-11-25 10:15:35 2596 [Note] InnoDB: Using Linux native AIO

2014-11-25 10:15:35 2596 [Note] InnoDB: Using CPU crc32 instructions

2014-11-25 10:15:35 2596 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2014-11-25 10:15:35 2596 [Note] InnoDB: Completed initialization of buffer pool

2014-11-25 10:15:35 2596 [Note] InnoDB: Highest supported file format is Barracuda.

2014-11-25 10:15:35 2596 [Note] InnoDB: 128 rollback segment(s) are active.

2014-11-25 10:15:35 2596 [Note] InnoDB: Waiting for purge to start

2014-11-25 10:15:35 2596 [Note] InnoDB: 5.6.21 started; log sequence number 1625977

2014-11-25 10:15:35 2596 [Note] Binlog end

2014-11-25 10:15:35 2596 [Note] InnoDB: FTS optimize thread exiting.

2014-11-25 10:15:35 2596 [Note] InnoDB: Starting shutdown...

2014-11-25 10:15:37 2596 [Note] InnoDB: Shutdown completed; log sequence number 1625987

A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !

You will find that password in ‘/root/.mysql_secret‘.

You must change that password on your first connect,

no other statement but ‘SET PASSWORD‘ will be accepted.

See the manual for the semantics of the ‘password expired‘ flag.

Also, the account for the anonymous user has been removed.

In addition, you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test database.

This is strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as /usr/my.cnf and

will be used by default by the server when you start it.

You may edit this file to change server settings

[[email protected] 桌面]# service mysql start

Starting MySQL..                                           [确定]

[[email protected] 桌面]# cat /root/.mysql_secret

# The random password set for the root user at Tue Nov 25 10:15:32 2014 (local time): SSSJqYQwlmgkJ1r9

[[email protected] 桌面]# mysql -uroot -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.6.21

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> set password=password(‘password2014‘);                                          Query OK, 0 rows affected (0.00 sec)

Query OK, 0 rows affected (0.01 sec)

-> show databases;

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Query OK, 0 rows affected (0.00 sec)

show databases‘ at line 1

mysql> select 1;

+---+

| 1 |

+---+

| 1 |

+---+

1 row in set (0.00 sec)

mysql> Ctrl-C -- exit!

原文:http://lovecto1993.blog.51cto.com/8785436/1583027



推荐阅读
  • 本文介绍了在CentOS 6.4系统中安装MySQL 5.5.37时遇到的启动失败和PID文件问题,并提供了详细的解决方案,包括日志分析、权限检查等步骤。 ... [详细]
  • 主板IO用W83627THG,用VC如何取得CPU温度,系统温度,CPU风扇转速,VBat的电压. ... [详细]
  • Python基础教程:struct模块与格式化字符详解
    本文详细介绍了Python中struct模块的功能,以及如何利用格式化字符实现Python与C语言结构体之间的数据转换。文章通过具体实例讲解了struct模块的主要方法及其应用场景。 ... [详细]
  • 原作者:小甲鱼(注:最左边是文件头的偏移量。)IMAGE_DOS_HEADERSTRUCT{+0hWORDe_magicMagi ... [详细]
  • QNX 微内核(procnto-instr)的监测版本内置了高级跟踪与分析工具,能够实现实时系统监控。该模块适用于单处理器及多处理器系统。 ... [详细]
  • 在DELL Inspiron 14R上部署CentOS X64 6.4的详细步骤
    本文详细记录了在DELL Inspiron 14R笔记本电脑上安装CentOS X64 6.4操作系统的过程,包括遇到的问题及解决方法。 ... [详细]
  • 深入理解BIO与NIO的区别及其应用
    本文详细探讨了BIO(阻塞I/O)和NIO(非阻塞I/O)之间的主要差异,包括它们的工作原理、性能特点以及应用场景,旨在帮助开发者更好地理解和选择适合的I/O模型。 ... [详细]
  • 本文概述了算法的基础概念,包括时间复杂度的计算规则,以及常见的递归算法的时间复杂度分析。同时,详细介绍了数组和链表的基本特性及其操作的时间复杂度,并提供了几个关于链表操作的具体示例。最后,探讨了栈和队列的概念及其应用,包括如何利用这些数据结构解决实际问题。 ... [详细]
  • 本题探讨了在大数据结构背景下,如何通过整体二分和CDQ分治等高级算法优化处理复杂的时间序列问题。题目设定包括节点数量、查询次数和权重限制,并详细分析了解决方案中的关键步骤。 ... [详细]
  • 目录一、salt-job管理#job存放数据目录#缓存时间设置#Others二、returns模块配置job数据入库#配置returns返回值信息#mysql安全设置#创建模块相关 ... [详细]
  • 本文详细介绍了优化DB2数据库性能的多种方法,涵盖统计信息更新、缓冲池调整、日志缓冲区配置、应用程序堆大小设置、排序堆参数调整、代理程序管理、锁机制优化、活动应用程序限制、页清除程序配置、I/O服务器数量设定以及编入组提交数调整等方面。通过这些技术手段,可以显著提升数据库的运行效率和响应速度。 ... [详细]
  • 深入解析SpringMVC核心组件:DispatcherServlet的工作原理
    本文详细探讨了SpringMVC的核心组件——DispatcherServlet的运作机制,旨在帮助有一定Java和Spring基础的开发人员理解HTTP请求是如何被映射到Controller并执行的。文章将解答以下问题:1. HTTP请求如何映射到Controller;2. Controller是如何被执行的。 ... [详细]
  • PostgreSQL 最新动态 —— 2022年4月6日
    了解 PostgreSQL 社区的最新进展和技术分享 ... [详细]
  • 本文总结了WebSphere应用服务器出现宕机问题的解决方法,重点讨论了关键参数的调整,包括数据源连接池、线程池设置以及JVM堆大小等,旨在提升系统的稳定性和性能。 ... [详细]
  • 针对上一期关于 Windows 8 的问题,我们正在积极解决。本文提供 IE6,7,8 三个版本的单文件版下载,适用于 Windows Vista/7 系统,支持 x86 和 x64 架构。欢迎大家下载并分享。 ... [详细]
author-avatar
terence025847
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有