当前位置:网站首页>将编译安装的mysql加入PATH环境变量
将编译安装的mysql加入PATH环境变量
2022-04-23 03:36:00 【(~ ̄▽ ̄)~凤凰涅槃】
这里是根据MySQL编译安装方式进行的安装
mysql编译安装
如下图 mysql可以通过systemctl 控制命令控制开关服务,但是不能用mysql命令
vim /etc/profile
最后追加
.export PATH=/usr/local/mysql/bin:$PATH
(/usr/local/mysql/是我的安装地址。安装地址不一样的自己更改 )
刷新配置文件
source /etc/profile
查看一下环境变量
echo $PATH
添加成功
重启
systemctl restart mysql
登录
mysql -uroot -p1
这里我密码是1,根据自己情况修改命令
OK测试成功进入mysql
版权声明
本文为[(~ ̄▽ ̄)~凤凰涅槃]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42704442/article/details/124350141
边栏推荐
- "Visual programming" test paper
- C-11 problem h: treasure chest 2
- 2022 团体程序设计天梯赛 模拟赛 L2-4 哲哲打游戏 (25 分)
- POI create and export Excel based on data
- Generate QR code through zxing
- Section 1 array and slicing in Chapter 6
- Unity games and related interview questions
- 2022 group programming ladder simulation match 1-8 are prime numbers (20 points)
- 打卡:4.23 C语言篇 -(1)初识C语言 - (12)结构体
- vscode删除卸载残余
猜你喜欢
Development record of primary sensitive word detection
Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
Create virtual machine
浅学一下I/O流和File类文件操作
SQL learning record
Deep learning notes (II) -- principle and implementation of activation function
Database - MySQL -- Navicat import SQL error 1067 - invalid default value for 'paydate‘
Mechanical design knowledge point planning
对象和类的概念
Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
随机推荐
2021-08-31
7-3 poly width
Application and definition of interface
If statement format flow
Flink customizes the application of sink side sinkfunction
. net 5 Web custom middleware implementation returns the default picture
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
Section 1 array and slicing in Chapter 6
Test questions (2)
Download and configuration of idea
Unity Basics
Seekbar custom style details
Basic use of Charles
QT uses drag and drop picture to control and mouse to move picture
Unity games and related interview questions
Alphafpld upgrade alphafold multimer
QT learning summary
2022 group programming ladder simulation match 1-8 are prime numbers (20 points)
Visual programming - Experiment 2
2022 团体程序设计天梯赛 模拟赛 L2-4 哲哲打游戏 (25 分)