通过cPanel登录时插入命令phpMyAdmin错误

时间:2014-03-08 16:31:44

标签: sql phpmyadmin cpanel

我通过cPanel登录phpMyAdmin并插入

INSERT INTO `ci`.`categories` (
`cat_id` ,
`cat_name` ,
`cat_shortdesc` ,
`cat_longdesc` ,
`cat_parentid`
 )
 VALUES
 ('1', 'Uncategorized', 'Should be Categorized soon...', 'All the stuff that did not fit     in the main categories.', '0'), 
 ('2', 'Action/Adventure', 'Shoot to kill.', 'Excitement is the bane of our existence. Why not help fulfil that craving?', '0'),
 ('3', 'RPG', 'Play as someone you actually like.', 'RPGs are unique that they existed before computers. Help. I cannot think of descriptions.', '0'), 
 ('4', 'Simulation', 'SIMULATE EVERYTHING', 'Probably from Germany. All sims are from Germany... right?', '0');

我收到了错误

1142 - 针对表'类别'的用户'scottrot'@'localhost'拒绝INSERT命令

我尝试过使用grant用户,但我也被拒绝访问。是因为我通过cPanel凭证登录phpMyAdmin吗?我无法弄清楚如何登录其他SQL帐户。

1 个答案:

答案 0 :(得分:0)

  • 您需要mysql数据库的root用户或具有授予插入权限的权限的用户。