Skip to content

Instantly share code, notes, and snippets.

View horitaku1124's full-sized avatar

Horimatsu Takuya horitaku1124

  • Tokyo
View GitHub Profile
@horitaku1124
horitaku1124 / Vagrantfile
Last active August 10, 2020 23:21
Phalcon getting started
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-19.10"
config.vm.network "private_network", ip: "192.168.33.9"
config.vm.synced_folder "./", "/mnt/phalcon_test"
config.vm.provision "shell", inline: <<-SHELL
async function postFormData(url = '', data = "") {
const response = await fetch(url, {
method: 'POST',
mode: 'cors',
cache: 'no-cache',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
redirect: 'follow',
CREATE DATABASE dabase_name CHARACTER SET utf8mb4;

create user 'mysql_user'@'localhost' identified by 'mysql_user_password';

GRANT ALL PRIVILEGES ON dabase_name.* to mysql_user@localhost IDENTIFIED BY 'mysql_user_password';

MySQL8では IDENTIFIED BY は使えない

docker run -p 27018:27017 -d --rm -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=secret --name mongo1 mongo
docker exec -it mongo1 bash
brew tap mongodb/brew
brew install mongodb-community
sudo apt update
sudo apt install mariadb-server
sudo /etc/init.d/mysql start