当前位置:网站首页>Mysql database installation tutorial under Linux
Mysql database installation tutorial under Linux
2022-07-05 14:11:00 【Full stack programmer webmaster】
1 . Install new version mysql front , The system's own mariadb-lib uninstall [[email protected] ~]# rpm -qa|grep mariadb mariadb-libs-5.5.52-1.el7.x86_64 [[email protected] ~]# rpm -e –nodeps mariadb-libs-5.5.52-1.el7.x86_64 2 Upload mysql :mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar 3 Create folder :mkdir /usr/local/mysql 3 Unzip the installation package to the target folder : tar -xvf mysql-5.7.18-1.el7.x86_64.rpm-bundle.tar -C /usr/local/mysql
4 Use rpm -ivh Command to install in sequence , Installation sequence rpm -ivh mysql-community-common-5.7.18-1.el7.x86_64.rpm mysql-community-libs-5.7.18-1.el7.x86_64.rpm( Depend on common) mysql-community-client-5.7.18-1.el7.x86_64.rpm( Depend on libs) mysql-community-server-5.7.18-1.el7.x86_64.rpm( Depend on common,client)
perl(Getopt::Long) is needed by mysql-community-server-5.7.18-1.el7.x86_64 perl(strict) is needed by mysql-community-server-5.7.18-1.el7.x86_64 It's very clear here , The lack of perl, perform yum install perl Then install , success ! 5 Start and stop MySQL After completing the installation steps , First configuration MySQL It starts automatically , Use it here systemctl command . # systemctl enable mysqld.service Then use systemctl start mysqld.service Command to start MySQL. # systemctl start mysqld.service And stop MySQL When using systemctl stop mysqld.service command . # systemctl stop mysqld.service 6 land MySQL At this time, we will encounter difficulties , You can't get in without a password : stay /ect/my.cnf Add a line on the last side of : skip-grant-tables Save and exit restart mysql service :service mysqld restart And then connect mysql That's all right. Get into mysql: use mysql; update mysql.user set authentication_string=password(‘123qwe’) where user=’root’; Then take it. my.cnf Delete the added line , And then use root Account and password entry mysql It needs to be reset after entering root password : SET PASSWORD = PASSWORD(‘[email protected]’); ALTER USER ‘root’@’localhost’ PASSWORD EXPIRE NEVER;// Set password never expires This password must conform to the password specification flush privileges;( To give immediate effect to ) Set up remote login : GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘[email protected]’ WITH GRANT OPTION; flush privileges;( To give immediate effect to ) 7 Set up firewall : Open port firewall-cmd –zone=public –add-port=3306/tcp –permanent service iptables restart firewall-cmd –reload See if the rule is in effect iptables -L -n
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/111284.html Link to the original text :https://javaforall.cn
边栏推荐
- Selenium crawls Baidu pictures
- What is the ranking of GF futures? Is it safe and reliable to open an account for GF futures online?
- 2022 machine fitter (Advanced) test question simulation test question bank simulation test platform operation
- tidb-dm报警DM_sync_process_exists_with_error排查
- R语言使用ggplot2包的geom_histogram函数可视化直方图(histogram plot)
- Anchor navigation demo
- [machine learning notes] how to solve over fitting and under fitting
- TiFlash 源码解读(四) | TiFlash DDL 模块设计及实现分析
- Geom of R language using ggplot2 package_ Histogram function visual histogram (histogram plot)
- Blue Bridge Cup study 2022.7.5 (morning)
猜你喜欢

Detailed explanation of IP address and preparation of DOS basic commands and batch processing
![[js] basic syntax - for loop](/img/7f/6ddc47c062caa7d39538f88e12b1a0.jpg)
[js] basic syntax - for loop

-Web direction attack and defense world

让秒杀狂欢更从容:大促背后的数据库(下篇)

国富氢能冲刺科创板:拟募资20亿 应收账款3.6亿超营收

Sorter evolution of ticdc 6.0 principle

Elfk deployment

明峰医疗冲刺科创板:年营收3.5亿元 拟募资6.24亿

Why do I support bat to dismantle "AI research institute"

SAS接口有什么优势特点
随机推荐
[buuctf.reverse] 152-154
深拷贝真难
R语言dplyr包select函数、group_by函数、mutate函数、cumsum函数计算dataframe分组数据中指定数值变量的累加值、并生成累加数据列
Laravel dompdf exports PDF, and the problem of Chinese garbled code is solved
Laravel - view (new and output views)
R language dplyr package select function, group_ By function, mutate function and cumsum function calculate the cumulative value of the specified numerical variable in the dataframe grouping data and
Geom of R language using ggplot2 package_ Histogram function visual histogram (histogram plot)
Some ideas about Apache mesos
Detailed explanation of IP address and preparation of DOS basic commands and batch processing
金融壹账通香港上市:市值63亿港元 叶望春称守正笃实,久久为功
matlab学习2022.7.4
R Language ggplot2 Visualization: visualize linegraph, using Legend in Theme function. Paramètre de position emplacement de la légende personnalisée
Tdengine biweekly selection of community issues | phase III
R語言ggplot2可視化:可視化折線圖、使用theme函數中的legend.position參數自定義圖例的比特置
UE源码阅读[1]---由问题入手UE中的延迟渲染
IP packet header analysis and static routing
Comparison of several distributed databases
MySQL user-defined function ID number to age (supports 15 / 18 digit ID card)
openGauss数据库源码解析系列文章—— 密态等值查询技术详解(下)
04_solr7.3之solrJ7.3的使用