2014-09-02 39 views
0

當試圖安裝Infobright時,無論我嘗試什麼,都說它不能使用mysql用戶。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 '[email protected][email protected]+5029+' -e '[email protected][email protected]+/usr/local/infobright-4.0.7-i686+' -e '[email protected][email protected]+/tmp/mysql-ib.sock+' -e '[email protected][email protected]+/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 '[email protected][email protected]+5029+' -e '[email protected][email protected]+/usr/local/infobright-4.0.7-i686+' -e '[email protected][email protected]+/tmp/mysql-ib.sock+' -e '[email protected][email protected]+/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 ========================================= 

Unforunately,什麼時候我嘗試similiar發生從tarball安裝它 - 每次出現錯誤140902 11:48:19 [ERROR] Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!並且安裝無法完成。

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用戶。但我檢查了它,並且用戶存在一個我能夠做這個用戶的東西。很不幸,我看不出解決這個問題的辦法。

回答

0

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

從源代碼編譯似乎是唯一的選擇。試過,並得到它的工作。我們需要在運行命令

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

ICE服務器現在是啓動並運行之前設置

export LD_LIBRARY_PATH=/usr/local/boost_1_42_0/lib 

,並且我能夠登錄到客戶端也是如此。只有/etc/init.d/mysqd-ib文件丟失。以這種方式啓動和停止服務器非常方便。相信從其他默認安裝複製文件應該可以解決這個問題。將嘗試。在此期間的任何建議都歡迎