「Mac/xampp」の版間の差分
ナビゲーションに移動
検索に移動
編集の要約なし |
|||
| 28行目: | 28行目: | ||
===php.ini=== | ===php.ini=== | ||
/Applications/XAMPP/xamppfiles/etc/php.ini | /Applications/XAMPP/xamppfiles/etc/php.ini | ||
===mysql起動=== | ===mysql起動=== | ||
| 53行目: | 43行目: | ||
update mysql.user set password=password('パスワード1') where user = 'root'; | update mysql.user set password=password('パスワード1') where user = 'root'; | ||
flush privileges; | flush privileges; | ||
</pre> | |||
==mysql設定== | |||
/Applications/XAMPP/xamppfiles/etc/my.cnf | |||
===mysqlのsqlログ出力設定=== | |||
<pre> | |||
[mysqld] | |||
general_log=1 | |||
general_log_file=/Applications/XAMPP/xamppfiles/temp/mysql/myquery.log | |||
</pre> | </pre> | ||
2024年10月28日 (月) 03:29時点における版
xamppインストール
https://www.apachefriends.org/jp/download.html
2024/10/2現在最新の 8.2.4をダウンロード
ディレクトリ
/Applications/XAMPP
"“XAMPP”は、開発元が未確認のため開けません。"エラーが出る場合
macの設定のプライバシーから許可をする
apache設定ファイル
/Applications/XAMPP/xamppfiles/etc/httpd.conf
apache設定ドキュメントルート
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
apacheにmacと同じ権限を与える場合
httpd.conf の以下の#を削除し、macユーザーに切り替える
#User daemon #Group daemon
xamppコントロールパネル起動
Applications/XAMPP/manager-osx をクリック
php.ini
/Applications/XAMPP/xamppfiles/etc/php.ini
mysql起動
vi ~/.bash_profile ( or vi ~/.zshrc) export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin source ~/.bash_profile ( or source ~/.zshrc)
mysql初回パス設定
mysql -uroot
update mysql.user set password=password('パスワード1') where user = 'root';
flush privileges;
mysql設定
/Applications/XAMPP/xamppfiles/etc/my.cnf
mysqlのsqlログ出力設定
[mysqld] general_log=1 general_log_file=/Applications/XAMPP/xamppfiles/temp/mysql/myquery.log