проблема при настройке mysql
vipkat 14 января, 2011 - 11:53
вобщем, поставился мускул нормально, делаю первоначальную настройку, а вон оно как:
204654 lib # emerge --config =dev-db/mysql-5.1.53 Configuring pkg... * Please provide a password for the mysql 'root' user now, * or in the MYSQL_ROOT_PASSWORD env var. * Avoid ["'\_%] characters in the password > * Retype the password > Installing MySQL system tables... 110114 8:55:02 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=mysqld-bin' to avoid this problem. ERROR: 1 Can't create/write to file '/var/lib/mysql/mysql/db.MYI' (Errcode: 13) 110114 8:55:09 [ERROR] Aborting 110114 8:55:09 [Note] /usr/sbin/mysqld: Shutdown complete 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/sbin/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. 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/scripts/mysqlbug script! * ERROR: dev-db/mysql-5.1.53 failed: * Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mysql-5.1.53/temp/mysql_install_db.log * * Call stack: * ebuild.sh, line 56: Called pkg_config * environment, line 9427: Called mysql_pkg_config * environment, line 8963: Called die * The specific snippet of code: * die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log"; * * If you need support, post the output of 'emerge --info =dev-db/mysql-5.1.53', * the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.1.53'. * This ebuild is from an overlay named 'gentoo': '/var/db/pkg/' * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.1.53/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.53/temp/environment'. * S: '/var/tmp/portage/dev-db/mysql-5.1.53/work/mysql-5.1.53'
а вот прикол:
204654 lib # cat /var/log/mysql/mysqld.err cat: /var/log/mysql/mysqld.err: No such file or directory
ну и:
204654 ~ # emerge --info =dev-db/mysql-5.1.53 Portage 2.1.9.31 (default/linux/x86/10.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.18-194.8.1.el5.028stab070.5 i686) ================================================================= System Settings ================================================================= System uname: Timestamp of tree: Thu, 13 Jan 2011 21:30:01 +0000 app-shells/bash: 3.2_p48::funtoo dev-lang/python: 2.5.4-r4, 2.7.1, 3.1.3 dev-util/cmake: 2.8.3-r1 sys-apps/baselayout: 2.0.0-r1::funtoo sys-apps/openrc: 0.3.0.20081113-r2::funtoo sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.63::funtoo sys-devel/automake: 1.10.2::funtoo, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.2::funtoo sys-devel/gcc-config: 1.4.0-r4::funtoo sys-devel/libtool: 2.4-r1 sys-devel/make: 3.81::funtoo virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i486-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i486-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.aiya.ru/pub/gentoo/;" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ================================================================= Package Settings ================================================================= dev-db/mysql-5.1.53 was built with the following: USE="community perl ssl -big-tables -cluster (-debug) -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" CFLAGS="-O2 -mtune=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing" CXXFLAGS="-O2 -march=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-strict-aliasing"
и напоследок:
204654 ~ # mysql_install_db --log-bin=mysqld-bin Installing MySQL system tables... ERROR: 1 Can't create/write to file '/var/lib/mysql/mysql/db.MYI' (Errcode: 13) 110114 9:16:44 [ERROR] Aborting 110114 9:16:44 [Note] /usr/sbin/mysqld: Shutdown complete 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/sbin/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. 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/scripts/mysqlbug script!
»
- Для комментирования войдите или зарегистрируйтесь
Что за gcc странный? emerge
Что за gcc странный?
emerge --info показывай.
тебя только gcc насторожил?
тебя только gcc насторожил? :)
2.6.18-194.8.1.el5.028stab070.5 - что такое el5 ?
Цитата: тебя только gcc
Когда я это писал,здесь был только листинг ошибки сборки совсем другого пакета.Поэтому и было высказано желание увидеть emerge --info.
А что там у него такое...это надо у него спросить.
el5 - это enterprise linux,
el5 - это enterprise linux, специалист вы наш уважаемый, никогда опнвз на рхеле не видели ? зато в каждой теме по бессмысленному ответу :)
Compute:
Bosch M2.8.1 -> custom Bosch M2.8.3 clone from Russia.
Speed about 260 km,Ram 2 pers.,HDD - 70 kg,210 FLOPS ;)
.
Переход на личности detected. Недельный Банреквест.
а эта строка - это просто подпись
согласен, но достало
согласен, но достало
Compute:
Bosch M2.8.1 -> custom Bosch M2.8.3 clone from Russia.
Speed about 260 km,Ram 2 pers.,HDD - 70 kg,210 FLOPS ;)
хмм...
c gloox разобрался, но теперь не настраивается мускул