当前位置:网站首页>将编译安装的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
边栏推荐
- 7-3 poly width
- Websites frequented by old programmers (continuously updated)
- The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
- Applet - more than two pieces of folding and expansion logic
- Learn about I / O flow and file operations
- JS, bind the event for a label with input, and then bind the stand-alone event in the parent element. The event is executed twice and solved
- ThreadLocal test multithreaded variable instance
- Variable definition and use
- 常用的辅助类
- 【微服务】(十)—— 统一网关Gateway
猜你喜欢
QT learning summary
The principle and solution of not allowing pasting in an English Network
Supersocket is Use in net5 - concept
Unity knowledge points (ugui 2)
Design and implementation of redis (5): master-slave replication strategy and optimization
C set
2022 group programming ladder simulation l2-1 blind box packaging line (25 points)
变量、常量、运算符
Section 1 array and slicing in Chapter 6
Design and implementation of redis (3): persistence strategy RDB, AOF
随机推荐
Redis (17) -- redis cache related problem solving
Docker pulls MySQL and connects
Design and implementation of redis (1): understand data structures and objects
Learn about I / O flow and file operations
Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
What to pay attention to when writing the first code
vscode删除卸载残余
Explanation keyword of MySQL
Initial experience of talent plan learning camp: communication + adhering to the only way to learn open source collaborative courses
There is no index in the database table. When inserting data, SQL statements are used to prevent repeated addition (Reprint)
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Section 2 map and structure in Chapter 6
Create virtual machine
打卡:4.22 C语言篇 -(1)初识C语言 - (11)指针
Codeforces Round #784 (Div. 4)题解 (第一次AK cf (XD
Unity Basics
Scenario Title: how does system a use the page of system B
Identifier, keyword, data type
A hundred dollars for a hundred chickens
Three types of jump statements