kisil,
Все выводы Вами запрошенные есть выше. У ТС как выяснилось установлена только клиентская часть, а сервера он не установил
kisil,
Сорри, сообщение 39 было предназначено ТС, а не Вам. Моя ошибка, забыл ник сверху влепить
Проблема с mysql+php в Сentos 5.4
[root@Evil-Server1 bin]# yum remove mysql
Loaded plugins: downloadonly, fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_4.2 set to be erased
---> Package mysql.x86_64 0:5.0.91-1.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
mysql i386 5.0.77-4.el5_4.2 installed 7.9 M
mysql x86_64 5.0.91-1.el5 installed 4.7 M
Transaction Summary
================================================================================
Remove 2 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : mysql 1/2
Erasing : mysql 2/2
Removed:
mysql.i386 0:5.0.77-4.el5_4.2 mysql.x86_64 0:5.0.91-1.el5
Complete!
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
ошибка: Неудовлетворенные зависимости:
mysql = 5.0.91-1.el5 нужен для mysql-server-5.0.91-1.el5.x86_64
perl-DBD-MySQL нужен для mysql-server-5.0.91-1.el5.x86_64
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
ошибка: Неудовлетворенные зависимости:
mysql = 5.0.91-1.el5 нужен для mysql-server-5.0.91-1.el5.x86_64
perl-DBD-MySQL нужен для mysql-server-5.0.91-1.el5.x86_64
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-5.0.91-1.el5.x86_64.rpm
Подготовка... ########################################### [100%]
1:mysql ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
ошибка: Неудовлетворенные зависимости:
perl-DBD-MySQL нужен для mysql-server-5.0.91-1.el5.x86_64
[root@Evil-Server1 bin]# yum install perl-DBD-mysql
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* addons: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
* base: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
* epel: [url=ftp://ftp.uni-koeln.de]ftp.uni-koeln.de[/url]
* extras: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
* updates: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
perl-DBD-MySQL x86_64 3.0007-2.el5 base 148 k
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 148 k
Is this ok [y/N]: y
Downloading Packages:
perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm | 148 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBD-MySQL 1/1
Installed:
perl-DBD-MySQL.x86_64 0:3.0007-2.el5
Complete!
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-server-5.0.91-1.el5.x86_64.rpm
Подготовка... ########################################### [100%]
1:mysql-server ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-devel-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-devel-5.0.91-1.el5.x86_64.rpm
Подготовка... ########################################### [100%]
1:mysql-devel ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/mysql-bench-5.0.91-1.el5.x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/5/x86_64/mysql-bench-5.0.91-1.el5.x86_64.rpm
Подготовка... ########################################### [100%]
1:mysql-bench ########################################### [100%]
[root@Evil-Server1 bin]# service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Запускается MySQL: [ СБОЙ ]
что то ещё я наверн упустил :rolleyes:
shinobi-sk8,
А вот теперь нужно смотреть логи. /var/log/mysqld.log
содержимое лог файла
100529 01:05:13 mysqld ended
oO
shinobi-sk8,
Ну, не знаю... Давайте подождем спецов по CentOS
ещё пара вопросов есть))
как сделать чтоб index.html страница была загрузочной по умолчанию?(типа http://cs.evil-game.ru/index.html )
ещё с кодировкой проблема, квадратики вылазят какието вместо рус букв oO
можкт чтото здесь нетак? oO
[root@Evil-Server1 ~]# mysql_install_db
WARNING: The host 'Evil-Server1' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
100530 1:04:37 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 481 error messages.
Check that the above file is the right version for this program!
100530 1:04:37 [ERROR] Aborting
Installation of system tables failed!
Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/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 is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
всё упираеться похоже в ошибку что 480 error mesages а не 481 О_о
mysql_secure_installation
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):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
файла /var/lib/mysql/mysql.sock нету
блин я бот тупой :lol:
всё удалив установил заного и всё заработало
ВСЕМ СПАСИБО КТО ТРАТИЛ ВРЕМЯ на мну))) :D
shinobi-sk8,
Поздравляю!
теперь др проблема хД php не хочет запускатся(или интегрироваться в апач2, хз как там) :(
вроде всё проинсталировал О_о
протестив заметил что пхп не полностью неработает, при попытке отобразить phpinfo ничего не выдаёт =\
<?phpinfo()?>
хотя при этом
[root@Evil-Server1 ~]# php -v
PHP 5.3.2 (cli) (built: Apr 6 2010 02:23:56)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
shinobi-sk8,
<?phpinfo();?>
http://maxided.com/php_centos.html
shinobi-sk8,
И вот еще что. Попробуйте запустить ваш файл из командной строки:
php <имя_файла>всё сделал по инструкции...
[root@Evil-Server1 html]# httpd -t -D DUMP_MODULES
httpd: apr_sockaddr_info_get() failed for Evil-Server1
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
auth_basic_module (shared)
auth_digest_module (shared)
authn_file_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authz_host_module (shared)
authz_user_module (shared)
authz_owner_module (shared)
authz_groupfile_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
ldap_module (shared)
authnz_ldap_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
ext_filter_module (shared)
mime_magic_module (shared)
expires_module (shared)
deflate_module (shared)
headers_module (shared)
usertrack_module (shared)
setenvif_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
info_module (shared)
dav_fs_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
speling_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_connect_module (shared)
cache_module (shared)
suexec_module (shared)
disk_cache_module (shared)
file_cache_module (shared)
mem_cache_module (shared)
cgi_module (shared)
php5_module (shared)
proxy_ajp_module (shared)
Syntax OK
[root@Evil-Server1 html]# php phpinfo.php
<?phpinfo();?>[root@Evil-Server1 html]#
=(((
ещё при установке zend optimizer выдало
[root@Evil-Server1 html]# tar –xvvf ZendOptimizer-3.3.3.tar.gz
tar: неверная опция -- -
Попробуйте `tar --help' или `tar --usage' для
получения дополнительной информации.
[root@Evil-Server1 html]# tar –-xvvf ZendOptimizer-3.3.3.tar.gz
tar: неверная опция -- -
Попробуйте `tar --help' или `tar --usage' для
получения дополнительной информации.
lqqqqqqqqqqqqqqqqqqqqqqqqqqqZend Optimizer 3.3.3qqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x Installation has detected PHP version 5.3.2. x
x This version is not compatible with the Zend Optimizer 3.3.3. x
x The installation process will continue but in order for the Zend Optimizer x
x to load you must switch to a compatible PHP version. x
x x
x For a detailed compatibility table please refer to x
x http://www.zend.com/store/products/product_compatibility.php x
x x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x < OK > x
ужс ставил стандартный вроде пхп
ещё и сылка открывает ваще главную страницу сайта :lol:
[root@Evil-Server1 /]# php -v
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS
PHP 5.3.2 (cli) (built: Apr 6 2010 02:23:56)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
shinobi-sk8, а если так
service mysql.server start?