Ну собственно на стадии установки БД начинаются приколыRaven писал(а):Блджад, вот нафига было выдумывать этот systemd, если он настолько неюзабельное УГ? Старые добырые инит-скрипты умели воссоздавать базу в пустую папку.
В общем вот:Код: Выделить всё
systemctl stop mysql.service rm -rf /var/lib/mysql/* mysql_install_db chown -R mysql:mysql /var/lib/mysql ln -sf /usr/share/mysql-community-server/english/errmsg.sys /usr/share/mysql-community-server/errmsg.sys systemctl start mysql.service
Код: Выделить всё
linux-white:~ # mysql_install_dbWARNING: The host 'linux-white' could not be looked up with /usr/bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...2014-09-16 11:11:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-09-16 11:11:29 6036 [ERROR] Can't find messagefile '/usr/share/mysql-community-server/errmsg.sys'
2014-09-16 11:11:29 6036 [ERROR]
2014-09-16 11:11:29 6036 [ERROR] Couldn't load plugin named 'archive' with soname 'ha_archive.so'.
2014-09-16 11:11:29 6036 [Note] InnoDB: The InnoDB memory heap is disabled
2014-09-16 11:11:29 6036 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-09-16 11:11:29 6036 [Note] InnoDB: Compressed tables use zlib 1.2.8
2014-09-16 11:11:29 6036 [Note] InnoDB: Using Linux native AIO
2014-09-16 11:11:29 6036 [Note] InnoDB: Not using CPU crc32 instructions
2014-09-16 11:11:29 6036 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-09-16 11:11:29 6036 [Note] InnoDB: Completed initialization of buffer pool
2014-09-16 11:11:29 6036 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2014-09-16 11:11:29 6036 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2014-09-16 11:11:29 6036 [Note] InnoDB: Database physically writes the file full: wait...
2014-09-16 11:11:29 6036 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2014-09-16 11:11:30 6036 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2014-09-16 11:11:30 6036 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2014-09-16 11:11:30 6036 [Warning] InnoDB: New log files created, LSN=45781
2014-09-16 11:11:30 6036 [Note] InnoDB: Doublewrite buffer not found: creating new
2014-09-16 11:11:31 6036 [Note] InnoDB: Doublewrite buffer created
2014-09-16 11:11:31 6036 [Note] InnoDB: 128 rollback segment(s) are active.
2014-09-16 11:11:31 6036 [Warning] InnoDB: Creating foreign key constraint system tables.
2014-09-16 11:11:31 6036 [Note] InnoDB: Foreign key constraint system tables created
2014-09-16 11:11:31 6036 [Note] InnoDB: Creating tablespace and datafile system tables.
2014-09-16 11:11:31 6036 [Note] InnoDB: Tablespace and datafile system tables created.
2014-09-16 11:11:31 6036 [Note] InnoDB: Waiting for purge to start
2014-09-16 11:11:31 6036 [Note] InnoDB: 5.6.12 started; log sequence number 0
2014-09-16 11:11:31 6036 [ERROR] Aborting
2014-09-16 11:11:31 6036 [Note] Binlog end
2014-09-16 11:11:31 6036 [Note] InnoDB: FTS optimize thread exiting.
2014-09-16 11:11:31 6036 [Note] InnoDB: Starting shutdown...
2014-09-16 11:11:33 6036 [Note] InnoDB: Shutdown completed; log sequence number 1600607
2014-09-16 11:11:33 6036 [Note]
linux-white:~ # chown -R mysql:mysql /var/lib/mysqllinux-white:~ # ln -sf /usr/share/mysql-community-server/english/errmsg.sys /usr/share/mysql-community-server/errmsg.sys
linux-white:~ # systemctl start mysql.serviceJob for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
linux-white:~ # systemctl status mysql.service
mysql.service - LSB: Start the MySQL database server
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Вт 2014-09-16 11:12:46 KGT; 9s ago
Process: 6068 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
сен 16 11:12:15 linux-white mysql[6068]: Will update MySQL now, if you encounter any problems, please read...file:
сен 16 11:12:15 linux-white mysql[6068]: /usr/share/doc/packages/mysql-community-server/README.SuSE
сен 16 11:12:15 linux-white mysql[6068]: Log files inconsistency, please merge following files manually:
сен 16 11:12:15 linux-white mysql[6068]: Running protected MySQL...
сен 16 11:12:46 linux-white mysql[6068]: error: /var/tmp/mysql-protected.BohlUv/mysql.sock file didn't appeared...
сен 16 11:12:46 linux-white mysql[6068]: Try checking "/var/log/mysql/mysqld-upgrade-run.log"...
сен 16 11:12:46 linux-white mysql[6068]: ..failed
сен 16 11:12:46 linux-white systemd[1]: mysql.service: control process exited, code=exited status=1
сен 16 11:12:46 linux-white systemd[1]: Failed to start LSB: Start the MySQL database server.
сен 16 11:12:46 linux-white systemd[1]: Unit mysql.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
linux-white:~ #
Код: Выделить всё
140916 11:12:16 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2014-09-16 11:12:16 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-09-16 11:12:16 6451 [ERROR] Can't find messagefile '/usr/share/mysql-community-server/errmsg.sys'
2014-09-16 11:12:16 6451 [Note] Plugin 'FEDERATED' is disabled.
2014-09-16 11:12:16 6451 [ERROR]
2014-09-16 11:12:16 6451 [ERROR] Couldn't load plugin named 'archive' with soname 'ha_archive.so'.
2014-09-16 11:12:16 6451 [Note] InnoDB: The InnoDB memory heap is disabled
2014-09-16 11:12:16 6451 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-09-16 11:12:16 6451 [Note] InnoDB: Compressed tables use zlib 1.2.8
2014-09-16 11:12:16 6451 [Note] InnoDB: Using Linux native AIO
2014-09-16 11:12:16 6451 [Note] InnoDB: Not using CPU crc32 instructions
2014-09-16 11:12:16 6451 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-09-16 11:12:16 6451 [Note] InnoDB: Completed initialization of buffer pool
2014-09-16 11:12:16 6451 [Note] InnoDB: Highest supported file format is Barracuda.
2014-09-16 11:12:17 6451 [Note] InnoDB: 128 rollback segment(s) are active.
2014-09-16 11:12:17 6451 [Note] InnoDB: Waiting for purge to start
2014-09-16 11:12:17 6451 [Note] InnoDB: 5.6.12 started; log sequence number 1600607
2014-09-16 11:12:17 6451 [ERROR] Aborting
2014-09-16 11:12:17 6451 [Note] Binlog end
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'partition'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'ARCHIVE'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_METRICS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMPMEM'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_CMP'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_LOCKS'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'INNODB_TRX'
2014-09-16 11:12:17 6451 [Note] Shutting down plugin 'InnoDB'
2014-09-16 11:12:17 6451 [Note] InnoDB: FTS optimize thread exiting.
2014-09-16 11:12:17 6451 [Note] InnoDB: Starting shutdown...
2014-09-16 11:12:19 6451 [Note] InnoDB: Shutdown completed; log sequence number 1600617
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'BLACKHOLE'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'MEMORY'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'CSV'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'MRG_MYISAM'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'MyISAM'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'sha256_password'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'mysql_old_password'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'mysql_native_password'
2014-09-16 11:12:19 6451 [Note] Shutting down plugin 'binlog'
2014-09-16 11:12:19 6451 [Note]
140916 11:12:19 mysqld_safe mysqld from pid file /var/tmp/mysql-protected.BohlUv/mysqld.pid ended
Код: Выделить всё
2014-09-16 11:12:16 6451 [Note] Plugin 'FEDERATED' is disabled.
2014-09-16 11:12:16 6451 [ERROR]
2014-09-16 11:12:16 6451 [ERROR] Couldn't load plugin named 'archive' with soname 'ha_archive.so'.
Код: Выделить всё
The host 'linux-white' could not be looked up with /usr/bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !