我想在我的電腦上安裝WAMP。我打開phpinfo就好了,但是當我嘗試運行testmysql.php時,我得到一個非常空白的頁面。 mysql_connect之前的任何echo語句都可以正常工作,但之後的任何echo語句都不會顯示出來。testmysql.php WAMP設置
testmysql.php:
<?php
echo 'before';
$link = mysql_connect('localhost','root','');
echo 'after';
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK';
mysql_close($link);
?>
日誌精細mysql.log有
130503 14:39:26 [Note] Plugin 'FEDERATED' is disabled.
130503 14:39:26 InnoDB: The InnoDB memory heap is disabled
130503 14:39:26 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130503 14:39:26 InnoDB: Compressed tables use zlib 1.2.3
130503 14:39:26 InnoDB: Initializing buffer pool, size = 128.0M
130503 14:39:26 InnoDB: Completed initialization of buffer pool
130503 14:39:26 InnoDB: highest supported file format is Barracuda.
130503 14:39:26 InnoDB: Waiting for the background threads to start
130503 14:39:27 InnoDB: 1.1.8 started; log sequence number 1595675
130503 14:39:27 [Note] Server hostname (bind-address): '(null)'; port: 3306
130503 14:39:27 [Note] - '(null)' resolves to '::';
130503 14:39:27 [Note] - '(null)' resolves to '0.0.0.0';
130503 14:39:27 [Note] Server socket created on IP: '0.0.0.0'.
130503 14:39:27 [Note] Event Scheduler: Loaded 0 events
130503 14:39:27 [Note] wampmysqld: ready for connections.
Version: '5.5.24-log' socket: '' port: 3306 MySQL Community Server (GPL)
,所以我認爲,問題出在一個實際的IP地址設置MySQL。我該怎麼做呢?
看看:http://stackoverflow.com/questions/2158432/wamp-port-80-busy/16251034#16251034 – 2013-05-06 12:11:10