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


边栏推荐
猜你喜欢

7种最常用数据分析思维,解决95%的分析难题

内存存储结构

【Acunetix-Forgot your password】

An example of type3 voltage loop compensator taking Boost as an example

Seneor Exposure Basics

Likou 209 - String with the Minimum Length - Sliding Window Method

手撸架构,网络 面试36问

Drools(8):WorkBench使用

excel 批量翻译-excel 批量函数公司翻译大全免费

Process finished with exit code 1
随机推荐
第11章 文件
AQS-AbstractQueuedSynchronizer
Pod调度策略:亲和性、污点与污点容忍
kvm部署
商业流程服务BPass你真的了解吗?
元宇宙“吹鼓手”Unity:疯狂扩局,悬念犹存
np.nan, np.isnan, None, pd.isnull, pd.isna 整理与小结
SQL function $TRANSLATE
NVIDIA NeMo Metrics 轻量性能采集系统
Process finished with exit code 1
An example of type3 voltage loop compensator taking Boost as an example
观察者(observer)模式(二) —— 实现线程安全的监听器
Golang map数组按字段分类
After Effects 教程,如何在 After Effects 中对蒙版进行动画绘制?
第十四章 手动创建 REST 服务(二)
Transfer files between servers
#夏日挑战赛#【FFH】OpenHarmony设备开发基础(三)编译依赖
Manual architecture, Mysql interview 126 questions
网站自动翻译-网站批量自动翻译-网站免费翻译导出
使用kubesphere图形界面创建一个应用操作流程