美河学习在线 www.eimhe.com
./mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data/ --user=mysql --
defaults-file=/usr/local/mysql/my.cnf --tmpdir=/tmp
[root@csdb24 scripts]# pwd
/usr/local/mysql/scripts
[root@csdb24 scripts]# ll
总用量 36
-rwxr-xr-x 1 root root 34544 3 月 30 14:08 mysql_install_db
[root@csdb24 scripts]# ./mysql_install_db --basedir=/usr/local/mysql --
datadir=/usr/local/mysql/data/ --user=mysql --defaults-file=/usr/local/mysql/my.cnf
Installing MySQL system tables...2015-03-30 14:30:02 0 [Warning] TIMESTAMP with implicit
DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see
documentation for more details).
2015-03-30 14:30:02 16780 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-03-30 14:30:02 16780 [Note] InnoDB: The InnoDB memory heap is disabled
2015-03-30 14:30:02 16780 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-03-30 14:30:02 16780 [Note] InnoDB: Memory barrier is not used
2015-03-30 14:30:02 16780 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-03-30 14:30:02 16780 [Note] InnoDB: Using Linux native AIO
2015-03-30 14:30:02 16780 [Note] InnoDB: Using CPU crc32 instructions
2015-03-30 14:30:02 16780 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-03-30 14:30:02 16780 [Note] InnoDB: Completed initialization of buffer pool
2015-03-30 14:30:02 16780 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a
new database to be created!
2015-03-30 14:30:02 16780 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2015-03-30 14:30:02 16780 [Note] InnoDB: Database physically writes the file full: wait...
2015-03-30 14:30:02 16780 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2015-03-30 14:30:03 16780 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2015-03-30 14:30:03 16780 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2015-03-30 14:30:03 16780 [Warning] InnoDB: New log files created, LSN=45781
2015-03-30 14:30:03 16780 [Note] InnoDB: Doublewrite buffer not found: creating new
2015-03-30 14:30:03 16780 [Note] InnoDB: Doublewrite buffer created
2015-03-30 14:30:03 16780 [Note] InnoDB: 128 rollback segment(s) are active.
2015-03-30 14:30:03 16780 [Warning] InnoDB: Creating foreign key constraint system tables.
2015-03-30 14:30:03 16780 [Note] InnoDB: Foreign key constraint system tables created
2015-03-30 14:30:03 16780 [Note] InnoDB: Creating tablespace and datafile system tables.
2015-03-30 14:30:03 16780 [Note] InnoDB: Tablespace and datafile system tables created.
2015-03-30 14:30:03 16780 [Note] InnoDB: Waiting for purge to start
2015-03-30 14:30:03 16780 [Note] InnoDB: 5.6.20 started; log sequence number 0
2015-03-30 14:30:03 16780 [Note] Binlog end
2015-03-30 14:30:03 16780 [Note] InnoDB: FTS optimize thread exiting.
2015-03-30 14:30:03 16780 [Note] InnoDB: Starting shutdown...
2015-03-30 14:30:05 16780 [Note] InnoDB: Shutdown completed; log sequence number 1625977