MySQL错误-ALTER在此位置无效

时间:2019-03-16 17:20:41

标签: mysql mysql-workbench

我正在尝试在 MySQL Workbench 8.0.15 中执行以下查询:

export default createBottomTabNavigator(
  {
    Home: HomeScreen,
    Settings: SettingsScreen,
  },
  {
    defaultNavigationOptions: ({ navigation }) => ({
      tabBarIcon: ({ focused, horizontal, tintColor }) => {
        const { routeName } = navigation.state;
        let IconComponent = Ionicons;
        let iconName;
        if (routeName === 'Home') {
          iconName = `ios-information-circle${focused ? '' : '-outline'}`;
          // Sometimes we want to add badges to some icons. 
          // You can check the implementation below.
          IconComponent = HomeIconWithBadge; 
        } else if (routeName === 'Settings') {
          iconName = `ios-options${focused ? '' : '-outline'}`;
        }

        // You can return any component that you like here!
        return <IconComponent name={iconName} size={25} color={tintColor} />;
      },
    }),
    tabBarOptions: {
      activeTintColor: 'tomato',
      inactiveTintColor: 'gray',
    },
  }
);

我收到一条错误消息,指出:

  

“ ALTER”在此服务器版本的此位置无效,可能是:CACHE,CHECKSUM,COMMIT,DEALLOCATE,DO,EXECUTE,...

我该怎么做才能解决此错误?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我通过在Mysql Workbench中创建新连接来解决此错误