日期:2014-05-16  浏览次数:20673 次

MacPorts:Install and configure MySQL 5

macport相当于linux下的yum或者是aptget等包管理软件,可以很方便的安装软件。下面来看一下他的基本命令

基本命令:mac port command

转自:http://www.joycodes.com/index.php/mac-port-update-command/

?

* 更新port自身


sudo port selfupdate

* 列表


post list


* 搜索包


port search package #package为搜 索名称,支持通配符

* 安装


sudo port install package

* 删除

sudo port uninstall package

* 更新过期的包



sudo port upgrade outdated

* 删除为激活的包


sudo port uninstall inactive

有关port的命令还有很多,详情请参考http://guide.macports.org/

?

===========

?

Install and configure MySQL 5 with MacPorts

转自:http://beike.iteye.com/blog/617341

I decided to move my MySQL server installation from the server I installed from MySQL .com to macports. Why? I believe MacPorts will simplify future upgrades. I'd also like to keep my LAMP installs in the same location. If you haven't already, install and configure MacPorts . Here are the steps I'll go over:

  • Intall MySQL 5
  • Create the initial MySQL databases
  • Options for starting MySQL
  • Confirm that MySQL is running
  • Set Basic MySQL Security

Install MySQL 5

You can install using Porticus, Port Authority, or from the command line:

  1. sudo??port ?install??mysql5?+server??
<