当前位置:网站首页>linux basic command explanation
linux basic command explanation
2022-08-02 12:19:00 【Mu Chenchenxi】
1. Basic environment:
Experimental environment
1. This machine is installed on the desktop
2. The network mode is nat ip: 172.20.10.8
Basic environment
1. You can ping the network and network settings
2. Mount the image and configure the yum source repository
Minimum installation needs to download the dependent environment
[[email protected] ~]#yum -y install wget.x86_64
[[email protected] ~]#yum -y install vim
[[email protected] ~]#yum -y install bash-completion
[[email protected] ~]#bash
2. Install Mysql and configure it
1. Check whether the basic environment reserves mysql or mariadb packages:
Check if MySQL is installed
[[email protected]]# cd /etc/yum.repos.d
[[email protected] yum.repos.d]# rpm -qa | grep mysql
[[email protected] yum.repos.d]# rpm -qa | grep mariadb mariadb-libs-5.5.68-1.el7.x86_64
#Forcibly uninstall mariadb-lib
[[email protected] yum.repos.d]# rpm -e --nodeps mariadb-libs
[[email protected] yum.repos.d]# rpm -qa | grep mariadb
#install mysql database
[[email protected] yum.repos.d]# wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm #Get the mysql.rpm package from the Internet
p>
#Install rpm package
[[email protected] yum.repos.d]# rpm -ivh mysql80-community-release-el7-5.noarch.rpm

#Empty cache
[[email protected] ~ yum.repos.d]# yum makecache fast [[email protected] ~yum.repos.d]# yum repolist
2. Install mysql database and login, change password
[[email protected] yum.repos.d]# yum -y install mysql-community-server
[[email protected] yum.repos.d]# grep "passwor" /var/log/mysqld.log 2022-04-15T01:10:12.626454Z 6 [Note] [MY-010454] [Server] A temporarypassword is generated for [email protected]: RbSv)lzrG6ts [[email protected] yum.repos.d]# mysql -u root -p Enter password: mysql> set password='[email protected]'; Query OK, 0 rows affected (0.00sec) mysql> exit Bye
3. Set to allow remote access
[[email protected] ~]systemctl stop firewalld.service
[[email protected] ~]systemctl disable firewalld.service
4. Modify mysql permissions to allow anyone to connect
[[email protected] yum.repos.d]# mysql -u root -p Enter password: mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with-A Database changed mysql> select Host,User from user; +-----------+------------------+ | Host | User |+-----------+------------------+ | localhost | mysql.infoschema | | localhost | mysql.session | | localhost | mysql.sys | | localhost | root | +-----------+------------------+ 4 rows in set (0.00 sec) mysql>update user set Host='%' where User=root; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)mysql> exit Bye
5. Use the connection tool: use the Navicat connection tool to test
New---mysql Note: The password is the database password and the host is the IP address of the virtual machine (the password must be entered manually)


边栏推荐
- 【kali-信息收集】(1.9)Metasploit+搜索引擎工具Shodan
- 翻译英语的软件-免费翻译软件-各种语言互相翻译
- SuperSlide系列之轮播图
- 看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!
- Failure Analysis | A SELECT statement crashes MySQL, what happened?
- SQL函数 $TRANSLATE
- The use of QListView
- Transfer files between servers
- Problem solving in the process of using mosquitto
- #Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies
猜你喜欢

SuperSlide系列之轮播图

数据湖(二):什么是Hudi
![[kali-information collection] (1.8) ARP reconnaissance tool _Netdiscover](/img/04/f477cd8726d147b892f6050d46c312.png)
[kali-information collection] (1.8) ARP reconnaissance tool _Netdiscover

QAbstractScrollArea、QScrollArea

手撸架构,Mysql 面试126问

Technology sharing | Description of the electronic fence function in the integrated dispatching system

How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?

Crack detection technology based on deep learning

免费文档翻译-免费批量文档翻译软件推荐

Thymeleaf
随机推荐
Problem solving in the process of using mosquitto
Free Chinese-English Translation Software - Automatic Batch Chinese-English Translation Software Recommended Daquan
【项目管理技术的优势】
SQL function TRIM
Crack detection technology based on deep learning
手撸架构,Redis面试41问
前男友买辣椒水威胁要抢女儿,女方能否申请人身安全保护令?
Thymeleaf
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一
Chapter 11 Documents
力扣35-搜索插入位置——二分查找
免费文档翻译-免费批量文档翻译软件推荐
Likou 209 - String with the Minimum Length - Sliding Window Method
Running yum reports Error: Cannot retrieve metalink for reposit
基于深度学习的裂缝检测技术
Taurus.MVC V3.0.3 Microservice Open Source Framework Released: Make the evolution of .NET architecture easier in large concurrency.
np.nan, np.isnan, None, pd.isnull, pd.isna 整理与小结
simulink PID自动整定
7种最常用数据分析思维,解决95%的分析难题
Solve the problem of Chinese garbled characters in exporting excel file names