MySQL数据库导入错误

时间:2013-07-03 11:10:56

标签: mysql sql phpmyadmin

通过php myadmin从我的旧主机导入数据库到新主机时出现错误1064。

你能帮我解决这个问题吗?

  

SQL查询:

 forum_hrhokej1.sql100777 0 0 1635074240 12165000252 10020 0-- -- Database: `bmikic_hrhokej` -- -- -------------------------------------------------------- -- -- Table structure for table `phpbb_acl_groups` -- CREATE TABLE IF NOT EXISTS `phpbb_acl_groups` ( `group_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `forum_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `auth_option_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `auth_role_id` mediumint(8) unsigned NOT NULL DEFAULT '0', `auth_setting` tinyint(2) NOT NULL DEFAULT '0',[...]
  MySQL说:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'forum_hrhokej1.sql' at line 1 
  

完整查询

--
-- Database: `bmikic_hrhokej.sql`
--

-- --------------------------------------------------------

--
-- Table structure for table `phpbb_acl_groups`
--

CREATE TABLE IF NOT EXISTS `phpbb_acl_groups` (
 `group_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
 `forum_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
 `auth_option_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
 `auth_role_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
 `auth_setting` tinyint(2) NOT NULL DEFAULT '0',
  KEY `group_id` (`group_id`),
KEY `auth_opt_id` (`auth_option_id`),
KEY `auth_role_id` (`auth_role_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `phpbb_acl_groups`

1 个答案:

答案 0 :(得分:0)

只是让大家都知道,问题出在phpmyadmin。

数据库太大了,我设法通过ssh导入它没有问题。