Home > Database > Mysql Tutorial > body text

Linux系统中怎么将mysql加到命令行里

WBOY
Release: 2016-06-07 16:52:49
Original
1006 people have browsed it

第一次接触Linux系统中的隐藏文件。要将mysql加到命令行中,需要修改/home/root/.bash_profile中的PATH变量。此处,root是你的用

第一次接触Linux系统中的隐藏文件。

要将mysql加到命令行中,需要修改/home/root/.bash_profile中的PATH变量。

此处,root是你的用户名,.bash_profile是一个系统隐藏文件。

PATH=$PATH:$HOME/bin:/usr/local/mysql/bin

在PATH的最后加上mysql/bin的路径。

然后source .bash_profile即可即时生效。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template