zoukankan      html  css  js  c++  java
  • mysql linux安装遇到的问题

    1、Can't connect to local MySQL server through socket '/tmp/mysql.sock'

    做了个软连接:ln -s /var/lib/mysql/mysql.sock /tmp

    2、

    [root@lml7wenjian software]# service mysql start
    Starting MySQL.2020-01-21T07:46:16.483318Z mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists.
    ERROR! The server quit without updating PID file (/var/lib/mysql/lml7wenjian.pid).

    [root@lml7wenjian lib]# mkdir   /var/lib/mysql
    [root@lml7wenjian lib]# chmod 777  /var/lib/mysql
    [root@lml7wenjian lib]# service mysql start
    Starting MySQL. SUCCESS!
    

      3、my.cnf 配置:

    [mysqld]
    datadir=/usr/local/mysql/data
    basedir=/usr/local/mysql/
    socket=/var/lib/mysql/mysql.sock
    user=mysql
    port=3306
    character-set-server=utf8
    # remove password auth
    #skip-grant-tables
    # Disabling symbolic-links is recommended to prevent assorted security risks
    symbolic-links=0
    # Settings user and group are ignored when systemd is used.
    # If you need to run mysqld under a different user or group,
    # customize your systemd unit file for mariadb according to the
    # instructions in http://fedoraproject.org/wiki/Systemd
    
    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    
    #
    # include all files from the config directory
    #
    !includedir /etc/my.cnf.d
    

      

     找文件时遇到的问题,

    yum -y install numactl

    再试试这个

    yum install libaio

    www.beicaiduo.com
  • 相关阅读:
    python模块--time模块
    python模块--如何相互调用自己写的模块
    Animating Views Using Scenes and Transitions
    fragment 切换
    android textview 设置text 字体
    android intent 5.1
    android EditView ime
    animation of android (4)
    animation of android (3)
    animation of android (2)
  • 原文地址:https://www.cnblogs.com/hoge66/p/12222259.html
Copyright © 2011-2022 走看看