Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1034261
  • 博文数量: 276
  • 博客积分: 10077
  • 博客等级: 上将
  • 技术积分: 2513
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-24 20:31
文章分类

全部博文(276)

文章存档

2020年(1)

2015年(5)

2012年(2)

2011年(6)

2010年(7)

2009年(224)

2008年(31)

我的朋友

分类: Mysql/postgreSQL

2015-07-10 14:08:21

[root@timesten mysqlbin]# ll
-rwxrwxrwx 1 root root  323538292 May  6 00:18 mysql-advanced-5.6.25-linux-glibc2.5-x86_64.tar.gz

[root@timesten mysqlbin]# groupadd mysql
[root@timesten mysqlbin]# useradd -g mysql mysql

[root@timesten mysqlbin]# tar xvfz mysql-advanced-5.6.25-linux-glibc2.5-x86_64.tar.gz -C /opt

[root@timesten mysqlbin]# mv mysql-advanced-5.6.25-linux-glibc2.5-x86_64 mysql
[root@timesten opt]# chown mysql:mysql -R mysql


[root@timesten mysql]# scripts/mysql_install_db --user=mysql --user=mysql --basedir=/opt/mysql --datadir=/opt/mysql/data
Installing MySQL system tables...2015-07-10 13:48:39 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-07-10 13:48:39 0 [Note] /opt/mysql//bin/mysqld (mysqld 5.6.25-enterprise-commercial-advanced) starting as process 6289 ...
2015-07-10 13:48:39 6289 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-07-10 13:48:39 6289 [Note] InnoDB: The InnoDB memory heap is disabled
2015-07-10 13:48:39 6289 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-07-10 13:48:39 6289 [Note] InnoDB: Memory barrier is not used
2015-07-10 13:48:39 6289 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-07-10 13:48:39 6289 [Note] InnoDB: Using Linux native AIO
2015-07-10 13:48:39 6289 [Note] InnoDB: Using CPU crc32 instructions
2015-07-10 13:48:39 6289 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-07-10 13:48:39 6289 [Note] InnoDB: Completed initialization of buffer pool
2015-07-10 13:48:39 6289 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2015-07-10 13:48:39 6289 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2015-07-10 13:48:39 6289 [Note] InnoDB: Database physically writes the file full: wait...
2015-07-10 13:48:39 6289 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2015-07-10 13:48:40 6289 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2015-07-10 13:48:40 6289 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2015-07-10 13:48:40 6289 [Warning] InnoDB: New log files created, LSN=45781
2015-07-10 13:48:40 6289 [Note] InnoDB: Doublewrite buffer not found: creating new
2015-07-10 13:48:40 6289 [Note] InnoDB: Doublewrite buffer created
2015-07-10 13:48:40 6289 [Note] InnoDB: 128 rollback segment(s) are active.
2015-07-10 13:48:40 6289 [Warning] InnoDB: Creating foreign key constraint system tables.
2015-07-10 13:48:40 6289 [Note] InnoDB: Foreign key constraint system tables created
2015-07-10 13:48:40 6289 [Note] InnoDB: Creating tablespace and datafile system tables.
2015-07-10 13:48:40 6289 [Note] InnoDB: Tablespace and datafile system tables created.
2015-07-10 13:48:40 6289 [Note] InnoDB: Waiting for purge to start
2015-07-10 13:48:40 6289 [Note] InnoDB: 5.6.25 started; log sequence number 0
2015-07-10 13:48:40 6289 [Note] RSA private key file not found: /opt/mysql/data//private_key.pem. Some authentication plugins will not work.
2015-07-10 13:48:40 6289 [Note] RSA public key file not found: /opt/mysql/data//public_key.pem. Some authentication plugins will not work.
2015-07-10 13:48:40 6289 [Note] Binlog end
2015-07-10 13:48:40 6289 [Note] InnoDB: FTS optimize thread exiting.
2015-07-10 13:48:40 6289 [Note] InnoDB: Starting shutdown...
2015-07-10 13:48:42 6289 [Note] InnoDB: Shutdown completed; log sequence number 1625977
OK

