mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
debian:/home/kevmen#
Перерыл весь нет,все перепробовал,ничего не помогает,что делать,любой совет,заранее спасибо
Модераторы: SLEDopit, Модераторы разделов
mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
debian:/home/kevmen#
/etc/init.d/mysql start
df: `/usr/local/mysql/data/.': No such file or directory
df: no file systems processed
/etc/init.d/mysql: ERROR: The partition with /usr/local/mysql/data is too full! failed
#2002 - Сервер не отвечает (либо сокет локального MySQL-сервера некорректно настроен)
Невозможно загрузить расширение mcrypt! Проверьте настройки PHP.
База не инициализирована (обычно инциализация базы происходит автоматически, при первом запуске службы). Посмотрите, какие параметры может принимать скрипт - если есть команда инициализации БД - воспользуйтесь ей.
Потому, что сервер у вас не запущен.#2002 - Сервер не отвечает (либо сокет локального MySQL-сервера некорректно настроен)
Поставьте то, что он просит (mcrypt доступен в пакетах, для большинства дистрибутивов)Невозможно загрузить расширение mcrypt! Проверьте настройки PHP.
`/usr/local/mysql/data/.': No such file or directory
debian:/home/kevmen# /etc/init.d/mysql start
Starting MySQL database server: mysqld already running.
debian:/home/kevmen#
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
debian:/home/kevmen# grep socket /etc/mysql/my.cnf
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
socket = /var/run/mysqld/mysqld.sock
socket = /var/run/mysqld/mysqld.sock
socket = /var/run/mysqld/mysqld.sock
debian:/home/kevmen#
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
Код: Выделить всё
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <newpassword>
mysql>kevmen писал(а): ↑16.06.2009 05:11Код: Выделить всё
# mysql -uroot -p Enter password: <newpassword> mysql>
не помогло
Код: Выделить всё
# mysqld
101021 14:27:42 InnoDB: Started; log sequence number 13 1095437386
101021 14:27:42 [Note] mysqld: ready for connections.
Version: '5.0.51a-24+lenny4-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
InnoDB: Error: trying to access page number 4294894463 in space 0,
InnoDB: space name ./ibdata1,
InnoDB: which is outside the tablespace bounds.
InnoDB: Byte offset 0, len 16384, i/o type 10.
InnoDB: If you get this error at mysqld startup, please check that
InnoDB: your my.cnf matches the ibdata files that you have in the
InnoDB: MySQL server.
101021 14:27:43InnoDB: Assertion failure in thread 2982583184 in file fil0fil.c line 3959
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: about forcing recovery.
101021 14:27:43 - mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 233983 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd=(nil)
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
Cannot determine thread, fp=0xb1c68268, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x81f3901
0x83f2d1b
0x83d0e61
0x83d1d1f
0x83c6e1d
0x83ebfbf
0x83e5f8a
0x83870c1
0x83872dc
0x838b3a9
0x8393c0c
0x83940a2
0x83699a8
0x836a3d5
0x834f700
0x83a7bd2
0x83313a8
0xb76f04c0
0xb750284e
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.Код: Выделить всё
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)Код: Выделить всё
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104