當前數據庫: 內置函數database() 當前用戶: ...
環境描述: mysql版本: . . log 操作系統版本:Red Hat Enterprise Linux Server release . Santiago 需求說明: 查看當前使用的是哪個數據庫 查詢結果: 備注:表示的是當前使用的是哪個數據庫或者說會話登錄到了哪個數據庫中。 文檔創建時間: 年 月 日 : : 第 次修改:將SQL語句嵌入到代碼標簽中, 年 月 日 : : ...
2018-03-08 10:16 0 25336 推薦指數:
當前數據庫: 內置函數database() 當前用戶: ...
...
新建查詢,在查詢框里輸入如下指令 SELECT VERSION(); SELECT DATABASE(); SELECT USER(); 第一條指令是查看當前mysql的版本; 第二條是查看當前mysql中哪個庫; 第三條是查看當前用戶; ...
查看使用的數據庫引擎 show variables like '%storage_engine%'; 顯示的使用的是InnoDB 查看引擎狀態 show engine innodb status ...
mysql> select user();+----------------+| user() |+----------------+| root@localhost |+----------------+1 row in set (0.00 sec) mysql ...
mysql> select user();+----------------+| user() |+----------------+| root@localhost |+----------------+1 row in set (0.00 sec) mysql ...
http://www.postgresql.org/docs/7.3/static/functions-misc.html ...