简体   繁体   English

工作台连接到带有鱼壳的ubuntu

[英]workbench connection to ubuntu with fish shell

I am connecting to a ubuntu server through mysql-workbench, when I want to view option file, I am getting one error 我通过mysql-workbench连接到ubuntu服务器,当我想查看选项文件时,我收到一个错误

LC_AL=C cat /etc/mysql/my.cnf fish: Unknown command “LC_AL” Did you mean set $LC_ALL C”? LC_AL = C cat /etc/mysql/my.cnf fish:未知命令“LC_AL”您的意思是设置$ LC_ALL C“? For information on assigning values to variables, see the help section on the set command by ... 有关为变量赋值的信息,请参阅set命令的帮助部分...

I was wondering how the LC_ALL is not available, I spent a lot of time and tried locale options until I understand one of my colleague installed fish shell on the system. 我想知道LC_ALL是如何不可用的,我花了很多时间并尝试了locale选项,直到我理解我的一位同事在系统上安装了鱼壳。

The command that workbench is trying to run is becoming invalid since variables in fish need to start with env . 工作台试图运行的命令变得无效,因为fish中的变量需要以env开头。

If I type bash in fish and then type the command that workbench is trying to run, then everything is fine 如果我在fish中键入bash然后键入workbench尝试运行的命令,那么一切都很好

I tried to change login behavior of workbench but couldn't find any thing in their website about the configuration file. 我试图改变工作台的登录行为,但在他们的网站上找不到有关配置文件的任何内容。

the only configurable part look like in workbench is mysql.profiles's xml that has nothing useful about this. 在workbench中唯一可配置的部分是mysql.profiles的xml,它没有任何用处。

Do I have any solution other than disable fish as default shell? 除了禁用fish作为默认shell之外,我还有其他解决方案吗?

I think you have Fish as your default shell. 我认为你有Fish作为你的默认shell。

I highly recommend to change it to bash. 我强烈建议将其改为bash。 Open a terminal and copy this: 打开终端并复制:

chsh -s /bin/bash chsh -s / bin / bash

Optionally remove Fish: 可选择删除Fish:

rm -Rf /usr/local/etc/fish /usr/local/share/fish ~/.config/fish rm -Rf / usr / local / etc / fish / usr / local / share / fish~ / .config / fish

rm /usr/local/share/man/man1/fish*.1 rm /usr/local/share/man/man1/fish*.1

cd /usr/local/bin cd / usr / local / bin

rm -f fish mimedb fish_pager fishd fish_indent rm -f fish mimedb fish_pager fishd fish_indent

From the Fish page: link 从Fish页面: 链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM