归档:2018 年 7 月
共 22 篇mysql修改root密码 && mysql允许远程连接
修改密码: use mysql update user set password=password('xxx') where user='root' and host='localhost'; 远程连接: grant all privile…
IP地址获取当前地理位置(省份)的接口 转
腾讯 的接口是 ,返回数组 http://fw.qq.com/ipaddress 返回值 var IPData = new Array("61.135.152.194","","北京市",""); 新浪 的接口 : http://int.d…
数据库优化之读写分离 转
前言 网站发展的初期,由于没有太多访问量,一般来讲只需要一台服务器就够了,这时候应用软件、数据库、文件等所有资源都在一台服务器上。随着用户量和数据文件的增加,单台服务器的性能达到瓶颈,这时候需要把应用软件、数据库和文件资源单独拆分出来,满足…
如何设置httpd-mpm-conf的参数 转
首先确定apache是使用哪种工作模式 是prefork模式还是worker模式 查看方法 apachectl -l 显示结果: Compiled in modules: core.c mod authn file.c mod authn …
Netdata安装和使用(Linux 性能实时监测工具) 转
转自http://soluck.iteye.com/blog/2291618 Netdata 是一款 Linux 性能实时监测工具.。以web的可视化方式展示系统及应用程序的实时运行状态(包括cpu、内存、硬盘输入/输出、网络等linux性…
MySQL8 修改数据库加密方式 转
Mysql 安装完客户端连接报错:“Authentication plugin 'caching sha2 password' cannot be loaded: ” 意思是客户端不支持caching sha2 password的加密方式。…
PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers
微擎出错信息: Fatal error : Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2054] Server sent charset unknown…
php连接docker mysql 8.0出错authentication method unknown 转
在my.cnf中加一句: default authentication plugin =mysql native password 变成原来的验证方式即可