31 (29.05.2010 22:41:59 отредактировано )

[root@Evil-Server1 ~]# yum install mysql
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.cvut.cz
* base: ftp.cvut.cz
* epel: mirror01.th.ifl.net
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
CentALT                                                  |  951 B     00:00
addons                                                   |  951 B     00:00
base                                                     | 1.1 kB     00:00
epel                                                     | 3.4 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_4.2 set to be updated
---> Package mysql.x86_64 0:5.0.91-1.el5 set to be updated
--> Processing Dependency: mysql-libs = 5.0.91-1.el5 for package: mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: mysql
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: mysql
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.0.91-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package           Arch          Version                   Repository      Size
================================================================================
Installing:
mysql             i386          5.0.77-4.el5_4.2          base           4.8 M
mysql             x86_64        5.0.91-1.el5              CentALT        3.5 M
Installing for dependencies:
mysql-libs        x86_64        5.0.91-1.el5              CentALT        1.8 M

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total size: 10 M
Total download size: 4.8 M
Is this ok [y/N]: y
Downloading Packages:
mysql-5.0.77-4.el5_4.2.i386.rpm                          | 4.8 MB     00:23
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysql-libs                                               1/3
  Installing     : mysql                                                    2/3
  Installing     : mysql                                                    3/3

Installed:
  mysql.i386 0:5.0.77-4.el5_4.2           mysql.x86_64 0:5.0.91-1.el5

Dependency Installed:
  mysql-libs.x86_64 0:5.0.91-1.el5

Complete!

[root@Evil-Server1 ~]# service mysqld start
mysqld: нераспознанная служба

oO

или я туплю или линукс, одно из двух :lol:

32

shinobi-sk8,
Еще раз проверьте наличие где-либо mysqld

33

