- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Mac上MySQL报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
连接MySQL显示mysql -uroot -p ERROR 2002 (HY000): Can’t connect to local MySQLserver through socket ‘/tmp/mysql.sock’这种错误是因为不能通过socket文件连接mysql服务器,先说解决方案,有两种:1、执行 sudo ln -s /Applications/MAMP/Librar...
2019-10-15 16:55:40
1490
原创 Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and
set global sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’;set session sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,...
2019-09-25 08:53:32
1927
原创 JS方法使用匿名函数作为参数
mysql使用group by 报错:SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘xxxxx’ which is not functionally ...
2019-09-18 10:25:14
1133
原创 使用Mac终端SSH连接远程服务器
先进入终端输入:ssh -p 端口号 服务器用户名@ip (例如ssh -p 22 root@119.111.168.123)回车,到这会让你输入yes或者no来确认是否连接,输入yes回车然后输入在服务器上的用户密码回车到此进入的是你在服务器上的账户的目录,即为连接成功...
2019-08-29 10:31:21
444
转载 替换及重置Homebrew默认源
替换brew.git:cd “$(brew --repo)” git remote set-url originhttps://mirrors.ustc.edu.cn/brew.git替换homebrew-core.git:cd “$(brew --repo)/Library/Taps/homebrew/homebrew-core” git remoteset-url or...
2019-08-23 11:23:57
553
原创 PHP RSA公钥加密解密,私钥加密解密
// 数据加密,使用公钥加密数据function public_key_encrypt($str){ $rsa_pub = file_get_contents(ROOT_PATH . 'data/rsa/public_key.pem'); $encrypted = ''; $pub_id = openssl_get_publickey($rsa_pub); ...
2019-08-23 09:35:50
1551
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