Linux安装MySQL-server-5.6.22日志

本文记录了Mysql5.6.22版本在Linux系统的安装过程及随机生成的root用户密码位置。安装过程中,系统会在指定路径下生成随机密码,并提示用户首次登录必须更改密码。

最近在学习Mysql安装,看了好多网上的资料,说了好多第一次用root登陆的方式,都没有成功。

仔细查看了一下安装日志,其实人家是给创建了一个随机密码,并且有提示如何修改密码,完全没那么麻烦。


[root@localhost src]# rpm -ivh MySQL-server-5.6.22-1.rhel5.i386.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]
2015-01-29 09:51:25 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-01-29 09:51:25 28245 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-01-29 09:51:25 28245 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-29 09:51:25 28245 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2015-01-29 09:51:25 28245 [Note] InnoDB: Memory barrier is not used
2015-01-29 09:51:25 28245 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-29 09:51:25 28245 [Note] InnoDB: Using Linux native AIO
2015-01-29 09:51:25 28245 [Note] InnoDB: Not using CPU crc32 instructions
2015-01-29 09:51:25 28245 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-01-29 09:51:25 28245 [Note] InnoDB: Completed initialization of buffer pool
2015-01-29 09:51:25 28245 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2015-01-29 09:51:25 28245 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2015-01-29 09:51:25 28245 [Note] InnoDB: Database physically writes the file full: wait...
2015-01-29 09:51:25 28245 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2015-01-29 09:51:25 28245 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2015-01-29 09:51:26 28245 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2015-01-29 09:51:26 28245 [Warning] InnoDB: New log files created, LSN=45781
2015-01-29 09:51:26 28245 [Note] InnoDB: Doublewrite buffer not found: creating new
2015-01-29 09:51:26 28245 [Note] InnoDB: Doublewrite buffer created
2015-01-29 09:51:26 28245 [Note] InnoDB: 128 rollback segment(s) are active.
2015-01-29 09:51:26 28245 [Warning] InnoDB: Creating foreign key constraint system tables.
2015-01-29 09:51:26 28245 [Note] InnoDB: Foreign key constraint system tables created
2015-01-29 09:51:26 28245 [Note] InnoDB: Creating tablespace and datafile system tables.
2015-01-29 09:51:26 28245 [Note] InnoDB: Tablespace and datafile system tables created.
2015-01-29 09:51:26 28245 [Note] InnoDB: Waiting for purge to start
2015-01-29 09:51:26 28245 [Note] InnoDB: 5.6.22 started; log sequence number 0
A random root password has been set. You will find it in '/root/.mysql_secret'.
2015-01-29 09:51:26 28245 [Note] Binlog end
2015-01-29 09:51:26 28245 [Note] InnoDB: FTS optimize thread exiting.
2015-01-29 09:51:26 28245 [Note] InnoDB: Starting shutdown...
2015-01-29 09:51:28 28245 [Note] InnoDB: Shutdown completed; log sequence number 1625977


