首页 \ 问答 \ 怎么用mybatis去访问数据库了

怎么用mybatis去访问数据库了

更新时间:2021-09-02 17:09

最满意答案

有管理员权限就能修改啊,用任意编辑器都行

其他回答

就提示.bashrc损坏?

fsck一下? 

偶原来把root文件夹都删除了,后来也能登录,不过shell什么的不一样了,

你可以复制一个就ok了,

什么系统?

rehl的:
# .bashrc

# user specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

相关问答

更多
  • 有管理员权限就能修改啊,用任意编辑器都行
  • 在等号前后不能有空格。 这应该工作: export PS1="\w>" alias dev='cd Downloads/Dropbox/__dev/' alias sample_app='cd dev/rails_projects/sample_app/' You can't have spaces before and after the equality sign. This should work: export PS1="\w>" alias dev='cd Downloads/Dropbox ...
  • 您正在使用错误的语法。 放下空间: export PATH=$PATH:/home/username/foo 关于/etc/login.defs或其他全局配置:这是全局配置,所以在你的$HOME目录中添加路径可能是一个坏主意。 ;) You are using the wrong syntax. Drop the spaces: export PATH=$PATH:/home/username/foo Regarding /etc/login.defsor any other global config ...
  • 难道你不想生成该文件(即在现有的bash过程中运行它)而不是产生一个新的 bash过程(因为脚本的第一行建议你正在做)? Don't you want to source that file (i.e. run it within the existing bash process) rather than spawn off a new bash process (as the first line of the script would suggest you're doing) ?
  • 它将Window标题设置为MSYSTEM变量的值。 就空间来说,看起来你搞砸了最后的换行符,仔细注意 export PS1='\[\033]0;$MSYSTEM:\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' 在新行的每个开头上方的变量中,在PS1插入一个文字换行符。 如何更改xterm的标题 It sets the Window title to the value of MSYSTEM variable. As far as the space, it ...
  • 文件/etc/environment和/etc/bash.bashrc和/etc/profile由root拥有,就像该目录/etc大多数文件一样。 这是预期的,应该如此。 ~/ aka $HOME的文件通常是/home/username应该包含.bashrc和.profile : $ ls ~/.bashrc ~/.profile /home/user/.bashrc /home/user/.profile 这些文件应该由用户拥有,就像在该目录中一样。 如果这些文件由root拥有,请更改它。 我Ubun ...
  • ~/.bashrc在用户登录时以用户身份运行。它不会在启动时运行。 如果要更改文件的权限,则需要具有此权限。 该消息告诉您没有权限 - 只有root才能这样做。 在启动时执行自定义操作的最简单方法是将其粘贴到文件/etc/rc.local 。 这个脚本在启动后由root运行(所以每次重启时都是如此),所以你可以将chmod命令放在那里。 ~/.bashrc is run as the user when the user logs in. It is not run on boot. If you want ...
  • 步骤4只是说编辑并将这些行附加到文件的末尾。 如果文件不存在则没有问题。 只需向上打开并插入这些行,然后保存。 Step 4 just says edit and append those lines at the end of the file. There is not a problem if the file does not exist. Just open in up and insert those lines, then save.
  • 我认为正在发生的是配置脚本以root(或sudo)身份运行,因此“〜”home位置实际上是/ root而不是默认用户home位置/ home / vagrant。 我可以想到几种方法来解决这个问题: 首先(也可能是最简单的)是明确的.bashrc路径,如: # Vagrantfile Vagrant.configure("2") do |config| ... various cmds to set box and network... $install_user_vars = <