Strona 1 z 1

problem z mysql

: 23 września 2007, 11:11
autor: reaktor
Witam!

Po omyłkowym wykasowaniu pliku /etc/mysql przywróciłem go z ubuntu

ale baza dalej nie startuje

ps aux ||grep pokazuje takie coś

Kod: Zaznacz cały

mysql     3492  0.0  6.0 126000 15372 ?        Sl   10:40   0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f
root      3493  0.0  0.2   1792   552 ?        S    10:40   0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
natomiast

/var/log/deamon.log

Kod: Zaznacz cały

Sep 23 10:36:24 smtp mysqld[3234]: InnoDB: using the same InnoDB data or log files.
Sep 23 10:36:25 smtp mysqld[3234]: InnoDB: Unable to lock ./ibdata1, error: 11
Sep 23 10:36:25 smtp mysqld[3234]: InnoDB: Check that you do not already have another mysqld process
Sep 23 10:36:25 smtp mysqld[3234]: InnoDB: using the same InnoDB data or log files.
Sep 23 10:36:26 smtp mysqld[3234]: InnoDB: Unable to lock ./ibdata1, error: 11
Sep 23 10:36:26 smtp mysqld[3234]: InnoDB: Check that you do not already have another mysqld process
Sep 23 10:36:26 smtp mysqld[3234]: InnoDB: using the same InnoDB data or log files.
Sep 23 10:36:27 smtp mysqld[3234]: InnoDB: Unable to lock ./ibdata1, error: 11
Sep 23 10:36:27 smtp mysqld[3234]: InnoDB: Check that you do not already have another mysqld process
Sep 23 10:36:27 smtp mysqld[3234]: InnoDB: using the same InnoDB data or log files.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Unable to lock ./ibdata1, error: 11
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Check that you do not already have another mysqld process
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: using the same InnoDB data or log files.
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28  InnoDB: Unable to open the first data file
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Error in opening ./ibdata1
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28  InnoDB: Operating system error number 11 in a file operation.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Error number 11 means 'Resource temporarily unavailable'.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Some operating system error numbers are described at
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: [url]http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html[/url]
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Could not open or create data files.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: If you tried to add new data files, and it failed here,
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: you should now edit innodb_data_file_path in my.cnf back
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: to what it was, and remove the new ibdata files InnoDB created
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: in this failed attempt. InnoDB only wrote those files full of
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: zeros, but did not yet use them in any way. But be careful: do not
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: remove old data files which contain your precious data!
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28 [ERROR] Do you already have another mysqld server running on port: 3306 ?
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28 [ERROR] Aborting
Sep 23 10:36:28 smtp mysqld[3234]: 
Sep 23 10:36:28 smtp mysqld[3234]: 070923 10:36:28 [Note] /usr/sbin/mysqld: Shutdown complete
Sep 23 10:36:28 smtp mysqld[3234]: 
Sep 23 10:36:28 smtp mysqld_safe[3384]: ended
Sep 23 10:38:58 smtp mysqld_safe[3390]: ended
Sep 23 10:40:09 smtp mysqld_safe[3490]: started
Sep 23 10:40:10 smtp mysqld[3493]: 070923 10:40:10  InnoDB: Started; log sequence number 0 43634
Sep 23 10:40:10 smtp mysqld[3493]: 070923 10:40:10 [Note] /usr/sbin/mysqld: ready for connections.
Sep 23 10:40:10 smtp mysqld[3493]: Version: '5.0.32-Debian_7etch1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Debian etch distrib
ution
nie mogę połączyć się z bazą

Kod: Zaznacz cały

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
próbowałem różnych wariacji apt-get

chciałem nawet wywalić bazę i zainstalować jeszcze raz ale nic z tego

mysql.sock wziąłem z Ubuntu więc z tym może być problem ale z kąd wziąć ten plik dla debiana?

Kurcze jak tego nie naprawię to szef mnie ubije


bardzo proszę o pomoc

Pozdrawiam

: 23 września 2007, 11:50
autor: Tomipnh
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Check that you do not already have another mysqld process
Po omyłkowym wykasowaniu pliku /etc/mysql przywróciłem go z ubuntu
Katalogu* z konfiguracją, skoro dałeś pustą konfigurację z Ubuntu to nie dziwne że nie działa.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: Could not open or create data files.
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: If you tried to add new data files, and it failed here,
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: you should now edit innodb_data_file_path in my.cnf back
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: to what it was, and remove the new ibdata files InnoDB created
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: in this failed attempt. InnoDB only wrote those files full of
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: zeros, but did not yet use them in any way. But be careful: do not
Sep 23 10:36:28 smtp mysqld[3234]: InnoDB: remove old data files which contain your precious data!
Czasem warto robić backupy.

Pozdrawiam, Tomipnh

: 23 września 2007, 13:06
autor: reaktor
my.cnf wydaje się być ok

Kod: Zaznacz cały

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "/var/lib/mysql/my.cnf" to set server-specific options or
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# [url]http://dev.mysql.com/doc/mysql/en/server-system-variables.html[/url]

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# For compatibility to other Debian packages that still use
# libmysqlclient10 and libmysqlclient12.
old_passwords   = 1
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1
#
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 128K
#
# * Query Cache Configuration
#
query_cache_limit       = 1048576
query_cache_size        = 16777216
query_cache_type        = 1
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log            = /var/log/mysql.log
#log            = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log-slow-queries       = /var/log/mysql/mysql-slow.log
#
# The following can be used as easy to replay backup logs or for replication.
#server-id              = 1
log-bin                 = /var/log/mysql/mysql-bin.log
expire-logs-days        = 20
max_binlog_size         = 104857600
#binlog-do-db           = include_database_name
#binlog-ignore-db       = include_database_name
#
# * BerkeleyDB
#
# According to an MySQL employee the use of BerkeleyDB is now discouraged
# and support for it will probably cease in the next versions.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# If you want to enable SSL support (recommended) read the manual or my
# HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt.gz
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet      = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer              = 16M

#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the ndbd storage daemons,
# not from the ndb_mgmd management daemon.
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1
mam rację?

coś jeszcze przestawić trzeba?

Pozdrawiam

: 23 września 2007, 13:08
autor: Tomipnh
Na forum się pytasz jak miałeś skonfigurowanego mysql?
Poważny jestes?

: 23 września 2007, 13:17
autor: reaktor
chłopie zielony jestem i nie wiem jak mam sobie z tym poradzić a poza tym szef mi siedzi na plecach jak nie uruchomię mysql to po mnie

NIE WIEM JAK TO NAPRAWIÆ.

Pzd

: 23 września 2007, 23:23
autor: velmafia
reaktor pisze:NIE WIEM JAK TO NAPRAWIÆ.
Ty jesteś adminem tego serwera?
wydaje mi się że nie, więc zapytaj admina o backupy