Home > Database > Mysql Tutorial > MySQL4Mac及环境变量_MySQL

MySQL4Mac及环境变量_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:30:46
Original
866 people have browsed it

bitsCN.com

MySQL4Mac及环境变量

 

版本:mysql-5.1.41-osx10.5-x86

 

先要进入系统偏好设置 Start MySQL Server

进入 mysql 的命令是:/usr/local/mysql/bin/mysql 

使用 alias 简化命令:alias mysql=/usr/local/mysql/bin/mysql 

如果没有将该命令追加到 ~/.bash_profile,那么该别名仅在本次操作中生效。

也就是说,当你关闭该 Terminal 窗口在重新打开时,该别名将不再可用(须重新设置)。

mysql4mac 安装镜像中除了 ReadMe.txt 外的其他几个文件,都必须要点一遍,

点击 MySQL.prefPane 文件后,你会发现 System Preferences 里面多了一个 MySQL 的条目,

点击该条目后可以在新窗口中开启和关闭 MySQL 的服务(以及设置是否在开机时启动 MySQL 服务)。

 

也可设置环境变量: 

export 命令是为了让用户设置的环境变量生效,能被相应的应用程序或守护进程访问到。 

export 是把你设置的环境变量传给当前 SHELL 的子 SHELL,使其在子 SHELL 中有效。  

 

要想使它下次也有用的话,就修改配置文件:

bsh/ksh 修改用户目录下的 .profile;

csh 修改用户目录下的 .cshrc 或 .login,

注意它们是隐藏文件,用 ls -a 可显示出来,在相应用户的目录下的。

 

启动 Tomcat 的命令是:/Applications/jakarta……/start_tomcat

启动后台信息:转到 /Applications/jakarta……/logs 下,tail -f catalina.out

bitsCN.com
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
Latest Issues
node.js - Can npm depend on local projects?
From 1970-01-01 08:00:00
0
0
0
React: sync with local storage
From 1970-01-01 08:00:00
0
0
0
How to access php local project LAN?
From 1970-01-01 08:00:00
0
0
0
About using Cordova's local notification plugin
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template