LoginSignup
0
1

More than 5 years have passed since last update.

アプリを使わずにphp+mysql開発環境をつくる(mac)

Last updated at Posted at 2017-03-30

php

mac osX yosemite version 10.10.4に入っていたのは
5.5.24

wordpress 推奨は 5.6 以上
なのでアップデートをします
(今はちょっと飛ばす)

mysql

インストール

$ brew update
$ brew install mysql

データを入れ込む
http://blog.factory70.com/systems-engineering/sql-file-import-by-terminal

念のため情報確認

$ brew info mysql
or
$ mysql --version
mysql  Ver 14.14 Distrib 5.7.16, for osx10.10 (x86_64) using  EditLine wrapper

起動

$ mysql.server start

Starting MySQL
. SUCCESS! 

ルートユーザーでログイン

mysql -uroot

今回はすでにデータが用意されていたので、それを使用。

source ******.sql

サーバーを立てる

php のデフォルトコマンド?から立ち上げます。

$ php -S localhost:3000

参考記事

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1