• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

cynchanpin

  • 博客园
  • 联系
  • 订阅
  • 管理

View Post

yum 安装mysql

1、安装

查看有没有安装过:         yum list installed mysql*

查看有没有安装包:         yum list mysql*

安装mysqlclient:          yum install mysql

安装mysql 服务器端:     yum install mysql-server          yum install mysql-devel

2、启动&&停止

数据库字符集设置 mysql配置文件/etc/my.cnf中增加default-character-set=utf8

启动mysql服务: service mysqld start 或者 /etc/init.d/mysqld start

开机启动:chkconfig --add mysqld。

查看开机启动设置是否成功chkconfig --list | grep mysql*

3、创建帐户

grant all on hive_metadata.* to hive@'%' identified by 'hive';

grant all on hive_metadata.* to hive@localhost identified by 'hive'; localhost能够配对应的本机电脑的ip。这样client就可以连接



posted on 2017-07-21 13:17  cynchanpin  阅读(157)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3