热门标签 | 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如此时最新 ... [详细]
  • 选择适合生产环境的Docker存储驱动
    本文旨在探讨如何在生产环境中选择合适的Docker存储驱动,并详细介绍不同Linux发行版下的配置方法。通过参考官方文档和兼容性矩阵,提供实用的操作指南。 ... [详细]
  • CentOS系统安装与配置常见问题及解决方案
    本文详细介绍了在CentOS系统安装过程中遇到的常见问题及其解决方案,包括Vi编辑器的操作、图形界面的安装、网络连接故障排除等。通过本文,读者可以更好地理解和解决这些常见问题。 ... [详细]
  • 本文详细介绍了如何通过RPM包在Linux系统(如CentOS)上安装MySQL 5.6。涵盖了检查现有安装、下载和安装RPM包、配置MySQL以及设置远程访问和开机自启动等步骤。 ... [详细]
  • CentOS 6.5 上安装 MySQL 5.7.23 的详细步骤
    本文详细介绍如何在 CentOS 6.5 系统上成功安装 MySQL 5.7.23,包括卸载旧版本、下载安装包、配置文件修改及启动服务等关键步骤。 ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 本文介绍了一款用于自动化部署 Linux 服务的 Bash 脚本。该脚本不仅涵盖了基本的文件复制和目录创建,还处理了系统服务的配置和启动,确保在多种 Linux 发行版上都能顺利运行。 ... [详细]
  • UNP 第9章:主机名与地址转换
    本章探讨了用于在主机名和数值地址之间进行转换的函数,如gethostbyname和gethostbyaddr。此外,还介绍了getservbyname和getservbyport函数,用于在服务器名和端口号之间进行转换。 ... [详细]
  • 作为一名新手,您可能会在初次尝试使用Eclipse进行Struts开发时遇到一些挑战。本文将为您提供详细的指导和解决方案,帮助您克服常见的配置和操作难题。 ... [详细]
  • 本文详细介绍如何使用Samba软件配置CIFS文件共享服务,涵盖安装、配置、权限管理及多用户挂载等关键步骤。通过具体示例和命令行操作,帮助读者快速搭建并优化Samba服务器。 ... [详细]
  • MySQL 数据库迁移指南:从本地到远程及磁盘间迁移
    本文详细介绍了如何在不同场景下进行 MySQL 数据库的迁移,包括从一个硬盘迁移到另一个硬盘、从一台计算机迁移到另一台计算机,以及解决迁移过程中可能遇到的问题。 ... [详细]
  • 实体映射最强工具类:MapStruct真香 ... [详细]
  • 微软Exchange服务器遭遇2022年版“千年虫”漏洞
    微软Exchange服务器在新年伊始遭遇了一个类似于‘千年虫’的日期处理漏洞,导致邮件传输受阻。该问题主要影响配置了FIP-FS恶意软件引擎的Exchange 2016和2019版本。 ... [详细]
  • PostgreSQL 10 离线安装指南
    本文详细介绍了如何在无法联网的服务器上进行 PostgreSQL 10 的离线安装,并涵盖了从下载安装包到配置远程访问的完整步骤。 ... [详细]
  • Windows 7 64位系统下Redis的安装与PHP Redis扩展配置
    本文详细介绍了在Windows 7 64位操作系统中安装Redis以及配置PHP Redis扩展的方法,包括下载、安装和基本使用步骤。适合对Redis和PHP集成感兴趣的开发人员参考。 ... [详细]
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社区 版权所有