Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Infobright安装无法使用mysql用户_Mysql_Infobright - Fatal编程技术网

Infobright安装无法使用mysql用户

Infobright安装无法使用mysql用户,mysql,infobright,Mysql,Infobright,当尝试安装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

当尝试安装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 =========================================
11:48:16安装infobright 4.0.7-0(i686)
11:48:16安装程序将生成/tmp/ib4.0.7-0-install.log安装跟踪日志。
11:48:16[步骤:pre(4.0.7-0,1=升级)]
11:48:16生成类型:静态
11:48:19[步骤:poston(4.0.7-0),1=升级]
11:48:19[步骤:post(4.0.7-0),1=配置]
11:48:19使用RPM安装前缀=/usr/local,当前前缀=/usr/local/infobright,前缀实际=/usr/local/infobright-4.0.7-i686
11:48:19升级=
11:48:19已创建配置文件/etc/my-ib.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+'/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+'/etc/my-ib-slave.cnf
11:48:19创建/更新datadir和cachedir
11:48:19创建用户mysql和组mysql
groupadd:Gruppe»mysql«existiert bereits。
useradd:Benutzer»mysql«existiert bereits
usermod:KeineÄnderungen
11:48:19安装默认数据库
140902 11:48:19[错误]致命错误:无法更改为以用户“mysql”身份运行;请检查用户是否存在!
140902 11:48:19[错误]正在中止
140902 11:48:19[注]/usr/local/infobright-4.0.7-i686/bin/mysqld:关闭完成
11:48:19=============错误=======================
11:48:19 infobright初始化失败。您可以调查/tmp/ib4.0.7-0-install.log和/usr/local/infobright-4.0.7-i686/data中的日志文件。
11:48:19在此阶段,当前安装可能会中断。您需要卸载它并
11:48:19在重试安装之前,请修复原因。
11:48:19失败的可能原因是:LDAP服务正在运行或
11:48:19系统具有不受支持的glibc,但nscd服务未运行。
11:48:19可能的解决方法是:如果LDAP正在运行,您可以在安装之前停止LDAP服务。
11:48:19如果您有不支持的glibc,则需要在安装之前启动nscd服务。
11:48:19 =========================================
不幸的是,当我试图从tarball安装它时,类似的事情发生了——每次,错误
140902 11:48:19[错误]致命错误:无法更改为以用户“mysql”的身份运行;请检查用户是否存在出现,安装无法完成

事实上,有些人似乎也有类似的错误,但并没有真正提出这个问题。有人知道如何解决这个问题吗


另一个不相关的错误似乎是:这里,有人说我需要添加mysql用户。但是我检查了它,用户存在一个我可以作为这个用户做一些事情的窗口。很遗憾,我找不到任何方法来解决这个问题。

您可以使用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
文件丢失。这样启动和停止服务器非常方便。请相信,从另一个默认安装复制文件应该可以解决这一问题。我会试试的。欢迎在此期间提出任何建议