当前位置:网站首页>mysql: command not found 找不到mysql命令
mysql: command not found 找不到mysql命令
2022-07-15 20:01:00 【19921106】
bash: mysql: command not found
mysql找不到命令
linux输入mysql没有启动
1.命令都是保存在/usr/bin下,找不到命令一定是没有在bin下创建链接
可以通过ls查看bin下的所有命令
ls /usr/bin2.下一步找到mysql的命令的位置
find / -name mysql
3.创建链接:我的是在这个目录下/usr/local/mysql/bin/mysql
ln -s /usr/local/mysql/bin/mysql /usr/bin4.再次启动mysql
mysql -uroot -p出现这样的结果就是成功了
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 148
Server version: 5.6.39 Source distribution
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
边栏推荐
- STM32F030使用定时器中断卡死的问题
- MySQL logs: undo log, redo log, binlog
- 面试基础题
- apache配置
- The correlation between BTC and technology stocks weakened, and market uncertainty increased? 53% of investors will turn to alternative assets
- LeetCode-83-删除链表中的重复元素
- leetcode双指针水题题解
- Apache configuration
- 华泰证券网上开户安全吗?资金有保障吗?
- Leetcode-62-different paths
猜你喜欢

6-Redis架构设计到使用场景-持久化机制、缓存失效策略、缓存命中率

Codeforces Global Round 21 C. Fishingprince Plays With Array

AIRIOT答疑第4期|如何使用數據分析引擎?

160_技巧_Power BI 新函数-计算工作日天数
![[ArcGIS creates a small picture frame of islands and nine segment lines in the South China Sea]](/img/5e/5d81afb511d22214a2545121f22300.png)
[ArcGIS creates a small picture frame of islands and nine segment lines in the South China Sea]

Leetcode-62-different paths

User login and registration function with verification code

openGauss 联合产业界创新,共建开源数据库根社区

Grow up Summer Challenge | learn / create from the boss, and get CSDN gift bag, exclusive certificate of honor, commemorative T-shirt and medal!

Codeforces Round #802 D. River Locks
随机推荐
Timeline and playable cause unity crash problem record
C#将数据库连接方式写到配置文件中
internship:移动端源码的分析
C语言自定义类型(结构体,位段,枚举,联合体)
日志服务器的配置
Leetcode-162- find the peak value (two points must be seen)
Opengauss cooperates with industry innovation to build a root community of open source databases
Codeforces Round #804 B Almost Ternary Matrix
Airiot q.4 | Comment utiliser le moteur d'analyse des données?
Flutter 模拟火箭发射动画
Apache configuration
Code forces round # 802 B. Palindromic Numbers
Analysis of quantum secure communication
Codeforces Round #805 A - G
Nest 框架
Analysis on the application security and technology of electronic signature
408天勤链表插入排序与双气泡排序课后习题代码
Packet filtering rules
Build a data-based system and start a new era of oid track
Leetcode-62-different paths