Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Database terminology and client login of Mysql database

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

After installing the database, we need to understand some of its basic concepts, as mentioned earlier: the database is made up of multiple related tables. Then this table includes such as rows, columns, primary keys, foreign keys, indexes, and so on.

Database: a collection of associated tables.

Datasheet: a table is a matrix of data, and the table in the library can be regarded as a spreadsheet.

Column: a column contains data of the same nature, such as age and phone number.

Line: a set of related data, also known as a data record.

Primary key: the primary key is unique, and only one primary key can be contained in a data table. You can use the primary key to query the data.

Foreign key: mainly used to associate two tables.

Index: use the index to quickly query the records in the data table, similar to the catalog of books.

How to connect the Mysql database:

Windows:

1 go to the official website to download the Windows version of Mysql is usually an executable file that ends in .msi; (you can also install the Mysql client, according to your personal habits)

2 after the installation is completed, you need to modify the environment variables of the Windows system: see the following figure:

3 Open port 3306 on the Mysql server:

Iptables-I INPUT 1-d 192.168.159.137-p tcp-- dport 3306-j ACCEPT (IP is my virtual machine address)

4 Open the Windows system cmd command prompt: enter the following command:

Mysql-u user name-h 192.168.159.137-p

After you enter, you will be prompted to enter your password:

Linux:

Same as step 4 above; if you don't have a password, just type mysql.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report