当前位置:网站首页>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)


边栏推荐
- Technology sharing | Description of the electronic fence function in the integrated dispatching system
- Speed up your programs with bitwise operations
- Lexicon 27 - Remove Elements - Simple Questions
- 太厉害了,终于有人能把TCP/IP 协议讲的明明白白了
- After Effects 教程,如何在 After Effects 中对蒙版进行动画绘制?
- Create a devops CI/CD process using the kubesphere GUI
- Process finished with exit code 1
- Idea 全局搜索(idea如何全局搜索关键字)
- LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一
- simulink PID auto-tuning
猜你喜欢

使用kubesphere图形界面创建一个应用操作流程

CCF paper conference IEEE how to query all articles of a conference journal

Free Chinese-English Translation Software - Automatic Batch Chinese-English Translation Software Recommended Daquan

MyCat2 introduction and installation and basic use

Thymeleaf

Do you really understand the business process service BPass?

Manual architecture, Mysql interview 126 questions

How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?
redis cluster cluster, the ultimate solution?

内存存储结构
随机推荐
Crack detection technology based on deep learning
Manual architecture, Mysql interview 126 questions
After Effects 教程,如何在 After Effects 中对蒙版进行动画绘制?
Free Chinese-English Translation Software - Automatic Batch Chinese-English Translation Software Recommended Daquan
用位运算为你的程序加速
#夏日挑战赛#【FFH】OpenHarmony设备开发基础(三)编译依赖
半夜赶工制作简报的我好想说 : 确定了,最终稿就是这样
Likou 977-Squaring of ordered arrays - brute force method & double pointer method
zabbix自动化监控脚本
SQL函数 $TRANSLATE
The 7 most commonly used data analysis thinking, solve 95% of the analysis problems
Create your own app applet ecosystem with applet containers
看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!
【kali-信息收集】(1.8)ARP侦查工具_Netdiscover
以Boost为例的type3电压环补偿器实例
使用kubesphere图形界面创建一个应用操作流程
观察者(observer)模式(二) —— 实现线程安全的监听器
CCF论文会议 IEEE 如何查询某个会议期刊的所有文章
软件成分分析:手握5大能力守护软件供应链安全
第十四章 手动创建 REST 服务(二)