Попробовал установить LAMP вместе с phpMyAdmin, по рекомендации:
https://forum.ubuntu.ru/index.php?topic=46573.0;allЕще на стадии инсталляции, при запросе пароля, вылезла помнится такая ошибка:
#2002 - Сервер не отвечает (либо сокет локального MySQL-сервера некорректно настроен)
Там в инсталляторе есть опция: "повторить/игнорировать", так вот, после 2-3 попыток ввести пароль, как поосит, я выбрал игнорировать, чтобы продолжить инсталляцию phpMyAdmin и уже после разобраться в проблеме.
После попытки (
http://localhost/phpmyadmin/) авторизоваться в phpMyAdmin выдаёт:
Добро пожаловать в phpMyAdmin
Ошибка
Ответ MySQL: Документация
#2002 - Сервер не отвечает (либо сокет локального MySQL-сервера некорректно настроен)
Не удалось установить подключение для пользователя указанного в директиве controluser, с помощью параметров определенных в конфигурационном файле config.inc.php.
В ф-л /etc/phpmyadmin/config.inc.php добавлял (как сказано в
http://localhost/phpmyadmin/Documentation.html):
$i=0;
$i++;
$cfg['Servers'][$i]['user'] = 'myuser';
$cfg['Servers'][$i]['password'] = 'mypassword'; // use here your password
$cfg['Servers'][$i]['auth_type'] = 'config';
Далее привожу, (с такими >>>моими комметариями<<<), мои действия в терминале -- при попытках вручную запуская демона (и/или просто мускул) понять, что же там не срабатывает:
>>>Пробую запустить сабж<<<
user@myname:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
>>> Нет такой ошибки! -- скажем здесь:
http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html (Последняя описанная: Error: 1480...)<<<
>>>Пробую запустить сабжевого демона<<<
user@myname:~$ mysqld
100624 3:45:53 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
100624 3:45:53 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)
100624 3:45:53 [ERROR] Aborting
100624 3:45:53 [Note] mysqld: Shutdown complete
>>>Пробую тоже с рутовыми правами<<<
user@myname:~$ sudo mysqld
[sudo] password for user:
100624 3:47:15 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
100624 3:47:15 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)
100624 3:47:15 [ERROR] Aborting
100624 3:47:15 [Note] mysqld: Shutdown complete
>>>Нафик-судо! Перехожу нафик прямо в рутовую консоль! Пробую снова и уже с &<<<
root@myname:/home/user# mysqld &
[1] 2539
root@myname:/home/user# 100624 3:49:47 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
100624 3:49:47 [Warning] Can't create test file /var/lib/mysql/myname.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)
100624 3:49:47 [ERROR] Aborting
100624 3:49:47 [Note] mysqld: Shutdown complete
[1]+ Выход из 1 mysqld
>>>Смотрю: папки /var/lib/mysql - НЕТ! Ну хрен с тобой: создаю папку /var/lib/mysql вручную<<<
root@myname:/home/user# mkdir /var/lib/mysql
root@myname:/home/user#
root@myname:/home/user# mysqld &
[1] 2544
root@myname:/home/user# 100624 3:50:39 [ERROR] Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
100624 3:50:39 [ERROR] Aborting
100624 3:50:39 [Note] mysqld: Shutdown complete
[1]+ Выход из 1 mysqld
>>>Вручную (инструментом из Система / Пользователи и группы) создаю пользователя mysql<<<
root@myname:/home/user# mysqld &
[1] 3556
root@myname:/home/user# 100624 3:53:21 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
100624 3:53:21 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100624 3:53:21 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
[1]+ Выход из 1 mysqld
>>>Ну хрен с тобой снова: создаю папку /var/run/mysqld<<<
root@myname:/home/user# mkdir /var/run/mysqld
root@myname:/home/user#
>>>Пробую что получилось...<<<
user@myname:~$ sudo mysqld
100624 3:58:27 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
100624 3:58:27 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100624 3:58:27 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
>>>Что за сообщение: "Plugin 'FEDERATED' is disabled"

Но... Исполняю что попросил (запустив mysql_upgrade)...<<<
root@myname:/home/user# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
root@myname:/home/user#
>>>А ни хрена не получилось! Вернулись к той же ошибке №2002, с которой началась вся хрень!

