zoukankan      html  css  js  c++  java
  • mysql 5.5 安装

    1. 解压压缩包

    2. 设置 mysql_home 环境变量

    2. 与 5.7 不同 5.5 以前 使用 mysql/scripts 下的 ./mysql_install_db 脚本 初始化。!

    3.启动mysql服务和添加开机启动mysql服务:

     

    添加开机启动:执行命令cp support-files/mysql.server /etc/init.d/mysql,把启动脚本放到开机初始化目录

     

    启动mysql服务:执行命令service mysql start

     

    博客地址:

    https://www.cnblogs.com/lhrbest/p/7445468.html

    Usage: /usr/local/mysql/bin/mysql_install_db [OPTIONS]
      --basedir=path       The path to the MySQL installation directory.
      --cross-bootstrap    For internal use.  Used when building the MySQL system
                           tables on a different host than the target.
      --datadir=path       The path to the MySQL data directory.
      --force              Causes mysql_install_db to run even if DNS does not
                           work.  In that case, grant table entries that normally
                           use hostnames will use IP addresses.
      --ldata=path         The path to the MySQL data directory.
      --rpm                For internal use.  This option is used by RPM files
                           during the MySQL installation process.
      --skip-name-resolve  Use IP addresses rather than hostnames when creating
                           grant table entries.  This option can be useful if
                           your DNS does not work.
      --srcdir=path        For internal use.  The directory under which
                           mysql_install_db looks for support files such as the
                           error message file and the file for popoulating the
                           help tables.
      --user=user_name     The login username to use for running mysqld.  Files
                           and directories created by mysqld will be owned by this
                           user.  You must be root to use this option.  By default
                           mysqld runs using your current login name and files and
                           directories that it creates will be owned by you.

  • 相关阅读:
    Tomcat6 只允许指定域名访问,禁用IP地址访问,防止恶意解析
    java实现http协议发送和接收数据
    firefox下jquery ajax 返回 [object XMLDocument]处理
    js 格式化时间
    Jquery中的offset()和position()深入剖析(元素定位)
    sql格式化时间
    tomcat绑定域名
    查看tomcat的版本号
    [转载] IOS 获取网络图片的大小 改变 图片色值 灰度什么的方法集合
    CABasicAnimation动画
  • 原文地址:https://www.cnblogs.com/whm-blog/p/10895952.html
Copyright © 2011-2022 走看看