Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@manager:/opt/mysql/server-5.7# bin/mysql_install_db --user=mysql
- 2017-03-18 20:13:31 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
- 2017-03-18 20:13:31 [ERROR] The data directory needs to be specified.
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- mysqld mysqld-debug mysqld_multi mysqld_safe mysqldump mysqldumpslow
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- mysqld mysqld-debug mysqld_multi mysqld_safe mysqldump mysqldumpslow
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
- root@manager:/opt/mysql/server-5.7# apt-get install numactl
- Leyendo lista de paquetes... Hecho
- Creando árbol de dependencias
- Leyendo la información de estado... Hecho
- Se instalarán los siguientes paquetes extras:
- libnuma1
- Se instalarán los siguientes paquetes NUEVOS:
- libnuma1 numactl
- 0 actualizados, 2 nuevos se instalarán, 0 para eliminar y 141 no actualizados.
- Se necesita descargar 78,3 kB de archivos.
- Se utilizarán 160 kB de espacio de disco adicional después de esta operación.
- ¿Desea continuar? [S/n] s
- Des:1 http://ftp.es.debian.org/debian/ jessie/main libnuma1 i386 2.0.10-1 [33,7 kB]
- Des:2 http://ftp.es.debian.org/debian/ jessie/main numactl i386 2.0.10-1 [44,7 kB]
- Descargados 78,3 kB en 0s (193 kB/s)
- Seleccionando el paquete libnuma1:i386 previamente no seleccionado.
- (Leyendo la base de datos ... 70197 ficheros o directorios instalados actualmente.)
- Preparando para desempaquetar .../libnuma1_2.0.10-1_i386.deb ...
- Desempaquetando libnuma1:i386 (2.0.10-1) ...
- Seleccionando el paquete numactl previamente no seleccionado.
- Preparando para desempaquetar .../numactl_2.0.10-1_i386.deb ...
- Desempaquetando numactl (2.0.10-1) ...
- Procesando disparadores para man-db (2.7.0.2-5) ...
- Configurando libnuma1:i386 (2.0.10-1) ...
- Configurando numactl (2.0.10-1) ...
- Procesando disparadores para libc-bin (2.19-18+deb8u1) ...
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- mysqld: Error on realpath() on '/var/lib/mysql-files' (Error 2 - No such file or directory)
- 2017-03-18T19:16:31.580801Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2017-03-18T19:16:31.587701Z 0 [ERROR] Failed to access directory for --secure-file-priv. Please make sure that directory exists and is accessible by MySQL Server. Supplied value : /var/lib/mysql-files
- 2017-03-18T19:16:31.588350Z 0 [ERROR] Aborting
- 2017-03-18T19:16:31.611289Z 0 [Note] Binlog end
- root@manager:/opt/mysql/server-5.7# ls /var/lib/
- apt/ dpkg/ libxml-sax-perl/ os-prober/ update-rc.d/
- aptitude/ emacsen-common/ logrotate/ pam/ urandom/
- aspell/ exim4/ man-db/ python-support/ usbutils/
- container/ initramfs-tools/ misc/ sgml-base/ vim/
- dbus/ initscripts/ mlocate/ systemd/ xml-core/
- dhcp/ insserv/ mysql-cluster/ tex-common/
- dictionaries-common/ ispell/ nfs/ ucf/
- root@manager:/opt/mysql/server-5.7# mkdir /var/lib/mysql-files
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7#
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
- 2017-03-18T19:18:15.099299Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2017-03-18T19:18:15.099387Z 0 [Warning] Can't create test file /var/lib/mysql/manager.lower-test
- 2017-03-18T19:18:15.099397Z 0 [Warning] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
- 2017-03-18T19:18:15.099421Z 0 [Note] bin/mysqld (mysqld 5.7.17-ndb-7.5.5-cluster-gpl) starting as process 21290 ...
- 2017-03-18T19:18:15.185002Z 0 [Warning] Can't create test file /var/lib/mysql/manager.lower-test
- 2017-03-18T19:18:15.185027Z 0 [Warning] Can't create test file /var/lib/mysql/manager.lower-test
- 2017-03-18T19:18:15.185564Z 0 [ERROR] failed to set datadir to /var/lib/mysql/
- 2017-03-18T19:18:15.187419Z 0 [ERROR] Aborting
- 2017-03-18T19:18:15.187801Z 0 [Note] Binlog end
- 2017-03-18T19:18:15.188166Z 0 [Note] bin/mysqld: Shutdown complete
- root@manager:/opt/mysql/server-5.7# mkdir /var/lib/mysql
- root@manager:/opt/mysql/server-5.7# bin/mysqld --user=mysql
- 2017-03-18T19:19:04.064933Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2017-03-18T19:19:04.065896Z 0 [Warning] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
- 2017-03-18T19:19:04.065925Z 0 [Note] bin/mysqld (mysqld 5.7.17-ndb-7.5.5-cluster-gpl) starting as process 21292 ...
- 2017-03-18T19:19:04.135971Z 0 [Note] InnoDB: PUNCH HOLE support available
- 2017-03-18T19:19:04.136456Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2017-03-18T19:19:04.136757Z 0 [Note] InnoDB: Uses event mutexes
- 2017-03-18T19:19:04.137955Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
- 2017-03-18T19:19:04.137969Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2017-03-18T19:19:04.137977Z 0 [Note] InnoDB: Using Linux native AIO
- 2017-03-18T19:19:04.156710Z 0 [Note] InnoDB: Number of pools: 1
- 2017-03-18T19:19:04.170341Z 0 [Note] InnoDB: Not using CPU crc32 instructions
- 2017-03-18T19:19:04.172013Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
- 2017-03-18T19:19:04.202587Z 0 [Note] InnoDB: Completed initialization of buffer pool
- 2017-03-18T19:19:04.228229Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
- 2017-03-18T19:19:04.238599Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
- 2017-03-18T19:19:04.238764Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
- 2017-03-18T19:19:04.238772Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
- 2017-03-18T19:19:04.238778Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
- 2017-03-18T19:19:04.238782Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
- 2017-03-18T19:19:04.238786Z 0 [ERROR] InnoDB: Cannot open datafile './ibdata1'
- 2017-03-18T19:19:04.238794Z 0 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
- 2017-03-18T19:19:04.238801Z 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Cannot open a file. You may need to delete the ibdata1 file before trying to start up again.
- 2017-03-18T19:19:04.841967Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
- 2017-03-18T19:19:04.841994Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
- 2017-03-18T19:19:04.842000Z 0 [ERROR] Failed to initialize plugins.
- 2017-03-18T19:19:04.842002Z 0 [ERROR] Aborting
- 2017-03-18T19:19:04.842007Z 0 [Note] Binlog end
- 2017-03-18T19:19:04.842135Z 0 [Note] Shutting down plugin 'MyISAM'
- 2017-03-18T19:19:04.842387Z 0 [Note] bin/mysqld: Shutdown complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement