#参考资料

CSND:https://blog.csdn.net/y_server/article/details/78781177

博客园:http://www.cnblogs.com/testway/p/9289827.html

# support-files/mysql.server start 失败

ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_0_13_centos.pid).

//重启

shutdown -r

#本地连接数据库

Host '58.35.4.90' is not allowed to connect to this MySQL server.

//创建新用户,并授权

create user root2 identified by 'root2';

update user set host='%' where user='root2';

grant all privileges on *.* to 'root2'@'%';

SQLSTATE[HY000] [2054] Server sent charset unknown to the client.

//编码不对

vim /etc/my.cnf

[client]
default-character-set=utf8 [mysql]
default-character-set=utf8 [mysqld]
character-set-server = utf8

The server requested authentication method unknown to the client.

//验证机制不同

vim /etc/my.cnf

[mysqld]
default_authentication_plugin=mysql_native_password

Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM_0_13_centos.pid).

//应该是权限问题

chown -R mysql:mysql /usr/local/mysql

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

//创建软连接

ln -s /usr/local/mysql/mysql.sock /tmp/mysql.sock

ERROR! MySQL server PID file could not be found!

//重启失败,关闭进程

killall mysqld

最新文章

  1. WebApi接口 - 响应输出xml和json
  2. juery学习总结——例子
  3. jsp中查询条件的回显
  4. 关于tableView中tableHeaderView/tableFooterView/sectionHeader/sectionFooter/contentInset的理解
  5. Android 对 properties文件的读写操作
  6. Objective-C Foundation框架
  7. UITabbar item 设置笔记
  8. 老蜗牛写采集:一个漂亮的客户端-几个C#平台下的Winform 皮肤控件
  9. S3C2440触摸屏控制总结
  10. Beanstalkd介绍
  11. Linux下运行C++程序出现"段错误(核心已转储)"的原因
  12. 用elasticsearch索引mongodb数据
  13. 《利用python进行数据分析》NumPy基础:数组和矢量计算 学习笔记
  14. Python实战之Selenium自动化测试web刷新FW
  15. iOS 5个Xcode开发调试技巧
  16. Linux中以单容器部署Nginx+ASP.NET Core
  17. objective-c高级编程 笔记
  18. 服务主机superFetch占用磁盘过多
  19. ubuntu-docker入门到放弃(七)Dockerfile简介
  20. C#中的out、ref、params详解

热门文章

  1. ASP.NET MVC+Bootstrap分页Helper
  2. 想写一个 Sketch 插件 结果 一查不可收拾 ~~ 涉及到 Symbol 符号/ Layer 图层 / Overrides 可替换变量 等等
  3. Unity脚本中可以引用的类型
  4. Github添加SSHkey
  5. HDU 2150 Pipe( 判断线段相交水 )
  6. luogu 自适应Simpson1
  7. Spark机器学习之MLlib整理分析
  8. java实现登录的验证码和猜数字游戏_图形化界面
  9. Windows桌面美化
  10. 循环语句第1种 LOOP ... END LOOP;