精華區beta FreeBSD 關於我們 聯絡資訊
之前用ports安裝都沒有問題 這次是按照ohaha的方法安裝mysql323-server 出現下面的錯誤: ===> Installing for mysql-server-3.23.54 ===> mysql-server-3.23.54 depends on executable: mysql - found ===> mysql-server-3.23.54 depends on file: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm - found You appear to already have a mysql database directory in /var/db/mysql. In order to preserve your existing data, you should: - dump all your databases - kill mysql if it is running - delete the /var/db/mysql directory - run 'make install' - start up mysql - re-create all of your database - re-load your data If you understand the consequences of this upgrade, please re-build this port with the environment variable OVERWRITE_DB defined. *** Error code 1 Stop in /usr/ports/databases/mysql323-server. 請問一下怎麼辦呢? 還有!有這麼多的ports(工具) 那裡有他們的說明與使用方法ㄚ! man了也沒有說! 是不是要等安裝完之後才知道呢? 這樣子不是很奇怪嗎? -- 小弟是初學者,請多多見諒..^^" -- -- ┌─────KKCITY─────┐  ̄ ▌ ̄ ╲╱ BBS 城邦 bbs.kkcity.com.tw ╴ ▌ ▌ ▏ KK免費撥接 └──From:140.121.135.250 ──┘ http://www.kkcity.com.tw/freeisp/ > -------------------------------------------------------------------------- < 發信人: [email protected] (Yen-Ming Lee), 看板: FreeBSD 標 題: Re: mysql 發信站: 臥龍居 (Mon Feb 10 03:14:32 2003) 轉信站: Ptt!news.ntu!freebsd.ntu!netnews.csie.nctu!news.civil.ncku!news.leeym. ※ 引述《[email protected]》之銘言: : 之前用ports安裝都沒有問題 : 這次是按照ohaha的方法安裝mysql323-server : 出現下面的錯誤: : ===> Installing for mysql-server-3.23.54 : ===> mysql-server-3.23.54 depends on executable: mysql - found : ===> mysql-server-3.23.54 depends on file: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm - found : You appear to already have a mysql database directory in /var/db/mysql. : In order to preserve your existing data, you should: : - dump all your databases : - kill mysql if it is running : - delete the /var/db/mysql directory : - run 'make install' : - start up mysql : - re-create all of your database : - re-load your data : If you understand the consequences of this upgrade, please re-build this : port with the environment variable OVERWRITE_DB defined. : *** Error code 1 : Stop in /usr/ports/databases/mysql323-server. : 請問一下怎麼辦呢? 你的 /var/db/mysql 已經存在, 而安裝 mysql 時會嘗試建立新的資料庫目錄, 所以到了建立資料庫的時候就會出問題. 你可以按照上面說的, 把 mysql 的資料 dump 出來, 重新安裝 mysql, 然後在塞回去. 或者 make OVERWRITE_DB=yes install, 這樣會把舊的資料清光, 建立一個新的資料庫. 要不然, 不考慮資料安全性問題的話, make SKIP_INSTALL_DB=yes install 會跳過 建立資料庫這個步驟. : 還有!有這麼多的ports(工具) : 那裡有他們的說明與使用方法ㄚ! : man了也沒有說! : 是不是要等安裝完之後才知道呢? : 這樣子不是很奇怪嗎? manpage 當然得安裝完以後才有囉. 如果你想知道某一個 port 是不是符合你的需求的話, 直接看該軟體的首頁比較快. -- Yen-Ming Lee [李彥明] | http://www.leeym.com/ -- ※ From: utopia.leeym.com > -------------------------------------------------------------------------- < 發信人: [email protected] (等待), 看板: FreeBSD 標 題: Re: mysql 發信站: KKCITY (Mon Feb 10 04:05:53 2003) 轉信站: Ptt!news.ntu!bbs.ee.ntu!news.ee.ntu!news.kkcity.com.tw!KKCITY ※ 引述《[email protected] (Yen-Ming Lee)》之銘言: > ※ 引述《[email protected]》之銘言: > : 之前用ports安裝都沒有問題 > : 這次是按照ohaha的方法安裝mysql323-server > : 出現下面的錯誤: > : ===> Installing for mysql-server-3.23.54 > : ===> mysql-server-3.23.54 depends on executable: mysql - found > : ===> mysql-server-3.23.54 depends on file: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Mysql.pm - found > : You appear to already have a mysql database directory in /var/db/mysql. > : In order to preserve your existing data, you should: > : - dump all your databases > : - kill mysql if it is running > : - delete the /var/db/mysql directory > : - run 'make install' > : - start up mysql > : - re-create all of your database > : - re-load your data > : If you understand the consequences of this upgrade, please re-build this > : port with the environment variable OVERWRITE_DB defined. > : *** Error code 1 > : Stop in /usr/ports/databases/mysql323-server. > : 請問一下怎麼辦呢? > 你的 /var/db/mysql 已經存在, 而安裝 mysql 時會嘗試建立新的資料庫目錄, > 所以到了建立資料庫的時候就會出問題. > 你可以按照上面說的, 把 mysql 的資料 dump 出來, 重新安裝 mysql, 然後在塞回去. > 或者 make OVERWRITE_DB=yes install, 這樣會把舊的資料清光, 建立一個新的資料庫. > 要不然, 不考慮資料安全性問題的話, make SKIP_INSTALL_DB=yes install 會跳過 > 建立資料庫這個步驟. > : 還有!有這麼多的ports(工具) > : 那裡有他們的說明與使用方法ㄚ! > : man了也沒有說! > : 是不是要等安裝完之後才知道呢? > : 這樣子不是很奇怪嗎? > manpage 當然得安裝完以後才有囉. > 如果你想知道某一個 port 是不是符合你的需求的話, 直接看該軟體的首頁比較快. 謝謝你的回答!^^ 我已經把/var/db/mysql給砍了.. make deinstall 再重新make install一次: 結果又出現: Added group "mysql". pw: user 'mysql' already exists Adding user "mysql" failed... 這個訊息! 到/etc/group 把mysql給砍了! 把master.passwd的mysql給消掉 /var/da/mysql殺掉 rmuser 也沒有 mysql 這個名字說.. make deinstall 最後再make install!還是失敗..>"< 出現相同的錯誤訊息.. 而且在group裡面會出現:mysql:*:88: 這個名稱.. -- ┌─────KKCITY─────┐  ̄ ▌ ̄ ╲╱ BBS 城邦 bbs.kkcity.com.tw ╴ ▌ ▌ ▏ KK免費撥接 └──From:140.121.135.250 ──┘ 電話:40586000 帳號:kkcity 密碼:kkcity > -------------------------------------------------------------------------- < 發信人: [email protected] (新的起跑點), 看板: FreeBSD 標 題: Re: mysql 發信站: 不良牛牧場 (Mon Feb 10 12:00:08 2003) 轉信站: Ptt!news.ntu!bbs.ee.ntu!news.ee.ntu!SimFarm ※ 引述《[email protected] (等待)》之銘言: : ※ 引述《[email protected] (Yen-Ming Lee)》之銘言: : > 你的 /var/db/mysql 已經存在, 而安裝 mysql 時會嘗試建立新的資料庫目錄, : > 所以到了建立資料庫的時候就會出問題. : > 你可以按照上面說的, 把 mysql 的資料 dump 出來, 重新安裝 mysql, 然後在塞回去. : > 或者 make OVERWRITE_DB=yes install, 這樣會把舊的資料清光, 建立一個新的資料庫. : > 要不然, 不考慮資料安全性問題的話, make SKIP_INSTALL_DB=yes install 會跳過 : > 建立資料庫這個步驟. : > manpage 當然得安裝完以後才有囉. : > 如果你想知道某一個 port 是不是符合你的需求的話, 直接看該軟體的首頁比較快. : 謝謝你的回答!^^ : 我已經把/var/db/mysql給砍了.. : make deinstall : 再重新make install一次: : 結果又出現: : Added group "mysql". : pw: user 'mysql' already exists : Adding user "mysql" failed... : 這個訊息! : 到/etc/group : 把mysql給砍了! 這樣做沒有用的 下這個指令 pw groupdel mysql : 把master.passwd的mysql給消掉 : /var/da/mysql殺掉 : rmuser 也沒有 mysql 這個名字說.. : make deinstall : 最後再make install!還是失敗..>"< : 出現相同的錯誤訊息.. : 而且在group裡面會出現:mysql:*:88: : 這個名稱.. -- ╭──── Origin:<不良牛牧場> bbs.badcow.com.tw (210.200.247.200)─────╮ Welcome to SimFarm BBS -- From : [privacy.m7.ntu.edu.tw] ◣◣◢ ◢◢不良牛免費撥接→電話:40586000→帳號:zoo→密碼:zoo ◣◣─╯