Estou vindo de uma nova instalação do servidor Ubuntu 9.10 e tentando instalar o mysql-server usando 'sudo apt-get mysql-server'
Eu recebo os seguintes erros:
dan @ dev: ~ $ sudo apt-get instala mysql-server
[sudo] senha para dan:
Lendo listas de pacotes ... Concluído
Construindo árvore de dependências
Lendo informações do estado ... Concluído
Os seguintes pacotes extras serão instalados:
libdbd-mysql-perl libdbi-perl libhtml-template-perl
libnet-daemon-perl libplrpc-perl mysql-client-5.1
mysql-server-5.1
Pacotes sugeridos:
dbishell libipc-sharedcache-perl tinyca
Os seguintes pacotes NOVOS serão instalados:
libdbd-mysql-perl libdbi-perl libhtml-template-perl
libnet-daemon-perl libplrpc-perl mysql-client-5.1
mysql-server mysql-server-5.1
0 atualizado, 8 recém-instalado, 0 para remover e 0 não atualizado.
Precisa obter 16,5MB de arquivos.
Após essa operação, 39,0 MB de espaço em disco adicional serão usados.
Você quer continuar [Y / n]? y
Obter: 1 link karmic / main libnet-daemon-perl 0,43-1 [46,9kB]
Obtenha: 2 link karmic / main libplrpc-perl 0.2020-2 [36.0kB]
Obtenha: 3 link karmic / main libdbi-perl 1.609-1 [800kB]
Obtenha: 4 link karmic / main libdbd-mysql-perl 4.011-1ubuntu1 [136kB]
Get: 5 link atualizações cármicas / main mysql-client-5.1 5.1.37- 1ubuntu5.1 [8,202kB]
Obtenha: 6 link karmic-updates / main mysql-server-5.1 5.1.37-1ubuntu5.1 [7,186kB]
Obtenha: 7 link kármico / main libhtml-template-perl 2.9-1 [65.8kB]
Obtenha: 8 link karmic-updates / main-mysql-server 5.1.37-1ubuntu5.1 [64.3kB]
Buscados 16,5MB em 1min 34s (175kB / s)
Pré-configurando pacotes ...
Selecionando o pacote desclassificado anteriormente libnet-daemon-perl.
(Lendo banco de dados ... 123083 arquivos e diretórios atualmente instalados.)
Descompactando o libnet-daemon-perl (de ... / libnet-daemon-perl_0.43-1_all.deb) ...
Selecionando o pacote desclassificado anteriormente libplrpc-perl.
Descompactando o libplrpc-perl (de ... / libplrpc-perl_0.2020-2_all.deb) ...
Selecionando o pacote desclassificado anteriormente libdbi-perl.
Descompactando libdbi-perl (de ... / libdbi-perl_1.609-1_i386.deb) ...
Selecionando o pacote anteriormente desmarcado libdbd-mysql-perl.
Descompactando o libdbd-mysql-perl (de ... / libdbd-mysql-perl_4.011-1ubuntu1_i386.deb) ...
Selecionando o pacote desmarcado anteriormente mysql-client-5.1.
Descompactando o mysql-client-5.1 (do ... / mysql-client-5.1_5.1.37-1ubuntu5.1_i386.deb) ...
Selecionando o pacote desmarcado anteriormente mysql-server-5.1.
Descompactando o mysql-server-5.1 (do ... / mysql-server-5.1_5.1.37-1ubuntu5.1_i386.deb) ...
Selecionando o pacote anteriormente desmarcado libhtml-template-perl.
Descompactando o libhtml-template-perl (de ... / libhtml-template-perl_2.9-1_all.deb) ...
Selecionando o pacote anteriormente desmarcado mysql-server.
Descompactando o mysql-server (do ... / mysql-server_5.1.37-1ubuntu5.1_all.deb) ...
Processando gatilhos para o homem-db ...
Processando gatilhos para o ureadahead ...
ureadahead será reprofiliado na próxima reinicialização |
Configurando o libnet-daemon-perl (0.43-1) ...
Configurando o libplrpc-perl (0.2020-2) ...
Configurando libdbi-perl (1.609-1) ...
Configurando o libdbd-mysql-perl (4.011-1ubuntu1) ...
Configurando o mysql-client-5.1 (5.1.37-1ubuntu5.1) ...
Setting up mysql-server-5.1 (5.1.37-1ubuntu5.1) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libhtml-template-perl (2.9-1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.1; however:
Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.1
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
O que estou perdendo?
[atualização]
mysqld retorna:
dan@dev:~$ sudo mysqld
[sudo] password for dan:
100220 12:18:17 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
100220 12:18:17 InnoDB: Retrying to lock the first data file
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
Isso continua por um tempo ...
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
^[[BInnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
100220 12:19:57 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
100220 12:19:57 InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
100220 12:19:57 [ERROR] Plugin 'InnoDB' init function returned error.
100220 12:19:57 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
100220 12:19:57 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
100220 12:19:57 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100220 12:19:57 [ERROR] Aborting
100220 12:19:57 [Warning] Forcing shutdown of 1 plugins
100220 12:19:57 [Note] mysqld: Shutdown complete
Como posso verificar qual processo está usando a porta: 3306?
[Atualizar]:
sudo netstat -anp | grep LISTEN
retorna
dan@dev:~$ sudo netstat -anp | grep LISTEN
[sudo] password for dan:
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1372/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4391/mysqld
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1409/cupsd
tcp6 0 0 ::1:631 :::* LISTEN 1409/cupsd
[Mais atualizações]:
Eu posso logar no mysql se isso faz diferença