Filling help tables...2015-07-10 13:48:42 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-07-10 13:48:42 0 [Note] /opt/mysql//bin/mysqld (mysqld 5.6.25-enterprise-commercial-advanced) starting as process 6311 ...
2015-07-10 13:48:42 6311 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-07-10 13:48:42 6311 [Note] InnoDB: The InnoDB memory heap is disabled
2015-07-10 13:48:42 6311 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-07-10 13:48:42 6311 [Note] InnoDB: Memory barrier is not used
2015-07-10 13:48:42 6311 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-07-10 13:48:42 6311 [Note] InnoDB: Using Linux native AIO
2015-07-10 13:48:42 6311 [Note] InnoDB: Using CPU crc32 instructions
2015-07-10 13:48:42 6311 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-07-10 13:48:42 6311 [Note] InnoDB: Completed initialization of buffer pool
2015-07-10 13:48:42 6311 [Note] InnoDB: Highest supported file format is Barracuda.
2015-07-10 13:48:42 6311 [Note] InnoDB: 128 rollback segment(s) are active.
2015-07-10 13:48:42 6311 [Note] InnoDB: Waiting for purge to start
2015-07-10 13:48:42 6311 [Note] InnoDB: 5.6.25 started; log sequence number 1625977
2015-07-10 13:48:42 6311 [Note] RSA private key file not found: /opt/mysql/data//private_key.pem. Some authentication plugins will not work.
2015-07-10 13:48:42 6311 [Note] RSA public key file not found: /opt/mysql/data//public_key.pem. Some authentication plugins will not work.
2015-07-10 13:48:42 6311 [Note] Binlog end
2015-07-10 13:48:42 6311 [Note] InnoDB: FTS optimize thread exiting.
2015-07-10 13:48:42 6311 [Note] InnoDB: Starting shutdown...
2015-07-10 13:48:44 6311 [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:

  /opt/mysql//bin/mysqladmin -u root password 'new-password'
  /opt/mysql//bin/mysqladmin -u root -h timesten password 'new-password'

Alternatively you can run:

  /opt/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 . ; /opt/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 at />
The latest information about MySQL is available on the web at

  />
Support MySQL by buying support/licenses at />
New default config file was created as /opt/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

[root@timesten mysql]#

[root@timesten mysql]# cp support-files/mysql.server /etc/init.d/
[root@timesten mysql]# cd /etc/init.d
[root@timesten init.d]# vi mysql.serve

basedir=/opt/mysql
datadir=/opt/mysql/data

[root@timesten mysql]# cp support-files/my-default.cnf /etc/my.cnf
[root@timesten mysql]# vi /etc/my.cnf


[root@timesten mysql]# service mysql.server start
[root@timesten mysql]# /opt/mysql/bin/mysqladmin -u root password 'oracle'


vi /opt/mysql/my.cnf

[client]
port = 3306
socket = /tmp/mysql.sock

[mysqld]
port = 3306
user = mysql
socket = /tmp/mysql.sock
pid-file = /opt/mysql/data/mysql.pid

basedir = /opt/mysql
datadir = /opt/mysql/data
tmpdir = /opt/mysql/data/tmp
open_files_limit = 256

#buffer
max_allowed_packet = 256M
max_heap_table_size = 256M
sort_buffer_size = 2M
join_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size =16M

#log
log-bin = /opt/mysql/data/mysql-bin
binlog_cache_size = 32M
max_binlog_cache_size = 512M
max_binlog_size = 512M
binlog_format = mixed
log_output = FILE
log-error=/opt/mysql/data/mysql-error.log
slow_query_log = 1
#slow_qery_log_file = /opt/mysql/data/slow_query.log

#innodb
innodb_data_file_path = ibdata_lgx1:100M;ibdata_lgx2:50M:autoextend
innodb_log_file_size = 100M
innodb_log_files_in_group = 3
innodb_buffer_pool_size =1024M

[mysql]
no-auto-rehash
prompt = (\u@\h) [\d]>\_
default-character-set = gbk


mysqld_safe --defaults-file=/opt/mysql/my.cnf &
阅读(1622) | 评论(0) | 转发(0) |
0

上一篇:mysql安装-rpm

下一篇:xtrabackup安装

给主人留下些什么吧!~~