File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
case "/db " :
21
21
$ db = new Swoole \Coroutine \Mysql ;
22
22
$ server = [
23
- 'host ' => 'tfb-database ' ,
23
+ 'host ' => co:: gethostbyname ( 'tfb-database ' ) ,
24
24
'user ' => 'benchmarkdbuser ' ,
25
25
'password ' => 'benchmarkdbpass ' ,
26
26
'database ' => 'hello_world '
59
59
case "/fortunes " :
60
60
$ db = new Swoole \Coroutine \Mysql ;
61
61
$ server = [
62
- 'host ' => 'tfb-database ' ,
62
+ 'host ' => co:: gethostbyname ( 'tfb-database ' ) ,
63
63
'user ' => 'benchmarkdbuser ' ,
64
64
'password ' => 'benchmarkdbpass ' ,
65
65
'database ' => 'hello_world ' //;charset=utf8
87
87
case "/updates " :
88
88
$ db = new Swoole \Coroutine \Mysql ;
89
89
$ server = [
90
- 'host ' => 'tfb-database ' ,
90
+ 'host ' => co:: gethostbyname ( 'tfb-database ' ) ,
91
91
'user ' => 'benchmarkdbuser ' ,
92
92
'password ' => 'benchmarkdbpass ' ,
93
93
'database ' => 'hello_world '
You can’t perform that action at this time.
0 commit comments