电玩城打鱼捕鱼-专业24小时上下分

6版本的安装配置过程

七月 4th, 2019  |  电玩城上下分数据库

从今年3月份开始mysql官网开始发布相关的5.6系列的各个版本,对于mysql5.6系列的版本对一起的版本进行了全局性的细节性加强;个人感觉,以下是在虚拟机中配置的mysql5.6.10源码安装的过程分享记录下:

mysql5.6版本的安装配置过程

[[email protected]
~]# groupadd mysql
[[email protected]
~]# useradd -r -g mysql mysql
[[email protected]
~]# ls
anaconda-ks.cfg install.log install.log.syslog mysql-5.6.10.tar.gz
[[email protected]
~]# cd /usr/local/
[[email protected]
local]# ls
bin etc games include lib libexec sbin share src
[[email protected]
local]# cp /root/mysql-5.6.10.tar.gz /usr/local/
[[email protected]
local]# ll
total 34468
drwxr-xr-x 2 root root 4096 Jan 27 2010 bin
drwxr-xr-x 2 root root 4096 Jan 27 2010 etc
drwxr-xr-x 2 root root 4096 Jan 27 2010 games
drwxr-xr-x 2 root root 4096 Jan 27 2010 include
drwxr-xr-x 2 root root 4096 Jan 27 2010 lib
drwxr-xr-x 2 root root 4096 Jan 27 2010 libexec
-rw-r–r– 1 root root 35174149 Apr 17 00:55 mysql-5.6.10.tar.gz
drwxr-xr-x 2 root root 4096 Jan 27 2010 sbin
drwxr-xr-x 4 root root 4096 Apr 17 00:32 share
drwxr-xr-x 2 root root 4096 Jan 27 2010 src
[[email protected]
local]# tar -zxvf mysql-5.6.10.tar.gz
[[email protected]
local]# cd mysql-5.6.10
cmake .
make && make install

 

[[email protected]
mysql-5.6.10]# chown -R mysql.mysql /usr/local/mysql
[[email protected]
mysql-5.6.10]#
[[email protected]
mysql-5.6.10]# cd /usr/local/mysql/scripts/
[[email protected]
scripts]# ./mysql_install_db –user=mysql –basedir=/usr/local/mys
ql –datadir=/usr/local/mysql/data
Installing MySQL system tables…2013-04-17 01:26:58 0 [Warning]
TIMESTAMP with implicit DEFAULT value is deprecated. Please use
–explicit_defaults_for_timestamp server option (see documentation
for more details).
2013-04-17 01:26:58 18715 [Note] InnoDB: The InnoDB memory heap is
disabled
2013-04-17 01:26:58 18715 [Note] InnoDB: Mutexes and rw_locks use
InnoDB’s own implementation
2013-04-17 01:26:58 18715 [Note] InnoDB: Compressed tables use zlib
1.2.3
2013-04-17 01:26:58 18715 [Note] InnoDB: CPU does not support crc32
instructions
2013-04-17 01:26:58 18715 [Note] InnoDB: Initializing buffer pool,
size = 128.0M
2013-04-17 01:26:58 18715 [Note] InnoDB: Completed initialization of
buffer pool
2013-04-17 01:26:58 18715 [Note] InnoDB: The first specified data file
./ibdata1 did not exist: a new database to be created!
2013-04-17 01:26:59 18715 [Note] InnoDB: Setting file ./ibdata1 size
to 12 MB
2013-04-17 01:26:59 18715 [Note] InnoDB: Database physically writes
the file full: wait…
2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file
./ib_logfile101 size to 48 MB
2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file
./ib_logfile1 size to 48 MB
2013-04-17 01:26:59 18715 [Note] InnoDB: Renaming log file
./ib_logfile101 to ./ib_logfile0
2013-04-17 01:26:59 18715 [Warning] InnoDB: New log files created,
LSN=45781
2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer not found:
creating new
2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer created
2013-04-17 01:26:59 18715 [Note] InnoDB: 128 rollback segment(s) are
active.
2013-04-17 01:26:59 18715 [Warning] InnoDB: Creating foreign key
constraint system tables.
2013-04-17 01:26:59 18715 [Note] InnoDB: Foreign key constraint system
tables created
2013-04-17 01:26:59 18715 [Note] InnoDB: Creating tablespace and
datafile system tables.
2013-04-17 01:26:59 18715 [Note] InnoDB: Tablespace and datafile
system tables created.
2013-04-17 01:26:59 18715 [Note] InnoDB: Waiting for purge to start
2013-04-17 01:26:59 18715 [Note] InnoDB: 1.2.10 started; log sequence
number 0
2013-04-17 01:26:59 18715 [Note] Binlog end
2013-04-17 01:26:59 18715 [Note] InnoDB: FTS optimize thread
exiting.
2013-04-17 01:26:59 18715 [Note] InnoDB: Starting shutdown…
2013-04-17 01:27:00 18715 [Note] InnoDB: Shutdown completed; log
sequence number 1625977
OK

