use database 很慢/You can turn off this feature to get a quicker startup with –A
2013-11-07 16:12
656 查看
mysql> use information_schema
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
当切换到某个库时,经常会出现上面信息,意思是预读这个库中表以及表列信息。
但是当库中表很多,表中数据很大时,就会出现执行use <库名>后半天没反应,连接很慢的情况
解决办法:
上面其实已经有提示了(You can turn off this feature to get a quicker startup with -A)
就是在登陆连接mysql时使用-A参数,这样就不会预读库中表信息了,能提高连接库的速度.
shell> mysql -h hostname -u username -P port -p -A
Enter password:
MySQL -A参数含义:
shell> mysql --help
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get table and field completion.
This gives a quicker start of mysql and disables rehashing on reconnect.
例子:
shell> mysql -h 127.0.0.1 -u root -P 3306 -p
Enter password:
mysql> use information_schema;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> exit
Bye
shell> mysql -h 127.0.0.1 -u root -P 3306 -p
Enter password:
mysql> use information_schema;
Database changed
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
当切换到某个库时,经常会出现上面信息,意思是预读这个库中表以及表列信息。
但是当库中表很多,表中数据很大时,就会出现执行use <库名>后半天没反应,连接很慢的情况
解决办法:
上面其实已经有提示了(You can turn off this feature to get a quicker startup with -A)
就是在登陆连接mysql时使用-A参数,这样就不会预读库中表信息了,能提高连接库的速度.
shell> mysql -h hostname -u username -P port -p -A
Enter password:
MySQL -A参数含义:
shell> mysql --help
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get table and field completion.
This gives a quicker start of mysql and disables rehashing on reconnect.
例子:
shell> mysql -h 127.0.0.1 -u root -P 3306 -p
Enter password:
mysql> use information_schema;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> exit
Bye
shell> mysql -h 127.0.0.1 -u root -P 3306 -p
Enter password:
mysql> use information_schema;
Database changed
相关文章推荐
- mysql You can turn off this feature to get a quicker startup with –A
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -
- Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
- Searching with regular sentences will only get you so far – if you need to find something a bit tricky turn to these advanced yet simple methods--转
- You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
- You do not have permission to get URL ‘/’ from this server解决方案
- Android Studio: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- get a quicker startup with -A
- you need to use a theme.appcompat theme (or descendant) with this activity 解决办法
- The installer cannot read the mwinstall.dll file, This is probably due to a CD reader which can only read files with an eight.th
- android studio编程时出现的错误:you need to use a theme.appCompat theme(or descendant) with this a
- 解决#1289 - The \'InnoDB\' feature is disabled; you need MySQL built with \'InnoDB\' to have it working的问题
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android问题一:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- 解决错误:You need to use a Theme.AppCompat theme (or descendant) with this activity.
- when the preview menu is diabled in BO, you can add this setting to enabled it