gpt4 book ai didi

mysql - Infobright安装无法使用mysql用户

转载 作者:行者123 更新时间:2023-11-29 23:51:29 25 4
gpt4 key购买 nike

当尝试安装Infobright时,无论我如何尝试,它都说它无法使用mysql用户。

如果我尝试使用 dpkg -i infobright-4.0.7-0-i686-ice.deb,日志包含以下问题:

11:48:16 Installing infobright 4.0.7-0 (i686)
11:48:16 The installer will generate /tmp/ib4.0.7-0-install.log install trace log.
11:48:16 [step: pre (4.0.7-0, 1=upgrade)]
11:48:16 build type: static
11:48:19 [step: postun (4.0.7-0), 1=upgrade]
11:48:19 [step: post (4.0.7-0), 1=configure]
11:48:19 Install with RPM_INSTALL_PREFIX=/usr/local, current prefix=/usr/local/infobright, prefix_actual=/usr/local/infobright-4.0.7-i686
11:48:19 upgrade=
11:48:19 Config file /etc/my-ib.cnf created
11:48:19 sed -e 's+@BH_PORT@+5029+' -e 's+@BH_BASEDIR@+/usr/local/infobright-4.0.7-i686+' -e 's+@BH_SOCK@+/tmp/mysql-ib.sock+' -e 's+@BH_DATADIR@+/usr/local/infobright-4.0.7-i686/data+' < /usr/local/infobright-4.0.7-i686/support-files/my-ib-master.cnf.in > /etc/my-ib-master.cnf
11:48:19 sed -e 's+@BH_PORT@+5029+' -e 's+@BH_BASEDIR@+/usr/local/infobright-4.0.7-i686+' -e 's+@BH_SOCK@+/tmp/mysql-ib.sock+' -e 's+@BH_DATADIR@+/usr/local/infobright-4.0.7-i686/data+' < /usr/local/infobright-4.0.7-i686/support-files/my-ib-slave.cnf.in > /etc/my-ib-slave.cnf
11:48:19 Creating/Updating datadir and cachedir
11:48:19 Creating user mysql and group mysql
groupadd: Gruppe »mysql« existiert bereits.
useradd: Benutzer »mysql« existiert bereits
usermod: Keine Änderungen
11:48:19 Installing default databases
140902 11:48:19 [ERROR] Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!

140902 11:48:19 [ERROR] Aborting

140902 11:48:19 [Note] /usr/local/infobright-4.0.7-i686/bin/mysqld: Shutdown complete

11:48:19 =============ERROR=======================
11:48:19 Failed on infobright initialization. You can investigate /tmp/ib4.0.7-0-install.log and log files from /usr/local/infobright-4.0.7-i686/data.
11:48:19 At this stage the current installation may be broken. You need to uninstall it and
11:48:19 fix the cause before retrying the installation.
11:48:19 Possible reasons for the failure are: LDAP service is running or
11:48:19 system has unsupported glibc but nscd service is not running.
11:48:19 Possible work arounds are: If LDAP is running, you may stop LDAP service prior to the installation.
11:48:19 If you have unsupported glibc, you need to start nscd service prior to the installation.
11:48:19 =========================================

不幸的是,当我尝试从 tarball 安装它时,会发生类似的情况 - 每次都会出现错误 140902 11:48:19 [ERROR] Fatal error: Can't Change to run as user 'mysql' ;请检查用户是否存在!出现,安装无法完成。

Infobright startup error: Fatal error: ,有人似乎有类似的错误,但并没有真正提出问题。有谁知道如何解决这个问题?

另一个不相关的错误似乎是 http://blog.oneiroi.co.uk/linux/mysql/cant-change-to-run-as-user-mysql-please-check-that-the-user-exists/ : 这里,有人说我需要添加mysql-user。但我检查了它,并且该用户存在,我可以作为该用户执行某些操作。不幸的是,我看不到任何方法来解决这个问题。

最佳答案

您可以使用CentOS 6.2或更高版本,其具有更高的glibc版本(2.12)。

从源代码编译似乎是唯一的选择。尝试了一下并成功了。我们需要设置

export LD_LIBRARY_PATH=/usr/local/boost_1_42_0/lib

运行命令之前

bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysql

ICE 服务器现已启动并运行,并且也能够登录客户端。仅缺少 /etc/init.d/mysqd-ib 文件。这样启动和停止服务器非常方便。相信从另一个默认安装复制文件应该可以解决这个问题。会尝试一下。在此期间如有任何建议,欢迎提出

关于mysql - Infobright安装无法使用mysql用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25620767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com