从今年3月份开始mysql官网开始发布相关的5.6系列的各个版本,对于mysql5.6系列的版本对一起的版本进行了全局性的细节性加强;个人感觉,以下是在虚拟机中配置的mysql5.6.10源码安装的过程分享记录下:

Filling help tables…2013-04-17 01:27:00 0 [Warning] TIMESTAMP with
implicit DEFAULT value is deprecated. Please use
–explicit_defaults_for_timestamp server option (see documentation
for more details).
2013-04-17 01:27:00 18738 [Note] InnoDB: The InnoDB memory heap is
disabled
2013-04-17 01:27:00 18738 [Note] InnoDB: Mutexes and rw_locks use
InnoDB’s own implementation
2013-04-17 01:27:00 18738 [Note] InnoDB: Compressed tables use zlib
1.2.3
2013-04-17 01:27:00 18738 [Note] InnoDB: CPU does not support crc32
instructions
2013-04-17 01:27:00 18738 [Note] InnoDB: Initializing buffer pool,
size = 128.0M
2013-04-17 01:27:00 18738 [Note] InnoDB: Completed initialization of
buffer pool
2013-04-17 01:27:00 18738 [Note] InnoDB: Highest supported file format
is Barracuda.
2013-04-17 01:27:00 18738 [Note] InnoDB: 128 rollback segment(s) are
active.
2013-04-17 01:27:00 18738 [Note] InnoDB: Waiting for purge to start
2013-04-17 01:27:01 18738 [Note] InnoDB: 1.2.10 started; log sequence
number 1625977
2013-04-17 01:27:01 18738 [Note] Binlog end
2013-04-17 01:27:01 18738 [Note] InnoDB: FTS optimize thread
exiting.
2013-04-17 01:27:01 18738 [Note] InnoDB: Starting shutdown…
2013-04-17 01:27:02 18738 [Note] InnoDB: Shutdown completed; log
sequence number 1625987
OK

[html] 

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

[[email protected]
~]# groupadd mysql  

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

[[email protected]
~]# useradd -r -g mysql mysql  

/usr/local/mysql/bin/mysqladmin -u root password ‘new-password’
/usr/local/mysql/bin/mysqladmin -u root -h mysql5.6 password
‘new-password’

[[email protected]
~]# ls  

Alternatively you can run:

anaconda-ks.cfg  install.log  install.log.syslog  mysql-5.6.10.tar.gz  

/usr/local/mysql/bin/mysql_secure_installation

[[email protected]
~]# cd /usr/local/  

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

[[email protected]
local]# ls  

See the manual for more instructions.

bin  etc  games  include  lib  libexec  sbin  share  src  

You can start the MySQL daemon with:

[[email protected]
local]# cp /root/mysql-5.6.10.tar.gz  /usr/local/  

cd . ; /usr/local/mysql/bin/mysqld_safe &

[[email protected]
local]# ll  

