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



推荐阅读
  • Java在运行已编译完成的类时,是通过java虚拟机来装载和执行的,java虚拟机通过操作系统命令JAVA_HOMEbinjava–option来启 ... [详细]
  • 计算机存储系统的层次结构及其优势
    本文介绍了计算机存储系统的层次结构,包括高速缓存、主存储器和辅助存储器三个层次。通过分层存储数据可以提高程序的执行效率。计算机存储系统的层次结构将各种不同存储容量、存取速度和价格的存储器有机组合成整体,形成可寻址存储空间比主存储器空间大得多的存储整体。由于辅助存储器容量大、价格低,使得整体存储系统的平均价格降低。同时,高速缓存的存取速度可以和CPU的工作速度相匹配,进一步提高程序执行效率。 ... [详细]
  • 本文介绍了解决Netty拆包粘包问题的一种方法——使用特殊结束符。在通讯过程中,客户端和服务器协商定义一个特殊的分隔符号,只要没有发送分隔符号,就代表一条数据没有结束。文章还提供了服务端的示例代码。 ... [详细]
  • 本文介绍了在rhel5.5操作系统下搭建网关+LAMP+postfix+dhcp的步骤和配置方法。通过配置dhcp自动分配ip、实现外网访问公司网站、内网收发邮件、内网上网以及SNAT转换等功能。详细介绍了安装dhcp和配置相关文件的步骤,并提供了相关的命令和配置示例。 ... [详细]
  • 阿,里,云,物,联网,net,core,客户端,czgl,aliiotclient, ... [详细]
  • 图解redis的持久化存储机制RDB和AOF的原理和优缺点
    本文通过图解的方式介绍了redis的持久化存储机制RDB和AOF的原理和优缺点。RDB是将redis内存中的数据保存为快照文件,恢复速度较快但不支持拉链式快照。AOF是将操作日志保存到磁盘,实时存储数据但恢复速度较慢。文章详细分析了两种机制的优缺点,帮助读者更好地理解redis的持久化存储策略。 ... [详细]
  • CentOS 7部署KVM虚拟化环境之一架构介绍
    本文介绍了CentOS 7部署KVM虚拟化环境的架构,详细解释了虚拟化技术的概念和原理,包括全虚拟化和半虚拟化。同时介绍了虚拟机的概念和虚拟化软件的作用。 ... [详细]
  • 本文讨论了在VMWARE5.1的虚拟服务器Windows Server 2008R2上安装oracle 10g客户端时出现的问题,并提供了解决方法。错误日志显示了异常访问违例,通过分析日志中的问题帧,找到了解决问题的线索。文章详细介绍了解决方法,帮助读者顺利安装oracle 10g客户端。 ... [详细]
  • Skywalking系列博客1安装单机版 Skywalking的快速安装方法
    本文介绍了如何快速安装单机版的Skywalking,包括下载、环境需求和端口检查等步骤。同时提供了百度盘下载地址和查询端口是否被占用的命令。 ... [详细]
  • 本文详细介绍了Linux中进程控制块PCBtask_struct结构体的结构和作用,包括进程状态、进程号、待处理信号、进程地址空间、调度标志、锁深度、基本时间片、调度策略以及内存管理信息等方面的内容。阅读本文可以更加深入地了解Linux进程管理的原理和机制。 ... [详细]
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • 本文讨论了在openwrt-17.01版本中,mt7628设备上初始化启动时eth0的mac地址总是随机生成的问题。每次随机生成的eth0的mac地址都会写到/sys/class/net/eth0/address目录下,而openwrt-17.01原版的SDK会根据随机生成的eth0的mac地址再生成eth0.1、eth0.2等,生成后的mac地址会保存在/etc/config/network下。 ... [详细]
  • 本文详细介绍了如何使用MySQL来显示SQL语句的执行时间,并通过MySQL Query Profiler获取CPU和内存使用量以及系统锁和表锁的时间。同时介绍了效能分析的三种方法:瓶颈分析、工作负载分析和基于比率的分析。 ... [详细]
  • 服务器上的操作系统有哪些,如何选择适合的操作系统?
    本文介绍了服务器上常见的操作系统,包括系统盘镜像、数据盘镜像和整机镜像的数量。同时,还介绍了共享镜像的限制和使用方法。此外,还提供了关于华为云服务的帮助中心,其中包括产品简介、价格说明、购买指南、用户指南、API参考、最佳实践、常见问题和视频帮助等技术文档。对于裸金属服务器的远程登录,本文介绍了使用密钥对登录的方法,并提供了部分操作系统配置示例。最后,还提到了SUSE云耀云服务器的特点和快速搭建方法。 ... [详细]
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社区 版权所有