Установка MYSQL сервера в CentOS

Установка MYSQL сервера в CentOS

Установка MYSQL сервера в CentOS

Скачиваем с официального сайта MYSQL репозиторию

Устанавливаем репозиторий

rpm -Uvh mysql-community-release-el6-5.noarch.rpm

Устанавливаем MySQL

yum install mysql mysql-server

Добавляем в автозагрузку и запускаем MySQL

chkconfig --levels 235 mysqld on
service mysqld start

Вывод приблизительно будет следующий:

2014-05-20 00:22:21 21489 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-05-20 00:22:21 21489 [Note] InnoDB: The InnoDB memory heap is disabled
2014-05-20 00:22:21 21489 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-05-20 00:22:21 21489 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-05-20 00:22:21 21489 [Note] InnoDB: Using Linux native AIO
2014-05-20 00:22:21 21489 [Note] InnoDB: Using CPU crc32 instructions
2014-05-20 00:22:21 21489 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-05-20 00:22:21 21489 [Note] InnoDB: Completed initialization of buffer pool
2014-05-20 00:22:21 21489 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2014-05-20 00:22:21 21489 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2014-05-20 00:22:21 21489 [Note] InnoDB: Database physically writes the file full: wait...
2014-05-20 00:22:21 21489 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2014-05-20 00:22:22 21489 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2014-05-20 00:22:23 21489 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2014-05-20 00:22:23 21489 [Warning] InnoDB: New log files created, LSN=45781
2014-05-20 00:22:23 21489 [Note] InnoDB: Doublewrite buffer not found: creating new
2014-05-20 00:22:24 21489 [Note] InnoDB: Doublewrite buffer created
2014-05-20 00:22:24 21489 [Note] InnoDB: 128 rollback segment(s) are active.
2014-05-20 00:22:24 21489 [Warning] InnoDB: Creating foreign key constraint system tables.
2014-05-20 00:22:24 21489 [Note] InnoDB: Foreign key constraint system tables created
2014-05-20 00:22:24 21489 [Note] InnoDB: Creating tablespace and datafile system tables.
2014-05-20 00:22:24 21489 [Note] InnoDB: Tablespace and datafile system tables created.
2014-05-20 00:22:24 21489 [Note] InnoDB: Waiting for purge to start
2014-05-20 00:22:24 21489 [Note] InnoDB: 5.6.17 started; log sequence number 0
2014-05-20 00:22:24 21489 [Note] Binlog end
2014-05-20 00:22:24 21489 [Note] InnoDB: FTS optimize thread exiting.
2014-05-20 00:22:24 21489 [Note] InnoDB: Starting shutdown...
2014-05-20 00:22:25 21489 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2014-05-20 00:22:25 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-05-20 00:22:25 21512 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-05-20 00:22:25 21512 [Note] InnoDB: The InnoDB memory heap is disabled
2014-05-20 00:22:25 21512 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-05-20 00:22:25 21512 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-05-20 00:22:25 21512 [Note] InnoDB: Using Linux native AIO
2014-05-20 00:22:25 21512 [Note] InnoDB: Using CPU crc32 instructions
2014-05-20 00:22:25 21512 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-05-20 00:22:25 21512 [Note] InnoDB: Completed initialization of buffer pool
2014-05-20 00:22:25 21512 [Note] InnoDB: Highest supported file format is Barracuda.
2014-05-20 00:22:26 21512 [Note] InnoDB: 128 rollback segment(s) are active.
2014-05-20 00:22:26 21512 [Note] InnoDB: Waiting for purge to start
2014-05-20 00:22:26 21512 [Note] InnoDB: 5.6.17 started; log sequence number 1625977
2014-05-20 00:22:26 21512 [Note] Binlog end
2014-05-20 00:22:26 21512 [Note] InnoDB: FTS optimize thread exiting.
2014-05-20 00:22:26 21512 [Note] InnoDB: Starting shutdown...
2014-05-20 00:22:27 21512 [Note] InnoDB: Shutdown completed; log sequence number 1625987

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

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h antharas password 'new-password'

Alternatively you can run:

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

Please report any problems at http://bugs.mysql.com/

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

Note: new default config file not created.
Please make sure your config file is current

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

[ OK ]
Starting mysqld: [ OK ]

Запускаем мастер настройки MySQL

/usr/bin/mysql_secure_installation

Комментарии

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×