mysql不预读数据库信息(use dbname 更快,不会卡)—Reading table information for completion of table and column names
2011-10-09 00:44
886 查看
原文:http://blog.163.com/xychenbaihu@yeah/blog/static/13222965520113152619796/
mysql> use dbname
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
让后就卡在这里。
上面卡住的原因::
是由于数据库太大,即数据库中表非常多,所以如果预读数据库信息,将非常慢,所以就卡住了,如果数据库中表非常少,将不会出现问题。
出现问题的原因是::
我们进入mysql 时,没有使用-A参数;
即我们使用
mysql -hhostname -uusername -ppassword -Pport 的方式进入数据,
而没有使用
mysql -hhostname -uusername -ppassword -Pport -A的方式进入数据库。
当我们打开数据库,即use dbname时,要预读数据库信息,当使用-A参数时,就不预读数据库信息。
mysql> use dbname
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
让后就卡在这里。
上面卡住的原因::
是由于数据库太大,即数据库中表非常多,所以如果预读数据库信息,将非常慢,所以就卡住了,如果数据库中表非常少,将不会出现问题。
出现问题的原因是::
我们进入mysql 时,没有使用-A参数;
即我们使用
mysql -hhostname -uusername -ppassword -Pport 的方式进入数据,
而没有使用
mysql -hhostname -uusername -ppassword -Pport -A的方式进入数据库。
当我们打开数据库,即use dbname时,要预读数据库信息,当使用-A参数时,就不预读数据库信息。
相关文章推荐
- 解决MYSQL访问时无法切换数据库的问题.Reading table information for completion of table and column names
- 解决:Reading table information for completion of table and column names
- 解决:Reading table information for completion of table and column names
- Reading table information for completion of table and column names
- 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
- 解决:Reading table information for completion of table and column names
- mysql不预读数据库信息(use dbname 更快,不会卡)
- MySQL -A不预读数据库信息(use dbname 更快)
- Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
- 错误信息提示:Table 'my_information' is marked as crashed and should be repaired
- MySql Query To Get Important Column Properties Of A Table
- mysql -A不预读数据库信息
- mysql报ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must
- MySQL 8.0.11 报错[ERROR] [MY-011087] Different lower_case_table_names settings for server ('1')
- PLSQL Tools for query primary key and foreign key of a table
- 关于mysql 出现 1264 Out of range value for column 错误的解决办法
- 【MySQL笔记】解除输入的安全模式,Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect.
- mysql:Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column
- Data too long for column 'name' at row 1 mysql的抛出异常的解决办法--之前方法不管用-要设置数据库编码