請教各位
我的使用環境為:
作業系統:Redhat 8.1
phpBB 2.0.6
資料庫格式:MySQL 4.x
按「開始安裝」後,
Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/phpBB2/db/mysql4.php on line 48
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /var/www/html/phpBB2/db/mysql4.php on line 48
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /var/www/html/phpBB2/db/mysql4.php on line 330
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /var/www/html/phpBB2/db/mysql4.php on line 331
phpBB : Critical Error
Could not connect to the database
-測試建立的資料庫與帳號是可以使用\r
請高手們幫忙解決!
[問題]關於安裝phpBB2安裝發生問題!help
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
測試建立的資料庫與帳號是...
帳號: phpbbuser
資料庫:phpbb2
[root@test root]# mysql -u phpbbuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.0.16-stardard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> connect phpbb2;
Connection id: 5
Current database: phpbb2
mysql> exit
Bye
1.資料庫沒開
開了...
2.資料庫使用者不被與許〈沒權限〉
[root@test root]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-stardard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database phpbb2;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on phpbb2.* to phpbbuser@localhost identified by 'your.password' ;
Query OK, 0 rows affected (0.01 sec)
mysql> exit
3.密碼打錯.....=.=
沒錯...
我電腦真的找不到 file '/var/lib/mysql/mysql.sock'..是什樣create..????
Thanks!!
帳號: phpbbuser
資料庫:phpbb2
[root@test root]# mysql -u phpbbuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.0.16-stardard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> connect phpbb2;
Connection id: 5
Current database: phpbb2
mysql> exit
Bye
1.資料庫沒開
開了...
2.資料庫使用者不被與許〈沒權限〉
[root@test root]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.16-stardard-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database phpbb2;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on phpbb2.* to phpbbuser@localhost identified by 'your.password' ;
Query OK, 0 rows affected (0.01 sec)
mysql> exit
3.密碼打錯.....=.=
沒錯...
我電腦真的找不到 file '/var/lib/mysql/mysql.sock'..是什樣create..????
Thanks!!

