zoukankan      html  css  js  c++  java
  • 解决安装编译工具gcc后无法连接mysql

    在安装编译工具gcc后:

    yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

    mysql断开了连接.

    查看mysqld.log 日志:

    mysql日志
    171210 19:38:22 [Note] Plugin 'FEDERATED' is disabled.
    171210 19:38:22 InnoDB: The InnoDB memory heap is disabled
    171210 19:38:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    171210 19:38:22 InnoDB: Compressed tables use zlib 1.2.3
    171210 19:38:22 InnoDB: Using Linux native AIO
    171210 19:38:22 InnoDB: Initializing buffer pool, size = 128.0M
    171210 19:38:22 InnoDB: Completed initialization of buffer pool
    171210 19:38:22 InnoDB: highest supported file format is Barracuda.
    171210 19:38:22  InnoDB: Waiting for the background threads to start
    171210 19:38:23 InnoDB: 5.5.55 started; log sequence number 1589339
    171210 19:38:23 [ERROR] /usr/libexec/mysqld: unknown variable 'default-character-set=utf8'
    171210 19:38:23 [ERROR] Aborting  
    171210 19:38:23  InnoDB: Starting shutdown...
    171210 19:38:24  InnoDB: Shutdown completed; log sequence number 1589339
    171210 19:38:24 [Note] /usr/libexec/mysqld: Shutdown complete

    发现是编码问题:

     

    修改该文件:

  • 相关阅读:
    DP_knapsack
    也谈交换两个变量
    SidebySide Assembly
    Generate permutation for N elements
    Pixel Shader 像素着色
    Drill into View Matrix
    使用D3DXCreateSphere绘图的步骤
    原来VisualStudio本身也可以查看调试信息
    DirectX Effects初探
    Shortcuts
  • 原文地址:https://www.cnblogs.com/mrszhou/p/8021759.html
Copyright © 2011-2022 走看看