提示如下:
数据库出现了一个致命且不可恢复的错误。这可能是由于您指定的用户没有 CREATE TABLES 或 INSERT 的权限等等,下面可能会给出进一步的信息。请首先考虑联络您的服务供应商,或是访问phpBB支持论坛,以得到进一步帮助。
install_install.php [ 1230 ]
SQL : INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('我的第一个分区', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '')
[Microsoft][SQL Server Native Client 10.0][SQL Server]'Admin' ��������������
在SQL SERVER PHPBB3数据库 中创建架构名为:myclub_JG 数据库PHPBB3用户名:myclub SQL SERVER 登陆名:myclub
数据库PHPBB3用户myclub 默认架构为:myclub_JP
在数据库PHPBB3用户myclub 查看属性 -> 安全对象->myclub_JP 架构 权限 “授予"全先中。
请问这样是不是已经设置myclub 用户具有create ,insert 等权限了?
还是SQL 语句格式在SQL 2008中不通知。(在MySQL安装成功)
盼回复指教。谢谢。
2 个解决方案
#1
看看myclub用户在PHPBB3数据库上是否具备db_owner权限
#2
有。将以上SQL 语句直接在SQL SERVER Management studio 执行是错误的。
改为:
INSERT INTO [phpbb3].[myclub_JG].[phpbb_forums] (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('我的第一个分区', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '')
执行成功。
这么一来,是不是PHPBB中设定的SQL 语句在SQL SERVER 2008 不通用?
改为:
INSERT INTO [phpbb3].[myclub_JG].[phpbb_forums] (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('我的第一个分区', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '')
执行成功。
这么一来,是不是PHPBB中设定的SQL 语句在SQL SERVER 2008 不通用?
#1
看看myclub用户在PHPBB3数据库上是否具备db_owner权限
#2
有。将以上SQL 语句直接在SQL SERVER Management studio 执行是错误的。
改为:
INSERT INTO [phpbb3].[myclub_JG].[phpbb_forums] (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('我的第一个分区', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '')
执行成功。
这么一来,是不是PHPBB中设定的SQL 语句在SQL SERVER 2008 不通用?
改为:
INSERT INTO [phpbb3].[myclub_JG].[phpbb_forums] (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts, forum_topics, forum_topics_real, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents) VALUES ('我的第一个分区', '', 1, 4, 0, 0, 1, 1, 1, 1, 2, 'Admin', 'AA0000', 972086460, '', '', '', '', '', '', '', 0, 0, '')
执行成功。
这么一来,是不是PHPBB中设定的SQL 语句在SQL SERVER 2008 不通用?