bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

MySQL中怎么在提示符中顯示當前用戶-創(chuàng)新互聯(lián)

這篇文章將為大家詳細講解有關MySQL中怎么在提示符中顯示當前用戶,文章內容質量較高,因此小編分享給大家做個參考,希望大家閱讀完這篇文章后對相關知識有一定的了解。

讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:申請域名、網(wǎng)頁空間、營銷軟件、網(wǎng)站建設、杭州網(wǎng)站維護、網(wǎng)站推廣。

prompt命令可以在mysql提示符中顯示當前用戶、數(shù)據(jù)庫、時間等信息.
例如:
[root@localhost ~]# mysql -uroot -p --prompt="\\u@\\h:\\d \\r:\\m:\\s>"
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.7.18-log MySQL Community Server (GPL)


Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


root@localhost:(none) 11:11:19>use test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A


Database changed
root@localhost:test 11:11:22>
root@localhost:test 11:11:24>
root@localhost:test 11:11:24>
root@localhost:test 11:11:25>


也可以把參數(shù)加到my.cnf里面,需要重啟數(shù)據(jù)庫生效:

[mysql]
prompt=mysql(\\u@\\h:\\d \\r:\\m:\\s)>

關于MySQL中怎么在提示符中顯示當前用戶就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

名稱欄目:MySQL中怎么在提示符中顯示當前用戶-創(chuàng)新互聯(lián)
文章分享:http://vcdvsql.cn/article44/ddgihe.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設計公司、網(wǎng)站維護、營銷型網(wǎng)站建設域名注冊、響應式網(wǎng)站、App設計

廣告

聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

手機網(wǎng)站建設