我试图上传我的项目我的机器,而且我从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