Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС для молодых и начинающих системных администраторов.
CenOS 5.4
Хочу поднять свой web-server)
Скачал и Установил из реп свежую версию PHP и Apache. Все встало замечательно.
Дошло дело до MySQL.
Установил:
mysql-5.1.41-1.el5.remi
mysql-server-5.1.41-1.el5.remi
Запускаю:
root@localhost tmp
# service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Запускается MySQL: [ СБОЙ ]
/var/log/mysqld.log
root@localhost tmp
091213 20:24:17 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
091213 20:24:17 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 641 error messages.
Check that the above file is the right version for this program!
091213 20:24:17 [Note] Plugin 'ndbcluster' is disabled.
/usr/libexec/mysqld: Unknown error 1146
091213 20:24:17 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
091213 20:24:18 InnoDB: Started; log sequence number 0 44233
091213 20:24:18 [ERROR] Aborting
091213 20:24:18 InnoDB: Starting shutdown...
091213 20:24:19 InnoDB: Shutdown completed; log sequence number 0 44233
091213 20:24:19 [Note]
091213 20:24:19 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
mysql_install_db
root@localhost tmp
Installing MySQL system tables...
091213 20:18:42 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 641 error messages.
Check that the above file is the right version for this program!
091213 20:18:42 [ERROR] Aborting
091213 20:18:42 [Note]
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/libexec/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com/. Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
mysql_secure_installation
root@localhost tmp
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Enter current password for root (enter for none):
mysql_upgrade
root@localhost tmp
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
Доп.
Те пакеты, что шли в дистрибутиве, версия вроде 5.0.77 если память не изменяет, поставились отлично при установке линукса.
Я решил обновиться.Снес старое,с тавлю новое и вот такая история. Что посоветуете? Будем считать что откат на старую версию это самый последний запасной вариант. Хочу новую версию!
наверно, не стоит совершать классическую ошибку нефитов, делая из стабильной отлаженной системы лоскутное одеяло·
поставили дистрибутив такой-то версии — пользуйтесь программами из официального репозитория этой версии дистрибутива·
поставили дистрибутив такой-то версии — пользуйтесь программами из официального репозитория этой версии дистрибутива·
проблема в том что в центосе нет новых версий пакетов, а иногда(правда редко) они необходимы
это говорит о том, что при постановке задачи был неверно выбран требующийся показатель «нестабильность+свежесть+количество пакетов»·
у redhat этот показатель самый низкий (среди популярных дистрибутивов)· самый высокий, пожалуй, делят gentoo и ubuntu·
правильно ставьте задачу и правильно подбирайте инструмент для её реализации — и будет вам счастье·
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
090504 11:38:31 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
при постановке задачи был неверно выбран требующийся показатель «нестабильность+свежесть+количество пакетов»·
у redhat этот показатель самый низкий (среди популярных дистрибутивов)· самый высокий, пожалуй, делят gentoo и ubuntu·
правильно ставьте задачу и правильно подбирайте инструмент для её реализации — и будет вам счастье
совершенно верно· и решаемы ровно так, как я и описал — выбором дистрибутива·
собственно, вы своим советом это чётко продемонстрировали — ведь после подключения другого репозитория получается другой дистрибутив·