天天看點

MySQL資料常用指令

1.顯示表編碼:

文法:show create table 表名; 下面測試個表名t1。

<code>&gt; show </code><code>create</code> <code>table</code> <code>t1;</code>

可以看到這個表的編碼是utf8mb4

<a href="http://s1.51cto.com/wyfs02/M02/88/1E/wKiom1fp70-j4lY9AABk3kcHQDY718.jpg-wh_500x0-wm_3-wmp_4-s_2420094118.jpg" target="_blank"></a>

2.列出目前資料庫中所有表。

<code>&gt; show tables;</code>

3.列出目前資料庫。

<code>&gt; show databases;</code>

4.進入zabbix資料庫。

<code>&gt; use zabbix;</code>

本文轉自 piazini 51CTO部落格,原文連結:http://blog.51cto.com/wutou/1856917