原来的表结构很清晰也很紧凑,现在怎么变成这样了
http://zhidao.baidu.com/question/538415311?quesup2&oldq=1以前用desc 看表一点问题都没有,现在怎么跳大行了,怎么办啊,重启也没用,出现好几次了都
图发不上来,我把我在百度提的问题发下,求求大神给解决下

解决方案 »

  1.   

    不太习惯用desc ttl ,一般用show create table ttl
      

  2.   

    贴出 show create table 以供分析。
      

  3.   

     show create table tt1 将文本复制、PASTE上来
      

  4.   

    show create table tt1 \G;
      

  5.   

    Microsoft Windows XP [版本 5.1.2600]
    (C) 版权所有 1985-2001 Microsoft Corp.C:\Documents and Settings\Administrator>mysql -u root -q
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 1
    Server version: 5.5.27 MySQL Community Server (GPL)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trade of Oracle Corporation and/or its
    affiliates. Other names may be trades of their respective
    owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+
    | Database
                                                       |
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+
    | information_schema
                                                       |
    | cdcol
                                                       |
    | miracle
                                                       |
    | mysql
                                                       |
    | performance_schema
                                                       |
    | phpmyadmin
                                                       |
    | test
                                                       |
    | webauth
                                                       |
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+
    8 rows in set (0.02 sec)mysql> use miracle;
    Database changed
    mysql> show create table ttl;
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+----------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    ----------------------+
    | Table
                                                       | Create Table
                                          |
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+----------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    ----------------------+
    | ttl
                                                       | CREATE TABLE `ttl` (
      `id` int(11) DEFAULT NULL,
      `name` varchar(20) DEFAULT NULL,
      `sex` varchar(20) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1
                               |
    +-------------------------------------------------------------------------------
    ---------------------------------------------------+----------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    ----------------------+
    1 row in set (0.06 sec)
      

  6.   

    我用的是XAMPP里面的mySQL启动的
      

  7.   

    desc 其他表如何? 
      

  8.   

    完了,无人能解决......god
      

  9.   

    show fields from ttl应该也这样吧。
    1、MYSQL官网重新下个吧。xampp这种集成软件有任何问题都不用奇怪。
    2、把CMD中端宽度调大点试试。
    3、直接用phpmyadmin这种管理工具吧。
      

  10.   


    MySQL在终端下用;结尾的语句的输出结果都这样那个,用\G结尾就好了
      

  11.   

    谢谢上面的3L,问题已经解决了,就是,我直接用phpmyadmin就行了,而且加上\G就没问题了,现在给数据库设定完密码,然后一下子又变回正常了,我现在继续学课程了,谢谢楼上的所有人
      

  12.   

    用 show columns from ttl; 命令呢?