当前位置:网站首页>1、 Initial mysql, MySQL installation, environment configuration, initialization
1、 Initial mysql, MySQL installation, environment configuration, initialization
2022-07-25 10:10:00 【Zero degrees Celsius】
Database details (MySQL)
One 、 initial MySQL
1、JavaEE: Enterprise class Java Development web
front end ( page : Exhibition , data !)
backstage ( Connection point : Connect to database JDBC, Connect front end ( control , Control view jump , And passing data to the front end ))
database ( Save the data ,Txt,Excel,word)
1.1、 Why study databases ?
1、 Position requirements
2、 Big data era
3、 Forced to demand : Need a tool to store data
4、 Database is the core of all software systems
1.2、 What is a database
1、 database ,(DB,DataBase). Software , Installed on top of the operating system !SQL sentence , It can store a lot of data ,500 ten thousand !
2、 effect : Store the data , Management data
1.3、 Database classification
1、 Relational database : That's ok 、 Column (SQL)
- MySQL,Oracle,SqlServer,DB2,SQLlite
- Between tables , The relationship between rows and columns is used to store data , Student information sheet , Attendance Sheet
2、 Non relational database : (NoSQL)NOT ONLY SQL
- Redis,MongDB
- Non relational database , Object storage , It is determined by the properties of the object itself
3、DBMS( Database management system ) : Manage and manipulate data
- Database management software , Scientific and effective management of our data . Maintain and access data ;
- MySQL, Database management system
1.4、MySQL brief introduction
MySQL Is a relational database management system , The Swedish MySQL AB Companies to develop , Now belongs to Oracle Its products .MySQL Is one of the most popular relational database management systems . Relational databases keep data in different tables ,MySQL What is used is SQL Language . Applicable to large, medium and small websites
Official website :https://www.mysql.com/
1.5、 install MySQL
- zip Download address :
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip
- decompression
- Put this package in your environment directory
- Add environment variables
- stay path Add bin The file path of the directory D:\JavaEnvironment\mysql-5.7.19\bin
- Add success
- newly build mysql The configuration file
- my.ini
【mysqld】
# The catalogue must be changed to its own
basedir=D:\JavaEnvironment\mysql-5.7.19\
datadir=D:\JavaEnvironment\mysql-5.7.19\data\
port=3306
skip-grant-tables
- install mysql service : Start... In administrator mode CMD, And switch the path to mysql Under the bin Catalog , Then input mysqld-install( install mysql)
C:\Windows\system32>cd /d D:\JavaEnvironment\mysql-5.7.19\bin
D:\JavaEnvironment\mysql-5.7.19\bin>mysqld -install
Service successfully installed.
- Initialization data , Input mysqld --initialize-insecure --user=mysql
- There is an error :mysqld: [ERROR] Found option without preceding group in config file
- solve : hold .ini Save file as Anis Format , The default is utf-8, Cause error . Successfully initialized and added after modification data file
- start-up mysql, Change Password ( From the command line )
- open mysql:net start mysql
- Get into mysql Management interface :mysql -u root -p
- change root password :
update mysql.user set authentication_string=password('123456') where user='root' and Host='localhost';
- Finally, refresh the permissions :flush privileges;
- modify .ini file , Delete the last sentence skip…
- restart mysql It can be used normally net start mysql net stop mysql
边栏推荐
- The economic basis of a hardware siege lion
- Mlx90640 infrared thermal imager temperature measurement module development notes (V)
- 阿里MQTT物联网平台“云产品流转”实战——两片ESP32通过物联网平台实现远程互操作
- C函数不加括号的教训
- Es6详解
- JSP详解
- VCS常用命令
- Introduction to low power consumption and UPF
- VCs common commands
- Mlx90640 infrared thermal imager temperature measurement module development notes (I)
猜你喜欢
随机推荐
Record of deep learning segment error (segment core/ exit code 139)
一个可以返回前一页并自动刷新页面的ASP代码.
Connection and data reading of hand-held vibrating wire vh501tc collector sensor
Nodejs初体验
Camera attitude estimation
First knowledge of opencv4.x ---- mean filtering
[deployment of deep learning model] deploy the deep learning model using tensorflow serving + tornado
SSM整合(简单的图书管理系统来整合SSM)
无线振弦采集仪参数配置工具的设置
CCF 201512-3 drawing
Solve the problem that esp8266 cannot connect mobile phones and computer hotspots
FLASH read / write operation and flash upload file of esp8266
cookie and session
emmet语法速查 syntax基本语法部分
Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (II)
工程监测多通道振弦传感器无线采集仪外接数字传感器过程
JSP详解
MLX90640 红外热成像传感器测温模块开发笔记(三)
About student management system (registration, login, student side)
用ESP32+TM1638实验NTP网络校时闹钟的ARDUINO代码









