一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數據庫技術|

服務器之家 - 數據庫 - Mysql - linux mysql5.6版本的安裝配置過程

linux mysql5.6版本的安裝配置過程

2020-01-03 15:50MYSQL教程網 Mysql

mysql官網開始發布相關的5.6系列的各個版本,對于mysql5.6系列的版本對一起的版本進行了全局性的細節性加強

從今年3月份開始mysql官網開始發布相關的5.6系列的各個版本,對于mysql5.6系列的版本對一起的版本進行了全局性的細節性加強;個人感覺,以下是在虛擬機中配置的mysql5.6.10源碼安裝的過程分享記錄下:

[root@mysql5 ~]# groupadd mysql

[root@mysql5 ~]# useradd -r -g mysql mysql

[root@mysql5 ~]# ls

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

[root@mysql5 ~]# cd /usr/local/

[root@mysql5 local]# ls

bin etc games include lib libexec sbin share src

[root@mysql5 local]# cp /root/mysql-5.6.10.tar.gz /usr/local/

[root@mysql5 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

[root@mysql5 local]# tar -zxvf mysql-5.6.10.tar.gz

[root@mysql5 local]# cd mysql-5.6.10

cmake .

make && make install

[root@mysql5 mysql-5.6.10]# chown -R mysql.mysql /usr/local/mysql

[root@mysql5 mysql-5.6.10]#

[root@mysql5 mysql-5.6.10]# cd /usr/local/mysql/scripts/

[root@mysql5 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:

/usr/local/mysql/bin/mysqladmin -u root password 'new-password'

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

Alternatively you can run:

/usr/local/mysql/bin/mysql_secure_installation

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.

See the manual for more instructions.

You can start the MySQL daemon with:

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

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

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

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

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/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

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

[root@mysql5 scripts]#

[root@mysql5 scripts]# cd /usr/local/mysql/support-files/

[root@mysql5 support-files]# cp mysql.server /etc/rc.d/init.d/mysql

[root@mysql5 support-files]# cp my-default.cnf /etc/my.cnf

cp: overwrite `/etc/my.cnf'? y

[root@mysql5 support-files]#

[root@mysql5 support-files]# chkconfig -add mysql

-add: unknown option

[root@mysql5 support-files]# chkconfig --add mysql

[root@mysql5 support-files]# chkconfig mysql on

[root@mysql5 support-files]# service mysql start

Starting MySQL. [ OK ]

[root@mysql5 support-files]#

[root@mysql5 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

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

mysql>

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: mysql@localhost

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 tables: 60 Queries per second avg: 0.022

--------------

mysql>

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 亚洲美女aⅴ久久久91 | 调教催眠改造np总攻 | 婚前试爱全集免费观看 | 国产麻豆精品原创 | 日本免费一区二区三区四区五六区 | 香蕉免费一区二区三区 | 四虎地址8848aa4hc44四虎 四虎成人永久地址 | 黑帮少爷爱上我第8集最新 荷兰精品女人性hd 和日本免费不卡在线v | 操熟美女又肥又嫩的骚屁股 | 欧美日韩国产亚洲人成 | 免费视频观看 | 国产极品久久 | 91精品国产综合久久香蕉 | 国产精品成人一区二区 | 波多野结衣一区免费作品 | 粗又长好猛好爽视频 | 午夜神器18以下不能进免费 | 国产乱码在线精品可播放 | 亚洲精品在线免费看 | 日本成熟bbxxxxxxxx | a黄色 | 精久久| 欧美亚洲国产另类在线观看 | 国产亚洲精品一区二区在线观看 | 婚前试爱免费看 | 亚洲国产99 | 无人在线高清免费看 | 男人的影院 | 第四色男人天堂 | 欧美日韩亚洲成人 | 闺蜜的样子小说安沁在线阅读 | 国产色图片 | 日本啊v在线观看 | 国产经典一区二区三区蜜芽 | 色婷婷六月丁香在线观看 | 国产成人a v在线影院 | 午夜无码片在线观看影院 | 日本96在线精品视频免费观看 | 欧美理论片手机在线观看片免费 | 2022日韩理论片在线观看 | 国产一精品一av一免费爽爽 |