生成模型時出現意外錯誤
阿新 • • 發佈:2019-01-28
Enter password: **** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use <<deliverwater>>; ERROR 1049 (42000): Unknown database '<<deliverwater>>' mysql> use deliverwater; Database changed mysql> set global optimizer_switch = 'derived_merge=OFF'; Query OK, 0 rows affected (0.00 sec) mysql> use deliverwater;set global optimizer_switch = 'derived_merge=OFF'; Database changed Query OK, 0 rows affected (0.00 sec) mysql> use deliverwater;set global optimizer_switch = 'derived_merge=OFF';update the .edmx; Database changed Query OK, 0 rows affected (0.00 sec) ERROR 1064 (42000): 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 '' at line 1 mysql> select @@optimizer_switch\G *************************** 1. row *************************** @@optimizer_switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,engine_condition_pushdown=on,index_condition_pushdown=on,mrr=on,mrr_cost_based=on,block_nested_loop=on,batched_key_access=off,materialization=on,semijoin=on,loosescan=on,firstmatch=on,duplicateweedout=on,subquery_materialization_cost_based=on,use_index_extensions=on,condition_fanout_filter=on,derived_merge=on 1 row in set (0.00 sec) mysql>
Result: