1 頁 (共 1 頁)

[Linux]mysql帳號密碼及php安裝問題

發表於 : 2004-03-03 16:32
pireer
●架設主機作業系統:Linux(RedHat9)。
●免費空間連結:無\r
●您的上網方式:ADSL。
●您安裝的程式:Apache2.0.48 + php4.3.4 + MySql3.23.57
●您的 phpBB2 版本:尚未安裝

詳細說明:
1.LINUX安裝時是選全部安裝.
2.apache是後來另外下載安裝.不是用linux本身的.
3.安裝順序
一.安裝linux全部安裝.....ok
二.安裝apache2.0.48....網頁可看到中文安裝好的畫面..ok
三.安裝MySql3.23.57.建立好帳號.文字視窗有出現welcome的訊息..ok
四.安裝php4.3.4.此時出現下列錯誤訊息......error

●錯誤代碼:
1.安裝PHP出現隻錯誤碼\r

代碼: 選擇全部

 Configuring SAPI modules 
checking for AOLserver support... no 
checking for Apache 1.x module support via DSO through APXS... no 
checking for Apache 1.x module support... no 
checking for member fd in BUFF *... no 
checking for mod_charset compatibility option... no 
checking for Apache 2.0 filter-module support via DSO through APXS... no 
checking for Apache 2.0 handler-module support via DSO through APXS... 

Sorry, I cannot run apxs. Possible reasons follow: 

1. Perl is not installed 
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 
3. Apache was not built using --enable-so (the apxs usage page is displayed) 

The output of /usr/local/apache2/bin/apxs follows: 
./configure: line 5080: /usr/local/apache2/bin/apxs: No such file or directory 
configure: error: Aborting 
2.請問MYSQL怎麼更改已設定好的帳號密碼.
例如:建立 MySQL 的 root 帳號密碼!
[root@test mysql]# /usr/local/mysql/bin/mysqladmin -u root password 'your.password'.
那我怎麼把執行完上述指令後的帳號密碼更改?

請各位前輩指導...謝謝

發表於 : 2004-03-03 18:27
pireer
php錯誤碼已解決...
原因:因為apache2這邊路徑錯誤
The output of /usr/local/apache2/bin/apxs follows:
./configure: line 5080: /usr/local/apache2/bin/apxs: No such file or directory
configure: error: Aborting \r

我的路徑是apache.所以改成apache就可以了

mysql的部分還沒 = =.
麻煩大大們了.

發表於 : 2004-03-21 16:12
gmobug
路徑/mysqladmin -u root -p password '新密碼'
按Enter後他會跟你要密碼,你就輸入之前的,然後就好了...