当前位置:网站首页>Database foundation and installation
Database foundation and installation
2022-07-24 03:37:00 【Ming-Afresh】
Catalog
1、 Database foundation
What is data
Symbolic description of objective affairs
Data is the carrier of information
data classification
Text
graphics
voice
Images
database structure
Database software
A database software , There can be many libraries .
library
DataBase, abbreviation :DB
A library can have many tables .
surface
Table
A table can store many result sets .
Result set
record
Result set refers to : A collection of data
database model
Hierarchical
Reticular type
Relational type
…
Common relational databases
MySql
Open source 、 free .
The original company : Swedish AB company .
Current company :oracle
It is a small and medium-sized database
Oracle
company :oracle
Paid Products .
But the function is free .
Medium and large databases
SqlServer
company : Microsoft
Medium and large databases
DB2
company :IBM
Large data
2、MySql database
Download version
zip edition
Green version , When the download is complete , In order to zip The formation of compressed packets reflects .
Decompress package , Database ( Be careful : There is no setup , Unzip to use ).
Be careful :zip Usually in cmd Used in , therefore , Environment variables need to be configured ( And configuration jdk similar )
msi edition ( Use )
Installed version , After downloading successfully , Use .msi Program to install .
After installation , You can use it directly . No configuration is required
Download from the official website
https://www.oracle.com/index.html
Download location
3、MySql Database installation













4、MySql Visualization software installation
You can use software , Operate data in a graphical interface .
MySql There are many products of video software , We use Navicat
5、MySql Basic commands
mysql command
Important orders .
Connect MySql databaseFormat : mysql [-h Server address ] -u Account name -p passwordCommand parameter parsing
h: Server address . LAN :192.168.xxx.xxx. Wide area network : static state IP. Be careful : If it is this machine, it does not need to be used -h
-u: Database account .
-p: Database password
Be careful : By default , stay cmd Use in MySql command , It's invalid . Need to put MySql Install under directory bin Add directory address to environment variable path Then you can .
Be careful : By default ,root Accounts cannot be accessed remotely . because root The permission field of the account in the user table is :
localhost( Local ), therefore , It's not remotely accessible . If there is a need for remote access , Use update The command is used in the user table
root In the field localhost by “ ”. then , Remote access can be realized .
take sql File import database
Put a local sql The file is imported into the database .
Database files are usually , With the extension :.sqlFormat : mysql -u account -p password Database name < Database files .sqlmysqladmin command
Database management commands
You can use this command to change the account password .Format : mysqladmin -u account -p Old password password " New password "mysqldupm command
Save the database as sql fileFormat : mysqldump -u account -p password Database name > d:/sql File name .sqlmysql Other commands
show databases: check mysql All the library names in the database .
use Database name : Enter the database with the specified name
show tables: View all data table names in the specified database .
desc Data table name : View the structure of the specified data table .
show create table Data table name : View the source code of the creation of the specified data table
\s: View the server information .
\c: Terminate current sql command
\h: Similar to help file , You can see sql Appoint .
\q: sign out mysql
边栏推荐
- 一篇搞定CAS,深度讲解,面试实践必备
- Jump statement in day011 loop structure
- STL set容器
- Appendtofile append failed
- Istio architecture extension mechanism
- Water topic: connect rainwater
- The error of van swipe in the rotation chart: cannot read a properties of null (reading width)
- IO流分类整理
- RTOS internal skill cultivation (10) | in depth analysis of RTOS kernel context switching mechanism
- JS Array isaarray () Type of
猜你喜欢

IO流分类整理

MySql的DDL和DML和DQL的基本语法

Industrial controller, do you really know your five insurances and one fund?

MySQL学习——MySQL软件的安装及环境配置(Windows)详细!

数据湖:Apache Hudi简介

Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?

C语言经典练习题(2)——“冒泡排序(Bubble Sort)“

Exercices classiques de langue C (2) - « tri des bulles »

uniapp H5打包后本地图片无法显示问题

Programmers may still be programmers, and coders may only be coders
随机推荐
数据湖(十九):SQL API 读取Kafka数据实时写入Iceberg表
Istio architecture extension mechanism
4. Hezhou air32f103_ LCD
俄罗斯方块、1
How to efficiently install the GPU version of mindspire
B. Eastern Exhibition- Codeforces Round #703 (Div. 2)
Gpushare. COM | how to use tensorboardx visualization tool?
C. Minimum Ties-Educational Codeforces Round 104 (Rated for Div. 2)
Basic syntax of MySQL DDL and DML and DQL
Talk about the application of FIFO
STL set容器
Developers share mindspire Lite experience, one click image segmentation
C自定义类型详解
二分查找
Gpushare.com | 如何使用TensorBoardX可视化工具?
Y74. Chapter IV Prometheus large factory monitoring system and practice -- Introduction to promql and monitoring pod resources (V)
数据湖:开源数据湖方案DeltaLake、Hudi、Iceberg对比分析
IO流分类整理
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
[super complete sorting] Cisco and Huawei order comparison memo, take it away without thanks! Anytime, anywhere





