mysql error 1045 no boot

Fórum destinado a banco de dados. Mysql, Postgre e outros.

mysql error 1045 no boot

Mensagempor xvktr em Seg Jul 19, 2010 16:07

Instalei o mysql e tava ok, mas hoje ao dar o boot aparece a segunte msg:
Código: Selecionar todos
Cheking for corrupt, not cleanly closed and upgrade needing  tables...
/usr/bin/mysqladmin: conect to server 'localhost' failed
error: 'Access denied  for user 'debian-sys-maint'@'localhost' (using passords: YES)'
ERROR 1045 (28000):Access denied for user 'debian-sys-maint'@'localhost' (using passowrd YES)'


Dei uma pesquisada na net e tentei executar os comandos
Código: Selecionar todos
myisamchk
e
Código: Selecionar todos
myisamchk --recover
nos .MYI em
Código: Selecionar todos
/var/lib/mysql/mysql e /var/lib/mysql/print
sem sucesso.
Pelo menos para o JASmine (controle de impressão com CUPS), o mysql está funcionando aparentemente normal, mas .....

Se alguem tiver uma ideia do que possa ser, e puder ajudar desde já agradeço!
xvktr
Novato
Novato
 
Mensagens: 23
Registrado em: Qui Abr 16, 2009 16:49

Re: mysql error 1045 no boot

Mensagempor dmatrix em Ter Jul 20, 2010 10:15

um pouco antigo o tópico mas como deu certo, então tente executar os comando citados pelo fernando, viewtopic.php?p=11839#p11839 pode ser que resolva tb.
.
Antes de postar use a busca e veja o Wiki.
Busca do FD
Wiki do FD

Imagem
Avatar do usuário
dmatrix
Moderador
Moderador
 
Mensagens: 6640
Registrado em: Seg Jun 12, 2006 11:13

Re: mysql error 1045 no boot

Mensagempor xvktr em Ter Jul 20, 2010 13:36

Nada!
Continua com erro
Código: Selecionar todos
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
web:~# ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)

e ao tentar parar
Código: Selecionar todos
mysql stop
Stopping MySQL database server: mysqld failed!

agora para para só com killall mysqld
xvktr
Novato
Novato
 
Mensagens: 23
Registrado em: Qui Abr 16, 2009 16:49

Re: mysql error 1045 no boot

Mensagempor xvktr em Ter Jul 20, 2010 16:34

pesquisei em alguns foruns e achei uma coisa
alterar o arquivo /etc/mysql/debian-start
comentei o "--defaults-file=/etc/mysql/debian.cnf"
de algumas linhas, agora não está dando erro, mas não sei se é o + correto!

Código: Selecionar todos
#!/bin/bash
#
# This script is executed by "/etc/init.d/mysql" on every (re)start.
#
# Changes to this file will be preserved when updating the Debian package.
#

source /usr/share/mysql/debian-start.inc.sh

MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf"
MYADMIN="/usr/bin/mysqladmin" #--defaults-file=/etc/mysql/debian.cnf"
MYUPGRADE="/usr/bin/mysql_upgrade" #--defaults-extra-file=/etc/mysql/debian.cnf"
MYCHECK="/usr/bin/mysqlcheck" #--defaults-file=/etc/mysql/debian.cnf"
MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables"
MYCHECK_PARAMS="--all-databases --fast --silent"
MYCHECK_RCPT="root"

# The following commands should be run when the server is up but in background
# where they do not block the server start and in one shell instance so that
# they run sequentially. They are supposed not to echo anything to stdout.
# If you want to disable the check for crashed tables comment
# "check_for_crashed_tables" out. 
# (There may be no output to stdout inside the background process!)
echo "Checking for corrupt, not cleanly closed and upgrade needing tables."
(
  upgrade_system_tables_if_necessary;
  check_root_accounts;
  check_for_crashed_tables;
) >&2 &

exit 0
xvktr
Novato
Novato
 
Mensagens: 23
Registrado em: Qui Abr 16, 2009 16:49


Voltar para Banco de Dados

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante