Konsola wyświetlanie danych

0

Mam przykładowo zwracane takie wyniki (fragment):

mysql> show slave status;
+----------------+------------------+-------------+-------------+---------------+------------------+
| Slave_IO_State | Master_Host      | Master_User | Master_Port | Connect_Retry | Master_Log_File  |
+----------------+------------------+-------------+-------------+---------------+------------------+
|                | 192.168.1.5:3306 | Web02       |        3306 |            60 | mysql-bin.000005 |
+----------------+------------------+-------------+-------------+---------------+------------------+

+---------------------+------------------------+---------------+-----------------------+------------------+
| Read_Master_Log_Pos | Relay_Log_File         | Relay_Log_Pos | Relay_Master_Log_File | Slave_IO_Running |
+---------------------+------------------------+---------------+-----------------------+------------------+
|             3851446 | Web02-relay-bin.000001 |             4 | mysql-bin.000005      | No               |
+---------------------+------------------------+---------------+-----------------------+------------------+
...

Niestety u mnie te tabele są rozstrzelone. Znaczy się osobno są + i -------, osobno Slave_IO_State, potem znów + ------, a potem wyniki.
Jak to naprawić aby tabelki w konsoli wyglądaly tak jak na przykładzie.

0

nie rozumiem, pokaż jak teraz wyglądają

0
mysql> show slave status;
+------------------------------------------------------------+---------------+--
-----------+-------------+---------------+------------------+-------------------
--+-----------------------+---------------+-----------------------+-------------
-----+-------------------+-----------------+---------------------+--------------
------+------------------------+-------------------------+----------------------
-------+------------+------------+--------------+---------------------+---------
--------+-----------------+----------------+---------------+--------------------
+--------------------+--------------------+-----------------+-------------------
+----------------+-----------------------+-------------------------------+------
---------+----------------------------------------------------------------------
-------------------------------------------------------+----------------+-------
---------+-----------------------------+------------------+
| Slave_IO_State                                             | Master_Host   | M
aster_User | Master_Port | Connect_Retry | Master_Log_File  | Read_Master_Log_Po
s | Relay_Log_File        | Relay_Log_Pos | Relay_Master_Log_File | Slave_IO_Run
ning | Slave_SQL_Running | Replicate_Do_DB | Replicate_Ignore_DB | Replicate_Do_
Table | Replicate_Ignore_Table | Replicate_Wild_Do_Table | Replicate_Wild_Ignore
_Table | Last_Errno | Last_Error | Skip_Counter | Exec_Master_Log_Pos | Relay_Lo
g_Space | Until_Condition | Until_Log_File | Until_Log_Pos | Master_SSL_Allowed
| Master_SSL_CA_File | Master_SSL_CA_Path | Master_SSL_Cert | Master_SSL_Cipher
| Master_SSL_Key | Seconds_Behind_Master | Master_SSL_Verify_Server_Cert | Last_
IO_Errno | Last_IO_Error
                                                       | Last_SQL_Errno | Last_S
QL_Error | Replicate_Ignore_Server_Ids | Master_Server_Id |
+------------------------------------------------------------+---------------+--
-----------+-------------+---------------+------------------+-------------------
--+-----------------------+---------------+-----------------------+-------------
-----+-------------------+-----------------+---------------------+--------------
------+------------------------+-------------------------+----------------------
-------+------------+------------+--------------+---------------------+---------
--------+-----------------+----------------+---------------+--------------------
+--------------------+--------------------+-----------------+-------------------
+----------------+-----------------------+-------------------------------+------
---------+----------------------------------------------------------------------
-------------------------------------------------------+----------------+-------
---------+-----------------------------+------------------+
| Waiting to reconnect after a failed registration on master | 192.168.1.1 | N
xis        |        3306 |            60 | mysql-bin.000001 |                 10
7 | nxis-relay-bin.000002 |             4 | mysql-bin.000001      | Connecting
     | Yes               |                 |                     |
      |                        |                         |
       |          0 |            |            0 |                 107 |
    107 | None            |                |             0 | No
|                    |                    |                 |
|                |                  NULL | No                            |
    1597 | Master command COM_REGISTER_SLAVE failed: Access denied for user
'Nxis'@'192.168.1.2' (using password: YES) (Errno: 1045) |              0 |
         |                             |                1 |
+------------------------------------------------------------+---------------+--
-----------+-------------+---------------+------------------+-------------------
--+-----------------------+---------------+-----------------------+-------------
-----+-------------------+-----------------+---------------------+--------------
------+------------------------+-------------------------+----------------------
-------+------------+------------+--------------+---------------------+---------
--------+-----------------+----------------+---------------+--------------------
+--------------------+--------------------+-----------------+-------------------
+----------------+-----------------------+-------------------------------+------
---------+----------------------------------------------------------------------
-------------------------------------------------------+----------------+-------
---------+-----------------------------+------------------+
1 row in set (0.00 sec)

I jeszcze do tego ten nieszczęsny komunikat na Slave: Master command COM_REGISTER_SLAVE failed: Access denied for user 'Nxis'@'192.168.1.2'

Dziwne bo moge wejsc zdalnie do bazy przez Nxis.

0

wygląda dokładnie tak jak powinno, wydrkowało Ci tutaj 5 linii tekstu (ramka,nagłówek,ramka,dane,ramka), a jak linia się nie mieści, to jest przełamywana

musisz (albo):

  • wydobywać mniejszą ilość parametrów
  • mieć bardzo szeroką konsolę :D
  • przekierować wyjście do pliku i przeglądać jego zawartość czymś co nie przełamuje wierszy
0

Oki, dzięki wielkie. Wydaje się to logiczne co napisałeś, bo gdy było mniej info na konsoli to dane wyświetlały się poprawnie.

1 użytkowników online, w tym zalogowanych: 0, gości: 1