sudo  service mysql start

https://dev.mysql.com/doc/refman/5.7/en/problems-with-mysql-sock.html

B.5.3.6 How to Protect or Change the MySQL Unix Socket File

The default location for the Unix socket file that the server uses for communication with local clients is /tmp/mysql.sock. (For some distribution formats, the directory might be different, such as /var/lib/mysql for RPMs.)

On some versions of Unix, anyone can delete files in the /tmp directory or other similar directories used for temporary files. If the socket file is located in such a directory on your system, this might cause problems.

w

https://dev.mysql.com/doc/refman/5.7/en/mysqld.html

mysqld, also known as MySQL Server, is the main program that does most of the work in a MySQL installation. MySQL Server manages access to the MySQL data directory that contains databases and tables. The data directory is also the default location for other information such as log files and status files.

When MySQL server starts, it listens for network connections from client programs and manages access to databases on behalf of those clients.

The mysqld program has many options that can be specified at startup. For a complete list of options, run this command:

最新文章

  1. Angular杂谈系列1-如何在Angular2中使用jQuery及其插件
  2. http status 301/302 & java重定向/转发
  3. javax.el.PropertyNotFoundException:
  4. java:comp/env/jdbc/ 的两种配置方法
  5. 异步-学习笔记3 Task
  6. 77 找出最大连续自然数个数[Longest Consecutive Sequence in an Unsorted Array]
  7. seajs模块加载与执行原理小记
  8. json-encode()怎么进行解码呢?
  9. Java实现敏感词过滤(转)
  10. 迁移Model元数据设置项
  11. 一个chrome图片下载插件的开发过程
  12. mac android apk反编译
  13. 一个web应用的诞生(1)--初识flask
  14. 在Ubuntu12.04上安装图形化配置与window共享的samba服务器
  15. Linux系统编程---守护进程
  16. DZY Loves Math 系列详细题解
  17. BZOJ5417[Noi2018]你的名字——后缀自动机+线段树合并
  18. 使用zabbix-java-gateway可以通过该网关来监听多个JVM
  19. bzoj 4709 [Jsoi2011]柠檬——单调栈二分处理决策单调性
  20. PDO异常处理

热门文章

  1. 双线机房双网卡双ip 路由设置
  2. c++ 返回对象的引用要小心
  3. Bash中的括号(二)
  4. LayerMask小结
  5. 个人的Linux实用命令
  6. Mysql bin-log日志文件处理
  7. 解决:std::ostream operator<< should have been declared inside 'xxx'
  8. java代理模式及动态代理类
  9. elasticsearch插件三—— Marvel插件安装详解
  10. JQ实现小火箭效果