всё также((((

[root@Evil-Server1 ~]# whereis mysqld
mysqld:
[root@Evil-Server1 ~]# whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

жесть, на винде не было таких запар :rolleyes:

34

ls в каталоге /usr/bin/ и покажите все файлы что относятса к mysql. А также ls в каталогах /etc/init.d/     /etc/rc.d.

Trouble  in WINDOWS reboot, trouble in UNIX be root.

35

shinobi-sk8,
У меня в SuSE тоже таких запарок нет ab . А, может, существует вдобавок пакет mysqld ? Скажем, то, что Вы установили - это клиентская часть, а есть еще серверная

36 (29.05.2010 22:55:33 отредактировано shinobi-sk8)

[root@Evil-Server1 bin]# cd ../
[root@Evil-Server1 usr]# cd ../
[root@Evil-Server1 /]# cd etc/init.d/
[root@Evil-Server1 init.d]# ls
acpid               hidd            network          saslauthd
anacron             hlds_runscript  NetworkManager   setroubleshoot
atd                 httpd           nfs              single
auditd              ip6tables       nfslock          smartd
autofs              ipmi            nginx            smb
avahi-daemon        iptables        nscd             squid
avahi-dnsconfd      irda            ntpd             sshd
bluetooth           irqbalance      oddjobd          syslog
capi                isdn            pand             tcsd
conman              kdump           pcscd            tux
cpuspeed            killall         php-fpm          vsftpd
crond               krb524          portmap          webmin
cups                kudzu           psacct           winbind
cups-config-daemon  lvm2-monitor    rawdevices       wpa_supplicant
dc_client           mcstrans        rdisc            xfs
dc_server           messagebus      readahead_early  xinetd
dnsmasq             microcode_ctl   readahead_later  ypbind
dund                multipathd      restorecond      yum-cron
functions           named           rpcgssd          yum-updatesd
gpm                 netconsole      rpcidmapd
haldaemon           netfs           rpcsvcgssd
halt                netplugd        rwhod
[root@Evil-Server1 init.d]# cd ../
[root@Evil-Server1 etc]# cd ../
[root@Evil-Server1 /]# cd /etc/rc.d
[root@Evil-Server1 rc.d]# ls
init.d  rc0.d  rc2.d  rc4.d  rc6.d     rc.sysinit
rc      rc1.d  rc3.d  rc5.d  rc.local

в  /usr/bin/ не хочет список полностью выводить или он большой оч =\

tclsh8.4
tdbbackup
tdbdump
tdbtool
tee
telnet
test
testlibraw
testparm
test-speech
tfmtodit
tgatoppm
tgz
themus-theme-applier
thinkjettopbm
thumbnail
tic
tiff2bw
tiff2pdf
tiff2ps
tiff2rgba
tiffcmp
tiffcp
tiffdiff
tiffdither
tiffdump
tifficc
tiffinfo
tiffmedian
tiffset
tiffsplit
tifftopnm
time
tload
toc2cddb
toc2cue
toe
top
tput
tr
tree
troff
tset
tsort
ttmkfdir
tty
type1afm
tzselect
ucs2any
udevinfo
udevtest
udffsck
ul
uncompress
unexpand
uniq
unix2dos
unix-lpr.sh
unprotoize
unzip
unzipsfx
updatedb
update-desktop-database
update-gdk-pixbuf-loaders
update-gtk-immodules
update-mime-database
uptime
urlgrabber
userformat
userinfo
usermount
userpasswd
users
utmpdump
uuidgen
uz
vbox
vboxbeep
vboxcnvt
vboxctrl
vboxmail
vboxmode
vboxplay
vboxtoau
vdir
vim
vimdiff
vimtutor
vino-preferences
vmstat
vncviewer
volname
w
wall
watch
wbinfo
wbmptopbm
wc
wftopfa
wget
whatis
whereis
which
whiptail
who
whoami
whois
winicontoppm
wmf2eps
wmf2fig
wmf2gd
wmf2svg
wmf2x
word-list-compress
write
wrjpgcom
wrudf
wtpt
wvdial
wvdialconf
X
x86_64
x86_64-redhat-linux-c++
x86_64-redhat-linux-g++
x86_64-redhat-linux-gcc
xargs
xauth
xbmtopbm
xcam
xcmsdb
xdelta
xdpyinfo
xdriinfo
xev
xfd
xfontsel
xfs
xgamma
xgettext
xglyph
xhost
ximtoppm
xinit
xkbbell
xkbcomp
xkbevd
xkbprint
xkbvleds
xkbwatch
xlsatoms
xlsclients
xlsfonts
xminicom
xmkmf
xml2po
xmlcatalog
xmllint
xmlproc_parse
xmlproc_val
xmlwf
xmodmap
Xnest
Xorg
xorg-x11-filesystem-upgrade
xpmtoppm
xprop
xrandr
xrdb
xrefresh
xsane
xsane-gimp
xset
xsetmode
xsetpointer
xsetroot
xsltproc
xsri
xstdcmap
xsubpp
xtrapchar
xtrapin
xtrapinfo
xtrapout
xtrapproto
xtrapreset
xtrapstats
xulrunner
xvidtune
xvinfo
xvminitoppm
xwdtopnm
xwininfo
xxd
ybmtopbm
yelp
yes
ypcat
ypchfn
ypchsh
ypmatch
yppasswd
ypwhich
yum
yuvsplittoppm
yuvtoppm
zcmp
zdiff
zegrep
zeisstopnm
zenity
zfgrep
zforce
zgrep
zip
zipcloak
zipgrep
zipinfo
zipnote
zipsplit
zless
zmore
znew
zsoelim

[root@Evil-Server1 bin]# yum install mysqld
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.cvut.cz
* base: ftp.cvut.cz
* epel: ftp.uni-koeln.de
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
Setting up Install Process
No package mysqld available.
Nothing to do

ужс)) ща попробуй через rpm -ivh поставить пакет с http://centos.alt.ru/repository/centos/5/x86_64/ мб поможет oO

37

Прочтите:

http://olemskoi.ru/node/3

38

посмотрел на ftp://ftp.cvut.cz/centos/5/os/i386/CentOS/ так попробуй доставить ещё пакеты
mysql-server-5.0.77-4.el5_4.2.i386.rpm, mysql-devel-5.0.77-4.el5_4.2.i386.rpm, mysql-bench-5.0.77-4.el5_4.2.i386.rpm

Trouble  in WINDOWS reboot, trouble in UNIX be root.

39

Пакет называется mysql-server

40 (29.05.2010 22:59:38 отредактировано )

Я просил вывод всех файлов которые имеют в названиий часть mysql из каталога /usr/bin.

Hvzh пишет:

Пакет называется mysql-server

Именно я просто скопировал назвы пакетов.

Trouble  in WINDOWS reboot, trouble in UNIX be root.

41 (29.05.2010 23:02:14 отредактировано )

kisil,
Все выводы Вами запрошенные есть выше. У  ТС как выяснилось установлена только клиентская часть, а сервера он не установил

kisil,
Сорри, сообщение 39 было предназначено ТС, а не Вам. Моя ошибка, забыл ник сверху влепить

42

[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/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … 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/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … 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/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … x86_64.rpm
Подготовка...     ########################################### [100%]
   1:mysql                  ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … 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: ftp.cvut.cz
* base: ftp.cvut.cz
* epel: ftp.uni-koeln.de
* extras: ftp.cvut.cz
* updates: ftp.cvut.cz
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/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … x86_64.rpm
Подготовка...     ########################################### [100%]
   1:mysql-server           ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … x86_64.rpm
Подготовка...     ########################################### [100%]
   1:mysql-devel            ########################################### [100%]
[root@Evil-Server1 bin]# rpm -ivh http://centos.alt.ru/repository/centos/ … x86_64.rpm
Загружается http://centos.alt.ru/repository/centos/ … 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:

43

shinobi-sk8,
А вот теперь нужно смотреть логи. /var/log/mysqld.log

44

содержимое лог файла

100529 01:05:13  mysqld ended

oO

45

shinobi-sk8,
Ну, не знаю... Давайте подождем спецов по CentOS

46 (29.05.2010 23:55:44 отредактировано shinobi-sk8)

ещё пара вопросов есть))
как сделать чтоб index.html страница была загрузочной по умолчанию?(типа http://cs.evil-game.ru/index.html )

ещё с кодировкой проблема, квадратики вылазят какието вместо рус букв  oO

47 (30.05.2010 00:00:19 отредактировано )

shinobi-sk8,
Это нужно править конфигурационный файл apache

Почитайте вот здесь

48 (30.05.2010 01:50:04 отредактировано )

можкт чтото здесь нетак? 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:
всё удалив установил заного и всё заработало

ВСЕМ СПАСИБО КТО ТРАТИЛ ВРЕМЯ на мну))) ag

49

shinobi-sk8,
Поздравляю!

50 (30.05.2010 03:54:41 отредактировано )

теперь др проблема хД php не хочет запускатся(или интегрироваться в апач2, не знаю как там) ac
вроде всё проинсталировал О_о

протестив заметил что пхп не полностью неработает, при попытке отобразить 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

51

shinobi-sk8,
<?phpinfo();?>

52

http://host.evil-game.ru/phpinfo.php

53 (30.05.2010 10:51:39 отредактировано )

http://maxided.com/php_centos.html

shinobi-sk8,
И вот еще что. Попробуйте запустить ваш файл из командной строки:

php <имя_файла>

54 (31.05.2010 01:21:50 отредактировано )

всё сделал по инструкции...

[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/prod … bility.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

55

shinobi-sk8, а если так

service mysql.server start

?