github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/mysql/README.md (about)

     1  Gohan MYSQL example
     2  --------------------
     3  
     4  In this example, we show mysql config example.
     5  
     6  You can run gohan + mysql with this command.
     7  
     8  MYSQL_PASSWORD=$MYSQL_PASSWORD gohan server --config-file gohan.yaml
     9  
    10  ``` yaml
    11  # database connection configuraion
    12  database:
    13      type: "mysql"
    14      connection: "root:{{.MYSQL_PASSWORD}}@/gohan"
    15  ```
    16  
    17  You can see more mysql configuraion here
    18  https://github.com/go-sql-driver/mysql
    19  
    20  Simple test script
    21  ------------------
    22  
    23  You can test concurrent db asccess using test.sh.
    24  This example create network resource with 3 process.
    25  
    26  ``` shell
    27  ./test.sh &
    28  ./test.sh &
    29  ./test.sh &
    30  ```