Chinaunix首页 | 论坛 | 博客
  • 博客访问: 504970
  • 博文数量: 63
  • 博客积分: 1194
  • 博客等级: 中士
  • 技术积分: 761
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-24 12:44
个人简介

得之坦然,失之淡然,争其必然,顺其自然!

文章分类

全部博文(63)

文章存档

2014年(2)

2013年(22)

2012年(39)

分类: Mysql/postgreSQL

2014-08-19 11:26:06

将my.cnf文件复制到/etc/下,文件内容为:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[client]
port = 3306
socket         = /app/mysql/mysqldata/mysql.sock

[mysqld]
character_set_server = utf8
port = 3306
datadir         =  /app/mysql/mysqldata
socket =  /app/mysql/mysqldata/mysql.sock
explicit_defaults_for_timestamp=true  #关闭警告[Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
skip_name_resolve
log_bin_trust_function_creators = 1
event_scheduler=ON

lower_case_table_names=1
federated

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
max_connections = 1000
max_connect_errors = 10000

server-id = 0
# socket = .....

# join_buffer_size = 128M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

# Remove leading # to set options mainly useful for reporting servers.
#log-bin=mysql-bin
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
innodb_data_file_path = ibdata1:74M:autoextend
innodb_buffer_pool_size = 8192M
innodb_log_file_size = 1024M   #max is 4G
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 2

[mysql]
default-character-set = utf8
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

安装信息:
[root@Kamailio1 mysql]# rpm -Uvh MySQL-server-5.6.20-1.linux_glibc2.5.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]
2014-08-19 11:15:34 13102 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-08-19 11:15:34 13102 [Note] InnoDB: The InnoDB memory heap is disabled
2014-08-19 11:15:34 13102 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-08-19 11:15:34 13102 [Note] InnoDB: Memory barrier is not used
2014-08-19 11:15:34 13102 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-08-19 11:15:34 13102 [Note] InnoDB: Using Linux native AIO
2014-08-19 11:15:34 13102 [Note] InnoDB: Using CPU crc32 instructions
2014-08-19 11:15:34 13102 [Note] InnoDB: Initializing buffer pool, size = 8.0G
2014-08-19 11:15:34 13102 [Note] InnoDB: Completed initialization of buffer pool
2014-08-19 11:15:34 13102 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2014-08-19 11:15:34 13102 [Note] InnoDB: Setting file ./ibdata1 size to 74 MB
2014-08-19 11:15:34 13102 [Note] InnoDB: Database physically writes the file full: wait...
2014-08-19 11:15:35 13102 [Note] InnoDB: Setting log file ./ib_logfile101 size to 1024 MB
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
2014-08-19 11:15:44 13102 [Note] InnoDB: Setting log file ./ib_logfile1 size to 1024 MB
InnoDB: Progress in MB: 100 200 300 400 500 600 700 800 900 1000
2014-08-19 11:15:53 13102 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2014-08-19 11:15:53 13102 [Warning] InnoDB: New log files created, LSN=45781
2014-08-19 11:15:53 13102 [Note] InnoDB: Doublewrite buffer not found: creating new
2014-08-19 11:15:53 13102 [Note] InnoDB: Doublewrite buffer created
2014-08-19 11:15:53 13102 [Note] InnoDB: 128 rollback segment(s) are active.
2014-08-19 11:15:53 13102 [Warning] InnoDB: Creating foreign key constraint system tables.
2014-08-19 11:15:53 13102 [Note] InnoDB: Foreign key constraint system tables created
2014-08-19 11:15:53 13102 [Note] InnoDB: Creating tablespace and datafile system tables.
2014-08-19 11:15:53 13102 [Note] InnoDB: Tablespace and datafile system tables created.
2014-08-19 11:15:53 13102 [Note] InnoDB: Waiting for purge to start
2014-08-19 11:15:53 13102 [Note] InnoDB: 5.6.20 started; log sequence number 0
A random root password has been set. You will find it in '/root/.mysql_secret'.
2014-08-19 11:15:56 13102 [Warning] 'user' entry 'root@kamailio1' ignored in --skip-name-resolve mode.
2014-08-19 11:15:56 13102 [Warning] 'proxies_priv' entry '@ root@kamailio1' ignored in --skip-name-resolve mode.
2014-08-19 11:15:56 13102 [Note] Binlog end
2014-08-19 11:15:56 13102 [Note] InnoDB: FTS optimize thread exiting.
2014-08-19 11:15:56 13102 [Note] InnoDB: Starting shutdown...
2014-08-19 11:15:58 13102 [Note] InnoDB: Shutdown completed; log sequence number 1625977


2014-08-19 11:15:58 13141 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-08-19 11:15:58 13141 [Note] InnoDB: The InnoDB memory heap is disabled
2014-08-19 11:15:58 13141 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-08-19 11:15:58 13141 [Note] InnoDB: Memory barrier is not used
2014-08-19 11:15:58 13141 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-08-19 11:15:58 13141 [Note] InnoDB: Using Linux native AIO
2014-08-19 11:15:58 13141 [Note] InnoDB: Using CPU crc32 instructions
2014-08-19 11:15:58 13141 [Note] InnoDB: Initializing buffer pool, size = 8.0G
2014-08-19 11:15:58 13141 [Note] InnoDB: Completed initialization of buffer pool
2014-08-19 11:15:59 13141 [Note] InnoDB: Highest supported file format is Barracuda.
2014-08-19 11:15:59 13141 [Note] InnoDB: 128 rollback segment(s) are active.
2014-08-19 11:15:59 13141 [Note] InnoDB: Waiting for purge to start
2014-08-19 11:15:59 13141 [Note] InnoDB: 5.6.20 started; log sequence number 1625977
2014-08-19 11:15:59 13141 [Note] Binlog end
2014-08-19 11:15:59 13141 [Note] InnoDB: FTS optimize thread exiting.
2014-08-19 11:15:59 13141 [Note] InnoDB: Starting shutdown...
2014-08-19 11:16:01 13141 [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

The latest information about MySQL is available on the web at

 

Support MySQL by buying support/licenses at

WARNING: Found existing config file /usr/my.cnf on the system.
Because this file might be in use, it was not replaced,
but was used in bootstrap (unless you used --defaults-file)
and when you later start the server.
The new default config file was created as /usr/my-new.cnf,
please compare it with your file and take the changes you need.

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@Kamailio1 mysql]# 

--根据情况,可重新设定数据目录
/usr/bin/mysql_install_db --user=mysql --datadir=/app/mysql/mysqldata

阅读(10227) | 评论(0) | 转发(0) |
0

上一篇:SQL脚本美化工具SQL Pretty Printer

下一篇:没有了

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