2015-01-29 09:51:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-01-29 09:51:28 28267 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-01-29 09:51:28 28267 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-29 09:51:28 28267 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2015-01-29 09:51:28 28267 [Note] InnoDB: Memory barrier is not used
2015-01-29 09:51:28 28267 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-29 09:51:28 28267 [Note] InnoDB: Using Linux native AIO
2015-01-29 09:51:28 28267 [Note] InnoDB: Not using CPU crc32 instructions
2015-01-29 09:51:28 28267 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-01-29 09:51:28 28267 [Note] InnoDB: Completed initialization of buffer pool
2015-01-29 09:51:28 28267 [Note] InnoDB: Highest supported file format is Barracuda.
2015-01-29 09:51:28 28267 [Note] InnoDB: 128 rollback segment(s) are active.
2015-01-29 09:51:28 28267 [Note] InnoDB: 5.6.22 started; log sequence number 1625977
2015-01-29 09:51:28 28267 [Note] Binlog end
2015-01-29 09:51:28 28267 [Note] InnoDB: FTS optimize thread exiting.
2015-01-29 09:51:28 28267 [Note] InnoDB: Starting shutdown...
2015-01-29 09:51:30 28267 [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

[root@localhost ~]# head -100 /var/log/mysqld.log 250922 00:47:45 mysqld_safe Logging to '/var/log/mysqld.log'. 250922 00:47:45 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2025-09-22 00:47:45 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2025-09-22 00:47:45 0 [Note] /usr/sbin/mysqld (mysqld 5.6.51) starting as process 41577 ... 2025-09-22 00:47:45 41577 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000) 2025-09-22 00:47:45 41577 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000) 2025-09-22 00:47:45 41577 [Note] Plugin 'FEDERATED' is disabled. 2025-09-22 00:47:45 41577 [Note] InnoDB: Using atomics to ref count buffer pool pages 2025-09-22 00:47:45 41577 [Note] InnoDB: The InnoDB memory heap is disabled 2025-09-22 00:47:45 41577 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2025-09-22 00:47:45 41577 [Note] InnoDB: Memory barrier is not used 2025-09-22 00:47:45 41577 [Note] InnoDB: Compressed tables use zlib 1.2.11 2025-09-22 00:47:45 41577 [Note] InnoDB: Using Linux native AIO 2025-09-22 00:47:45 41577 [Note] InnoDB: Using CPU crc32 instructions 2025-09-22 00:47:45 41577 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2025-09-22 00:47:45 41577 [Note] InnoDB: Completed initialization of buffer pool 2025-09-22 00:47:45 41577 [Note] InnoDB: Highest supported file format is Barracuda. 2025-09-22 00:47:45 41577 [Note] InnoDB: 128 rollback segment(s) are active. 2025-09-22 00:47:45 41577 [Note] InnoDB: Waiting for purge to start 2025-09-22 00:47:45 41577 [Note] InnoDB: 5.6.51 started; log sequence number 1625987 2025-09-22 00:47:45 41577 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 482452ca-976f-11f0-a3ab-000c2932bbd7. 2025-09-22 00:47:45 41577 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work. 2025-09-22 00:47:45 41577 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work. 2025-09-22 00:47:45 41577 [Note] Server hostname (bind-address): '*'; port: 3306 2025-09-22 00:47:45 41577 [Note] IPv6 is available. 2025-09-22 00:47:45 41577 [Note] - '::' resolves to '::'; 2025-09-22 00:47:45 41577 [Note] Server socket created on IP: '::'. 2025-09-22 00:47:45 41577 [Note] Event Scheduler: Loaded 0 events 2025-09-22 00:47:45 41577 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.6.51' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 2025-09-22 02:09:26 41577 [Note] /usr/sbin/mysqld: Normal shutdown 2025-09-22 02:09:26 41577 [Note] Giving 0 client threads a chance to die gracefully 2025-09-22 02:09:26 41577 [Note] Event Scheduler: Purging the queue. 0 events 2025-09-22 02:09:26 41577 [Note] Shutting down slave threads 2025-09-22 02:09:26 41577 [Note] Forcefully disconnecting 0 remaining clients 2025-09-22 02:09:26 41577 [Note] Binlog end 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'partition' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_INDEXES' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_SYS_TABLES' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_CONFIG' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_DELETED' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_METRICS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMPMEM' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMP_RESET' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_CMP' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_LOCK_WAITS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_LOCKS' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'INNODB_TRX' 2025-09-22 02:09:26 41577 [Note] Shutting down plugin 'InnoDB' 2025-09-22 02:09:26 41577 [Note] InnoDB: FTS optimize thread exiting. 2025-09-22 02:09:26 41577 [Note] InnoDB: Starting shutdown... 2025-09-22 02:09:27 41577 [Note] InnoDB: Shutdown completed; log sequence number 1625997 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'BLACKHOLE' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'ARCHIVE' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'MRG_MYISAM' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'MyISAM' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'MEMORY' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'CSV' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'sha256_password' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'mysql_old_password' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'mysql_native_password' 2025-09-22 02:09:27 41577 [Note] Shutting down plugin 'binlog' 2025-09-22 02:09:27 41577 [Note] /usr/sbin/mysqld: Shutdown complete 250922 02:09:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 250922 02:09:28 mysqld_safe Logging to '/var/log/mysqld.log'. 250922 02:09:28 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2025-09-22 02:09:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2025-09-22 02:09:28 0 [Note] /usr/sbin/mysqld (mysqld 5.6.51) starting as process 41965 ... 2025-09-22 02:09:28 41965 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000) 2025-09-22 02:09:28 41965 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000) 2025-09-22 02:09:28 41965 [Note] Plugin 'FEDERATED' is disabled. 2025-09-22 02:09:28 41965 [Note] InnoDB: Using atomics to ref count buffer pool pages 2025-09-22 02:09:28 41965 [Note] InnoDB: The InnoDB memory heap is disabled 2025-09-22 02:09:28 41965 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2025-09-22 02:09:28 41965 [Note] InnoDB: Memory barrier is not used 2025-09-22 02:09:28 41965 [Note] InnoDB: Compressed tables use zlib 1.2.11
09-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值