Introdução
Estou rodando o MariaDB e o Apache na minha máquina linux e hoje tive alguns problemas.
Eu me conecto ao servidor via SSH e aqui estão alguns dos problemas que estou enfrentando. Eu não tenho absolutamente nenhuma ideia do que estou fazendo aqui.
O que estou fazendo
Etapa 1: mysql -u USERNAME -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
Ok, então imaginei, vamos tentar parar o serviço mysql
Etapa 2: sudo service mysql stop
Ok, sem erros, então reinicie o serviço
Etapa 3: sudo service mysql restart
Job for mysql.service failed. See "systemctl status mysql.service" and
"journalctl -xe" for details.
Ok, então é melhor eu executar esses dois comandos e ver o que recebo
Etapa 4: status mysql.service
Hmm..okvamostentarooutro
Etapa5:journalctl-xe
Nojournalfileswerefound.
Ok,estouperdidoaqui..
LogdeerrosdoMySQL
15082414:42:58mysqld_safeStartingmysqlddaemonwithdatabasesfrom/var/lib/mysql15082414:42:58[Note]/usr/sbin/mysqld(mysqld10.0.20-MariaDB-0ubuntu0.15.04.1)startingasprocess22637...15082414:42:58[ERROR]mysqld:File'/var/lib/mysql/aria_log_control'notfound(Errcode:13"Permission denied")
150824 14:42:58 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
150824 14:42:58 [ERROR] Plugin 'Aria' init function returned error.
150824 14:42:58 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
150824 14:42:58 [Note] InnoDB: Using mutexes to ref count buffer pool pages
150824 14:42:58 [Note] InnoDB: The InnoDB memory heap is disabled
150824 14:42:58 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
150824 14:42:58 [Note] InnoDB: Memory barrier is not used
150824 14:42:58 [Note] InnoDB: Compressed tables use zlib 1.2.8
150824 14:42:58 [Note] InnoDB: Using Linux native AIO
150824 14:42:58 [Note] InnoDB: Using CPU crc32 instructions
150824 14:42:58 [Note] InnoDB: Initializing buffer pool, size = 128.0M
150824 14:42:58 [Note] InnoDB: Completed initialization of buffer pool
150824 14:42:58 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
150824 14:42:58 [ERROR] InnoDB: The system tablespace must be writable!
150824 14:42:58 [ERROR] Plugin 'InnoDB' init function returned error.
150824 14:42:58 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150824 14:42:58 [Note] Plugin 'FEEDBACK' is disabled.
150824 14:42:58 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
150824 14:42:58 [ERROR] Unknown/unsupported storage engine: InnoDB
150824 14:42:58 [ERROR] Aborting
150824 14:42:58 [Note] /usr/sbin/mysqld: Shutdown complete
150824 14:42:58 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
A questão do espaço em disco
Não parece que o espaço em disco é um problema