You can test the MySQL daemon with mysql-test-run.pl

total 34468  

cd mysql-test ; perl mysql-test-run.pl

drwxr-xr-x 2 root root     4096 Jan 27  2010 bin  

Please report any problems with the ./bin/mysqlbug script!

drwxr-xr-x 2 root root     4096 Jan 27  2010 etc  

The latest information about MySQL is available on the web at

drwxr-xr-x 2 root root     4096 Jan 27  2010 games  

drwxr-xr-x 2 root root     4096 Jan 27  2010 include  

Support MySQL by buying support/licenses at

drwxr-xr-x 2 root root     4096 Jan 27  2010 lib  

New default config file was created as /usr/local/mysql/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings

drwxr-xr-x 2 root root     4096 Jan 27  2010 libexec  

WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
–defaults-file argument to mysqld_safe when starting the server

-rw-r–r– 1 root root 35174149 Apr 17 00:55 mysql-5.6.10.tar.gz  

[[email protected]
scripts]#
[[email protected]
scripts]# cd /usr/local/mysql/support-files/
[[email protected]
support-files]# cp mysql.server /etc/rc.d/init.d/mysql
[[email protected]
support-files]# cp my-default.cnf /etc/my.cnf
cp: overwrite `/etc/my.cnf’? y
[[email protected]
support-files]#
[[email protected]
support-files]# chkconfig -add mysql
-add: unknown option
[[email protected]
support-files]# chkconfig –add mysql
[[email protected]
support-files]# chkconfig mysql on
[[email protected]
support-files]# service mysql start
Starting MySQL. [ OK ]
[[email protected]
support-files]#
[[email protected]
data]# mysql -u mysql -p -S /tmp/mysql.sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.10 Source distribution

drwxr-xr-x 2 root root     4096 Jan 27  2010 sbin  

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

drwxr-xr-x 4 root root     4096 Apr 17 00:32 share  

mysql>

drwxr-xr-x 2 root root     4096 Jan 27  2010 src  

mysql> status;

mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using
readline 5.1

Connection id: 1
Current database:
Current user:
[email protected]
SSL: Not in use
Current pager: stdout
Using outfile: ”
Using delimiter: ;
Server version: 5.6.10 Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /tmp/mysql.sock
Uptime: 3 min 38 sec

Threads: 1 Questions: 5 Slow queries: 0 Opens: 67 Flush tables: 1 Open

[[email protected]
local]#  tar -zxvf mysql-5.6.10.tar.gz  

tables: 60 Queries per second avg: 0.022

mysql>

[[email protected]
local]# cd mysql-5.6.10   

cmake .   

make && make install   

  

[[email protected]
mysql-5.6.10]# chown -R mysql.mysql /usr/local/mysql  

[[email protected]
mysql-5.6.10]#  

[[email protected]
mysql-5.6.10]# cd /usr/local/mysql/scripts/  

[[email protected]
scripts]# ./mysql_install_db  –user=mysql –basedir=/usr/local/mys
 

ql –datadir=/usr/local/mysql/data  

Installing MySQL system tables…2013-04-17 01:26:58 0 [Warning]
TIMESTAMP with implicit DEFAULT value is deprecated. Please use
–explicit_defaults_for_timestamp server option (see documentation
for more details).  

2013-04-17 01:26:58 18715 [Note] InnoDB: The InnoDB memory heap is
disabled  

2013-04-17 01:26:58 18715 [Note] InnoDB: Mutexes and rw_locks use
InnoDB’s own implementation  

2013-04-17 01:26:58 18715 [Note] InnoDB: Compressed tables use zlib
1.2.3  

2013-04-17 01:26:58 18715 [Note] InnoDB: CPU does not support crc32
instructions  

2013-04-17 01:26:58 18715 [Note] InnoDB: Initializing buffer pool,
size = 128.0M  

2013-04-17 01:26:58 18715 [Note] InnoDB: Completed initialization of
buffer pool  

2013-04-17 01:26:58 18715 [Note] InnoDB: The first specified data file
./ibdata1 did not exist: a new database to be created!  

2013-04-17 01:26:59 18715 [Note] InnoDB: Setting file ./ibdata1 size
to 12 MB  

2013-04-17 01:26:59 18715 [Note] InnoDB: Database physically writes
the file full: wait…  

2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file
./ib_logfile101 size to 48 MB  

2013-04-17 01:26:59 18715 [Note] InnoDB: Setting log file
./ib_logfile1 size to 48 MB  

2013-04-17 01:26:59 18715 [Note] InnoDB: Renaming log file
./ib_logfile101 to ./ib_logfile0  

2013-04-17 01:26:59 18715 [Warning] InnoDB: New log files created,
LSN=45781  

2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer not found:
creating new  

2013-04-17 01:26:59 18715 [Note] InnoDB: Doublewrite buffer created  

2013-04-17 01:26:59 18715 [Note] InnoDB: 128 rollback segment(s) are
active.  

2013-04-17 01:26:59 18715 [Warning] InnoDB: Creating foreign key
constraint system tables.  

2013-04-17 01:26:59 18715 [Note] InnoDB: Foreign key constraint system
tables created  

2013-04-17 01:26:59 18715 [Note] InnoDB: Creating tablespace and
datafile system tables.  

2013-04-17 01:26:59 18715 [Note] InnoDB: Tablespace and datafile
system tables created.  

2013-04-17 01:26:59 18715 [Note] InnoDB: Waiting for purge to start  

2013-04-17 01:26:59 18715 [Note] InnoDB: 1.2.10 started; log sequence
number 0  

2013-04-17 01:26:59 18715 [Note] Binlog end  

2013-04-17 01:26:59 18715 [Note] InnoDB: FTS optimize thread exiting.
 

2013-04-17 01:26:59 18715 [Note] InnoDB: Starting shutdown…  

2013-04-17 01:27:00 18715 [Note] InnoDB: Shutdown completed; log
sequence number 1625977  

OK  

  

Filling help tables…2013-04-17 01:27:00 0 [Warning] TIMESTAMP with
implicit DEFAULT value is deprecated. Please use
–explicit_defaults_for_timestamp server option (see documentation
for more details).  

2013-04-17 01:27:00 18738 [Note] InnoDB: The InnoDB memory heap is
disabled  

2013-04-17 01:27:00 18738 [Note] InnoDB: Mutexes and rw_locks use
InnoDB’s own implementation  

2013-04-17 01:27:00 18738 [Note] InnoDB: Compressed tables use zlib
1.2.3  

2013-04-17 01:27:00 18738 [Note] InnoDB: CPU does not support crc32
instructions  

2013-04-17 01:27:00 18738 [Note] InnoDB: Initializing buffer pool,
size = 128.0M  

2013-04-17 01:27:00 18738 [Note] InnoDB: Completed initialization of
buffer pool  

2013-04-17 01:27:00 18738 [Note] InnoDB: Highest supported file format
is Barracuda.  

2013-04-17 01:27:00 18738 [Note] InnoDB: 128 rollback segment(s) are
active.  

2013-04-17 01:27:00 18738 [Note] InnoDB: Waiting for purge to start  

2013-04-17 01:27:01 18738 [Note] InnoDB: 1.2.10 started; log sequence
number 1625977  

2013-04-17 01:27:01 18738 [Note] Binlog end  

2013-04-17 01:27:01 18738 [Note] InnoDB: FTS optimize thread exiting.
 

2013-04-17 01:27:01 18738 [Note] InnoDB: Starting shutdown…  

2013-04-17 01:27:02 18738 [Note] InnoDB: Shutdown completed; log
sequence number 1625987  

OK  

  

To start mysqld at boot time you have to copy  

support-files/mysql.server to the right place for your system  

  

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !  

To do so, start the server, then issue the following commands:  

  

标签:

Your Comments

近期评论

    功能


    网站地图xml地图