当前位置:网站首页>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
边栏推荐
- 低功耗和UPF介绍
- Exciting method and voltage of vibrating wire sensor by hand-held vibrating wire acquisition instrument
- Mlx90640 infrared thermal imager temperature measurement module development notes (I)
- 概率机器人学习笔记第二章
- 拷贝过来老的项目变成web项目
- CCF 201512-4 delivery
- Temperature, humidity and light intensity acquisition based on smart cloud platform
- CCF 201509-2 date calculation
- Configuring ROS development environment with vscode: Causes and solutions to the problem of ineffective code modification
- Filter过滤器详解(监听器以及它们的应用)
猜你喜欢

【近万字干货】别让你的简历配不上你的才华——手把手教你制作最适合你的简历

小程序H5获取手机号方案

File -- first acquaintance

【建议收藏】靠着这些学习方法,我入职了世界五百强——互联网时代的“奇技淫巧”

Visualization of sensor data based on raspberry pie 4B
![[necessary for growth] Why do I recommend you to write a blog? May you be what you want to be in years to come.](/img/f5/e6739083f0dce8da1d09d078321633.png)
[necessary for growth] Why do I recommend you to write a blog? May you be what you want to be in years to come.

Debug篇快捷键入门

JDBC总结

CCF 201604-2 Tetris

CCF 201509-4 Expressway
随机推荐
无线中继采集仪的常见问题
File -- first acquaintance
[Android studio] batch data import to Android local database
腾讯云之错误[100007] this env is not enable anonymous login
BSP3 电力监控仪(功率监控仪)端子定义和接线
Swift creates weather app
小程序调起微信支付
CCF 201512-4 delivery
数据库MySQL详解
NLM5系列无线振弦传感采集仪的工作模式及休眠模式下状态
MLX90640 红外热成像仪测温模块开发笔记(一)
MLX90640 红外热成像仪测温模块开发说明
小程序H5获取手机号方案
Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (III)
用Arduino写个ESP32看门狗
Introduction to armv8 architecture
ADC introduction
Exciting method and voltage of vibrating wire sensor by hand-held vibrating wire acquisition instrument
Armv8 datasheet learning
线程池的设计和原理