热门标签 | 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



推荐阅读
  • CentOS7源码编译安装MySQL5.6
    2019独角兽企业重金招聘Python工程师标准一、先在cmake官网下个最新的cmake源码包cmake官网:https:www.cmake.org如此时最新 ... [详细]
  • 深入探讨CPU虚拟化与KVM内存管理
    本文详细介绍了现代服务器架构中的CPU虚拟化技术,包括SMP、NUMA和MPP三种多处理器结构,并深入探讨了KVM的内存虚拟化机制。通过对比不同架构的特点和应用场景,帮助读者理解如何选择最适合的架构以优化性能。 ... [详细]
  • 选择适合生产环境的Docker存储驱动
    本文旨在探讨如何在生产环境中选择合适的Docker存储驱动,并详细介绍不同Linux发行版下的配置方法。通过参考官方文档和兼容性矩阵,提供实用的操作指南。 ... [详细]
  • 本文详细介绍了如何通过RPM包在Linux系统(如CentOS)上安装MySQL 5.6。涵盖了检查现有安装、下载和安装RPM包、配置MySQL以及设置远程访问和开机自启动等步骤。 ... [详细]
  • 在创建新的Android项目时,您可能会遇到aapt错误,提示无法打开libstdc++.so.6共享对象文件。本文将探讨该问题的原因及解决方案。 ... [详细]
  • 主板IO用W83627THG,用VC如何取得CPU温度,系统温度,CPU风扇转速,VBat的电压. ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • Explore how Matterverse is redefining the metaverse experience, creating immersive and meaningful virtual environments that foster genuine connections and economic opportunities. ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 本文详细介绍了如何在BackTrack 5中配置和启动SSH服务,确保其正常运行,并通过Windows系统成功连接。涵盖了必要的密钥生成步骤及常见问题解决方法。 ... [详细]
  • 本文深入探讨了 Java 中的 Serializable 接口,解释了其实现机制、用途及注意事项,帮助开发者更好地理解和使用序列化功能。 ... [详细]
  • UNP 第9章:主机名与地址转换
    本章探讨了用于在主机名和数值地址之间进行转换的函数,如gethostbyname和gethostbyaddr。此外,还介绍了getservbyname和getservbyport函数,用于在服务器名和端口号之间进行转换。 ... [详细]
  • FinOps 与 Serverless 的结合:破解云成本难题
    本文探讨了如何通过 FinOps 实践优化 Serverless 应用的成本管理,提出了首个 Serverless 函数总成本估计模型,并分享了多种有效的成本优化策略。 ... [详细]
  • 本文详细介绍了优化DB2数据库性能的多种方法,涵盖统计信息更新、缓冲池调整、日志缓冲区配置、应用程序堆大小设置、排序堆参数调整、代理程序管理、锁机制优化、活动应用程序限制、页清除程序配置、I/O服务器数量设定以及编入组提交数调整等方面。通过这些技术手段,可以显著提升数据库的运行效率和响应速度。 ... [详细]
  • ElasticSearch 集群监控与优化
    本文详细介绍了如何有效地监控 ElasticSearch 集群,涵盖了关键性能指标、集群健康状况、统计信息以及内存和垃圾回收的监控方法。 ... [详细]
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社区 版权所有