我正在使用MySQL Workbench 6.0。我从.sql文件构建了一个模式。它有1024个表。当我将它连接到本地主机时,只有47个表似乎成功。我查看了这个命令
SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = "my_schema";
为什么它会留下其他977桌子?它是一个内存分配的东西吗?或者我的配置有问题?
修改1
来自MySQL命令的结果
SHOW ENGINES;
修改2
我查看了本地连接所查看的.ini文件。它使用
中的默认值C:\Program Files\MySQL\MySQL Server 5.6
这是my-default.ini的内容
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
所以因为这是它的读取文件而我没有做任何更改是否存在像我这样拥有大量表的数据库的内存问题?或者我应该将此全部留给本地连接并通过MySQL Workbench更改设置?
编辑3
Blow是SQL命令的结果
SHOW GRANTS;
答案 0 :(得分:0)
首先确认sql文件包含所有1024个表。
使用命令SHOW ENGINES: