首页 > 数据库技术 > 详细

yum 安装mysql

时间:2017-07-21 13:55:43      阅读:171      评论:0      收藏:0      [点我收藏+]

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就可以连接



yum 安装mysql

原文:http://www.cnblogs.com/cynchanpin/p/7217166.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!