简体   繁体   中英

MySQL db import error

I got an error 1064 when importin a database from my old host into my new host through php myadmin.

Can you please help me to resolve this?

SQL query:

 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 said:

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 

Full Query

--
-- 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`

Just to let all of you know, the problem was in phpmyadmin.

Database was too large, I managed to import it through ssh without a problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM