我们可以使用带有 GLOBAL 的 SET 命令来启用它。第一次,local infile 将关闭。以下是语法。mysql> SHOW GLOBAL VARIABLES LIKE 'local_infile'; 以下是输出。+---------------+-------+ | Variable_name | Value | +---------------+-------+ | local_infile | OFF | +---------------+-------+ 1 row in set (0.01 sec) 我们可以使用 ON 或布尔值 true 或数值 1 来启用 local infile。以下是启用 local infile 的语法。mysql> SET GLOBAL local_infile = 'ON'; Query OK, 0 ... 阅读更多
要显示引擎为 InnoDB 的所有表名,请执行以下查询 mysql> SELECT TABLE_SCHEMA as DATABASENAME ,TABLE_NAME as AllTABLENAME ,ENGINE as ENGINETYPE FROM information_schema.TABLES -> WHERE ENGINE = 'innoDB' -> AND TABLE_SCHEMA NOT IN('mysql', 'information_schema', 'performance_schema'); 以下是输出。+--------------+------------------------------------------------------------------+------------+ | DATABASENAME | AllTABLENAME ... 阅读更多