当前位置:网站首页>将编译安装的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
边栏推荐
- A hundred dollars for a hundred chickens
- Commonly used classes
- Laboratory safety examination
- Codeforces Round #784 (Div. 4)题解 (第一次AK cf (XD
- Design and implementation of redis (1): understand data structures and objects
- Using jsonserialize to realize data type conversion gracefully
- Wechat payment iframe sub page has no response
- Test questions (2)
- Development record of primary sensitive word detection
- 常用的辅助类
猜你喜欢

Concepts of objects and classes

Section 2 map and structure in Chapter 6

"Visual programming" test paper

. net webapi access authorization mechanism and process design (header token + redis)

深度學習筆記(二)——激活函數原理與實現

Visual programming - Experiment 1

Unity Basics

2022 团体程序设计天梯赛 模拟赛 L2-4 哲哲打游戏 (25 分)

Explanation keyword of MySQL

2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
随机推荐
What to pay attention to when writing the first code
C-10 program error correction (recursive function): number to character
淺學一下I/O流和File類文件操作
Wechat applet cloud database value assignment to array error
Applet - canvas drawing Poster
Unity knowledge points (ugui 2)
7-2 Tushare
Laboratory safety examination
2021-08-31
L3-011 direct attack Huanglong (30 points)
A hundred dollars for a hundred chickens
. net 5 Web custom middleware implementation returns the default picture
深度学习笔记(二)——激活函数原理与实现
STM32 advanced timer com event
Codeforces Round #784 (Div. 4)题解 (第一次AK cf (XD
Code forces round # 784 (DIV. 4) solution (First AK CF (XD)
The art of concurrent programming (5): the use of reentrantlock
Mechanical design knowledge point planning
标识符、关键字、数据类型
Learn about I / O flow and file operations