mysql 安装
来源:互联网 发布:layout拼图软件 编辑:程序博客网 时间:2024/05/17 06:02
- 卸载
- 下载
- 安装
- 配置
- 登录
- 修改密码
- 授权
- 开机启动
1.卸载
rpm -qa | grep mysqlrpm -e --nodeps 包名...
2.下载
wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.23-1.rhel5.x86_64.rpmwget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.23-1.rhel5.x86_64.rpmwget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.23-1.rhel5.x86_64.rpm
3.安装
[root@DBServer src]# yum install -y libaio[root@DBServer src]# rpm -ivh MySQL-server-5.6.23-1.rhel5.x86_64.rpm[root@DBServer src]# rpm -ivh MySQL-client-5.6.23-1.rhel5.x86_64.rpm[root@DBServer src]# rpm -ivh MySQL-devel-5.6.23-1.rhel5.x86_64.rpm
4.配置
[root@DBServer src]# cp /usr/share/mysql/my-default.cnf /etc/my.cnf[root@DBServer src]# /usr/bin/mysql_install_db
5.登录
[root@DBServer src]# service mysql start[root@DBServer src]# more /root/.mysql_secret[root@DBServer src]# mysql -uroot -pEHv5phYkEhMUo8sa
6.修改密码
mysql> SET PASSWORD = PASSWORD('123456');
mysql> grant all privileges on *.* to root@'%' identified by '123456' with grant option;mysql> flush privileges;
8.开机启动
[root@DBServer src]# chkconfig mysql on[root@DBServer src]# chkconfig mysql --list
0 0
- MySQL安装
- MySQL安装
- mysql安装
- mysql 安装
- 安装mysql
- Mysql安装
- mysql安装
- mysql安装
- mySQL安装
- mysql 安装
- Mysql安装
- 安装MySQL
- Mysql安装
- Mysql安装
- 安装MySQL
- MySQL 安装
- 安装MySQL
- Mysql安装
- 关于导入GPUImage
- Python Decorator 和函数式编程
- 如何实现软键盘不自动弹出
- nyoj 613
- 字符赋值转换
- mysql 安装
- 用mysqlslap对MySQL进行压力测试
- scrollview嵌套recyclerview
- 深度工具合集安装(Nvidia+CUDA+cuDNN+Tensorflow+OpenBLAS+Caffe+Theano+Keras+Torch+Mxnet+X2Go)
- leetcode算法——237. Delete Node in a Linked List(基于JAVA)
- c++ 虚函数要点
- uva12034 Race
- python—数学函数/随机数函数/三角函数
- TCP/IP之二:ARP与RARP