LinuxForum.Fans
Тема

Проблема с mysql+php в Сentos 5.4

Автор: shinobi-sk8 55 сообщений 12805 просмотров
#47149

странно, но там такого файла ваще нету? может создать?))

#47151

shinobi-sk8,
Ни в коем разе! smile Хотя странно, судя по выводу команды locate он там есть... Можете прислать вывод содержимого каталога (команда ls)?

#47153
text
[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
#47156

shinobi-sk8,
Н-да... Посмотрите, есть ли такой файл: /usr/bin/mysqld_safe

#47159

есть файлы разные но mysqld_safe нету
сейчас напишу какие с mysql

mysql
mysql_config
mysql_find_rows
mysql_tableinfo
mysql_waitpid
mysqlaccess
mysqladmin
mysqlbinlog
mysqlcheck
mysqldump
mysqlimport
mysqlshow
#47162

попробуйте еще раз команду whereis mysqld и что она на этот раз покажет?

#47165

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

shinobi-sk8,
Похоже, что-то во время инсталляции произошло. Не весь пакет установился (или не все снеслось при деинсталляции)

#47171

попробывать удалить и установить заного?

#47183

[root@Evil-Server1 ~]# yum install 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: mirror01.th.ifl.net
* extras: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
* updates: [url=ftp://ftp.cvut.cz]ftp.cvut.cz[/url]
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:

#47184

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

#47187

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

[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:

#47189

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

#47190

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

#47192

[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: [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
No package mysqld available.
Nothing to do

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

#47196

посмотрел на [url]ftp://ftp.cvut.cz/centos/5/os/i386/CentOS/[/url] так попробуй доставить ещё пакеты
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

#47197

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

#47198

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

Hvzh написал:
Пакет называется mysql-server

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

Войдите или зарегистрируйтесь, чтобы ответить.