摘要:
Go语言操作MySQL数据库 go get -u -v github.com/go-sql-driver/mysql 2 配置环境 //创建目录,将作为GOPATH,为以后的代码工作目录mkdir -p ~/goPro/binmkdir -p ~/goPro/src //安装golang$ sudo 阅读全文
摘要:
//重置密码ALTER USER 'root'@'localhost' IDENTIFIED BY '111'; //安装插件 go get -u -v github.com/go-sql-driver/mysql //开机启动 systemctl enable mariadb #自启动 syste 阅读全文
摘要:
1. 安装mariadb 1.选择包 yaourt mariadb sudo pacman -S mariadb 不初始化 直接进入 数据库 会报一下错误 ERROR 2002 (HY000): Can't connect to local MySQL server through socket ' 阅读全文