我試圖上傳我的項目我的機器,而且我從MySQL得到錯誤的是:執行拒絕用戶tisegoco_goitse「@例行的「localhost」命令「tisegoco_tisego.offices
execute command denied to user 'tisegoco_goitse'@'localhost' for routine 'tisegoco_tisego.offices
我授予此用戶在數據庫上的所有權限。
現在我試圖訪問這個程序:
delimiter //
create procedure sample()
begin
select * from tblusers;
end
delimiter ;
和PHP代碼如下:
require ("db.php");
$db = dbConnect();
$result = $db->query("CALL sample()");
echo $db->error;
while(list($id, $city, $address) = $result->fetch_array())
echo "($id) $city: $address <br />";
請幫忙,謝謝。
你是否設法在遠程站點上得到一個簡單的SQL查詢?即$ db-> query(「SELECT version()」); 另外,它可能值得創建一個「離散測試文件夾」進行實驗。而不是在主頁上回顯這些東西。 – 2010-09-04 14:42:43
@JW那$ db-> query(「SELECT version()」);代碼工程 – mneva 2010-09-04 17:48:01