当前位置:网站首页>Add the compiled and installed Mysql to the path environment variable
Add the compiled and installed Mysql to the path environment variable
2022-04-23 03:39:00 【(~  ̄▽  ̄) ~ Phoenix Nirvana】
This is based on MySQL Installation by compiling and installing
mysql Compilation and installation
Here's the picture mysql Can pass systemctl Control command control switch service , But it doesn't work mysql command
vim /etc/profile
Finally add
.export PATH=/usr/local/mysql/bin:$PATH
(/usr/local/mysql/ Is my installation address . If the installation address is different, change it yourself )
Refresh profile
source /etc/profile
Take a look at the environment variables
echo $PATH
Add success
restart
systemctl restart mysql
Sign in
mysql -uroot -p1
My password here is 1, Modify the command according to your own situation
OK The test successfully entered mysql
版权声明
本文为[(~  ̄▽  ̄) ~ Phoenix Nirvana]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230336028402.html
边栏推荐
- Picture synthesis video
- The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
- Paddlepaddle does not support arm64 architecture.
- Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
- Unity knowledge points (ugui)
- C interface
- Design and implementation of redis (2): how to handle expired keys
- Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
- "Visual programming" test paper
- Application and definition of interface
猜你喜欢
Seekbar custom style details
Instructions for fastmock
Unity knowledge points (ugui)
What if you encounter symbols you don't know in mathematical formulas
Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
Redis(17) -- Redis缓存相关问题解决
浅学一下I/O流和File类文件操作
Unity knowledge points (common core classes)
Design and implementation of redis (1): understand data structures and objects
ROS series (III): introduction to ROS architecture
随机推荐
Raspberry pie 3B logs into the wired end of Ruijie campus network through mentohust, creates WiFi (open hotspot) for other devices, and realizes self startup at the same time
Three types of cyclic structure
Now is the best time to empower industrial visual inspection with AI
Section 2 map and structure in Chapter 6
JS changes the words separated by dashes into camel style
Punch in: 4.23 C language chapter - (1) first knowledge of C language - (12) structure
Software testing process
Seekbar custom style details
Talent Plan 学习营初体验:交流+坚持 开源协作课程学习的不二路径
C interface
A sword is a sword. There is no difference between a wooden sword and a copper sword
2022 团体程序设计天梯赛 模拟赛 L1-7 矩阵列平移 (20 分)
Variable definition and use
Redis(17) -- Redis缓存相关问题解决
Digital image processing third edition Gonzalez notes Chapter 2
将编译安装的mysql加入PATH环境变量
Design and implementation of redis (1): understand data structures and objects
The principle and solution of not allowing pasting in an English Network
ROS series (IV): ROS communication mechanism series (2): Service Communication
Opencv4 QR code recognition test