<<<
ЕЩЕ ПРОБЫ И СООБРАЖЕНИЯ:
1. Лог мускул не пишет - /var/log/mysql даже не создался!
И даже несмотря на прописанное (мною: снял #) в my.cnf:
general_log_file = /var/log/mysql/mysql.log
general_log = 1
Ну ладно, создал я вручную эту папку для логов:
root@myname:/home/user# mkdir /var/log/mysql
root@myname:/home/user#
Запускаю демона снова:
root@myname:/home/user# mysqld &
[1] 5030
root@myname:/home/user# 100624 14:01:43 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
100624 14:01:43 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100624 14:01:43 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
[1]+ Выход из 1 mysqld
root@myname:/home/user#
ВСЁ ТО ЖЕ САМОЕ!
И во вновь созданной папке логов мускула -- девственно пусто!
2. Писалось кем-то (см ниже ссылки моих поисков по проблеме), что в /var/lib/mysql должны были автоматом еще при инсталляции создаться какие-то таблицы. Папка девственно пуста...
(Ясно, что ежели мускул не запустить, то и конфигуратор-содатель таблиц не сработает тоже...)
КАКИЕ ПРЕДЛОЖЕНИЯ СОВЕТЫ?
Кстати, искал по этой маске: и на форуме убунты, и на других форумах, у инет-провайдеров например, люди задавали ЭТОТ вопрос, но также похоже всё как-то без толку...
Вот так и не отвеченные аналогичные вопросы (по ошибке №2002):
https://forum.ubuntu.ru/index.php?topic=33220.msg235520#msg235520https://forum.ubuntu.ru/index.php?topic=46573.msg585746#msg585746https://forum.ubuntu.ru/index.php?topic=13544.msg94964#msg94964(последний формально как-бы отвечен, но толку мало...)
Или вот на форуме у сервис-провайдеров:
http://forum.nic.ru/showpost.php?p=3111&postcount=29Поиск по сообщению "Plugin 'FEDERATED' is disabled":
https://forum.ubuntu.ru/index.php?topic=78234.15https://forum.ubuntu.ru/index.php?topic=94775.0https://forum.ubuntu.ru/index.php?topic=85890.0https://forum.ubuntu.ru/index.php?topic=97503.0(Аналогично: нигде приемлемого и всем понятного решения так и не нашлось!..)
"Где же вы гуру?" (С)

Пользователь решил продолжить мысль 24 Июня 2010, 09:02:30:
И ещё. Стоит у меня Aconaditray (с настройками по умолчанию вроде бы), но запущен или нет, это никак не влияет на описываемую в теме ситуацию.
(Кто-то помнится упоминал, что он может как-то влиять на работу с мускулом?.. Да, при старте Aconaditray там в конфигураторе присутствует MySQL... но стоит опция: [v] Use Internal MySQL Server)
По всей видимости, эта приблуда работает правильно (с собственным мускулом!) и никак не влияет ла ЛАМПу...
На всякий случай логи его собственного Aconaditray-тестера:
ЗАПУЩЕННЫЙ Akonadi СЕРВЕР:
Akonadi Server Self-Test Report
===============================
Test 1: SUCCESS
--------
Database driver found.
Details: The QtSQL driver 'QMYSQL' is required by your current Akonadi server configuration and was found on your system.
File content of '/home/user/.config/akonadi/akonadiserverrc':
[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false
[QMYSQL]
Name=akonadi
Host=
User=
Password=
Options="UNIX_SOCKET=/home/user/.local/share/akonadi/db_misc/mysql.socket"
ServerPath=/usr/sbin/mysqld-akonadi
StartServer=true
[Debug]
Tracer=null
Test 2: SUCCESS
--------
MySQL server found.
Details: You currently have configured Akonadi to use the MySQL server '/usr/sbin/mysqld-akonadi'.
Make sure you have the MySQL server installed, set the correct path and ensure you have the necessary read and execution rights on the server executable. The server executable is typically called 'mysqld', its locations varies depending on the distribution.
Test 3: SUCCESS
--------
MySQL server is executable.
Details: MySQL server found: /usr/sbin/mysqld-akonadi Ver 5.1.41-3ubuntu11 for debian-linux-gnu on i486 ((Ubuntu))
Test 4: SUCCESS
--------
MySQL server log contains no errors.
Details: The MySQL server log file '<a href='/home/user/.local/share/akonadi/db_data/mysql.err'>/home/user/.local/share/akonadi/db_data/mysql.err</a>' does not contain any errors or warnings.
File content of '/home/user/.local/share/akonadi/db_data/mysql.err':
100623 2:42:32 [Note] Plugin 'FEDERATED' is disabled.
100623 2:42:33 InnoDB: Started; log sequence number 0 130001
100623 2:42:33 [Note] /usr/sbin/mysqld-akonadi: ready for connections.
Version: '5.1.41-3ubuntu11-log' socket: '/home/user/.local/share/akonadi/db_misc/mysql.socket' port: 0 (Ubuntu)
Test 5: SUCCESS
--------
MySQL server default configuration found.
Details: The default configuration for the MySQL server was found and is readable at <a href='/etc/akonadi/mysql-global.conf'>/etc/akonadi/mysql-global.conf</a>.
File content of '/etc/akonadi/mysql-global.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris@mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking
# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
#sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables
# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=latin1
collation_server=latin1_general_ci
table_cache=200
thread_cache_size=3
log_bin=mysql-bin
expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
# log all queries, useful for debugging but generates an enormous amount of data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0
innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2
Test 6: SKIP
--------
MySQL server custom configuration not available.
Details: The custom configuration for the MySQL server was not found but is optional.
Test 7: SUCCESS
--------
MySQL server configuration is usable.
Details: The MySQL server configuration was found at <a href='/home/user/.local/share/akonadi/mysql.conf'>/home/user/.local/share/akonadi/mysql.conf</a> and is readable.
File content of '/home/user/.local/share/akonadi/mysql.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris@mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking
# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
#sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables
# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=latin1
collation_server=latin1_general_ci
table_cache=200
thread_cache_size=3
log_bin=mysql-bin
expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
# log all queries, useful for debugging but generates an enormous amount of data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0
innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2
Test 8: SUCCESS
--------
akonadictl found and usable
Details: The program '/usr/bin/akonadictl' to control the Akonadi server was found and could be executed successfully.
Result:
Akonadi 1.3.1
Test 9: SUCCESS
--------
Akonadi control process registered at D-Bus.
Details: The Akonadi control process is registered at D-Bus which typically indicates it is operational.
Test 10: SUCCESS
--------
Akonadi server process registered at D-Bus.
Details: The Akonadi server process is registered at D-Bus which typically indicates it is operational.
Test 11: SUCCESS
--------
Nepomuk search service registered at D-Bus.
Details: The Nepomuk search service is registered at D-Bus which typically indicates it is operational.
Test 12: SUCCESS
--------
Nepomuk search service uses an appropriate backend.
Details: The Nepomuk search service uses one of the recommended backends.
Test 13: SKIP
--------
Protocol version check not possible.
Details: Without a connection to the server it is not possible to check if the protocol version meets the requirements.
Test 14: SUCCESS
--------
Resource agents found.
Details: At least one resource agent has been found.
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop
Environment variable XDG_DATA_DIRS is set to '/etc/xdg/xdg-xubuntu:/usr/local/share:/usr/share'
Test 15: SUCCESS
--------
No current Akonadi server error log found.
Details: The Akonadi server did not report any errors during its current startup.
Test 16: SUCCESS
--------
No previous Akonadi server error log found.
Details: The Akonadi server did not report any errors during its previous startup.
Test 17: SUCCESS
--------
No current Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its current startup.
Test 18: SUCCESS
--------
No previous Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its previous startup.
А с другой стороны, собственный Akonadi мускул явно работает у них нормально...
"Чудеса в решете" (С)
Забыл упомянуть возможно немаловажные факты:
1. я юзаю XBuntu 10.04
2. у меня умолчательно рута нет, есть убунтовская его симуляция
(возможно разница между теми у кого приблуда стала на ОК и с ошбкой 2002 как раз в этом...)