[기타] go db 접속 gin
https://dejavuqa.tistory.com/336?category=320633
How to write log file
로그 파일을 만들어 보겠습니다. https://github.com/gin-gonic/gin#how-to-write-log-file 코드는 몇지 되지 않습니다. 먼저 command 창에 로그를 찍지 않도록 합니다. gin.DisableConsoleColor() 로그 파일 이름..
dejavuqa.tistory.com
https://dejavuqa.tistory.com/331
mysql curd (with Gin)
Gin에서 mysql의 CURD 예제를 확인해 보겠습니다. https://gist.github.com/rsj217/26492af115a083876570f003c64df118#file-golang-gin-mysql-curd-go-L99 먼저 go-sql-driver의 mysql package를 다운 받습니다. $..
dejavuqa.tistory.com
https://dejavuqa.tistory.com/317
아 그리고
my.ini 는
# The following options will be passed to all MySQL clients
[client]
password = ngle1234
port=3306
config.inc.php 는
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'ngle1234';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
이렇게 하면 phpmyadmin 에 접속된다.