十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
第三章 輔導教程
Table of Contents
目錄
3.1 Connecting to and Disconnecting from the Server
3.1連接和斷開與服務器的連接
3.2 Entering Queries
3.2輸入查詢
3.3 Creating and Using a Database
3.3創(chuàng)建和使用數(shù)據(jù)庫
3.4 Getting Information About Databases and Tables
3.4獲取有關數(shù)據(jù)庫和表的信息
3.5 Using mysql in Batch Mode
3.5在批處理模式下使用mysql
3.6 Examples of Common Queries
3.6常見查詢示例
3.7 Using MySQL with Apache
3.7在Apache中使用Mysql
This chapter provides a tutorial introduction to MySQL by showing how to use the mysql client program to create and use a simple database. mysql (sometimes referred to as the “terminal monitor” or just “monitor”) is an interactive program that enables you to connect to a MySQL server, run queries, and view the results. mysql may also be used in batch mode: you place your queries in a file beforehand, then tell mysql to execute the contents of the file. Both ways of using mysql are covered here.
本章通過介紹如何使用mysql客戶端程序來創(chuàng)建和使用簡單的數(shù)據(jù)庫,提供了MySQL的教程介紹。mysql(有時稱為“ 終端監(jiān)視器 ”或 “ 監(jiān)視器 ”)是一種交互式程序,可以連接到MySQL服務器,運行查詢并查看結果。 mysql也可能在批處理模式下使用:您先將查詢放在一個文件中,然后告訴 mysql執(zhí)行該文件的內容。這里介紹了使用mysql的兩種方法。
To see a list of options provided by mysql, invoke it with the --help
option:
要查看mysql提供的選項列表,請使用以下--help
選項來調用它:
This chapter assumes that mysql is installed on your machine and that a MySQL server is available to which you can connect. If this is not true, contact your MySQL administrator. (If you are the administrator, you need to consult the relevant portions of this manual, such as Chapter 5, MySQL Server Administration.)
本章假設您的機器上安裝了mysql,并且可以使用MySQL服務器連接。如果這不正確,請與您的MySQL管理員聯(lián)系。(如果 您是管理員,則需要參考本手冊的相關部分,如 第5章MySQL服務器管理。)
This chapter describes the entire process of setting up and using a database. If you are interested only in accessing an existing database, you may want to skip over the sections that describe how to create the database and the tables it contains.
本章介紹設置和使用數(shù)據(jù)庫的整個過程。如果您僅對訪問現(xiàn)有數(shù)據(jù)庫感興趣,可能需要跳過描述如何創(chuàng)建數(shù)據(jù)庫及其包含的表的部分。
Because this chapter is tutorial in nature, many details are necessarily omitted. Consult the relevant sections of the manual for more information on the topics covered here.
因為本章是輔導教程,許多細節(jié)必然被省略。有關本文涉及的主題的更多信息,請參閱手冊的相關章節(jié)。
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。