MySQL在CenterOS和Ubuntu的安装
来源:互联网 发布:数据库逻辑完整性 编辑:程序博客网 时间:2024/06/05 11:19
声明:作者原创,转载注明出处。
作者:帅气陈吃苹果
下载地址:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz
1、centeros安装mysql
参考地址:http://www.linuxidc.com/Linux/2016-09/134940.htm
yum install mysql-server
若提示没有可用软件包,则需进行下列操作:
//下载mysql的repo源[rooot@localhost ~ ] wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm//安装,将获得两个mysql的yum repo源:/etc/yum.repos.d/mysql-#community.repo,/etc/yum.repos.d/mysql-community-source.repo[rooot@localhost ~ ] rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql mysql-server mysql-libs mysql-server;
参考自:https://www.cnblogs.com/snake-hand/p/3157247.html
//检查是否安装rpm -qa|grep -i mysql//启动mysql服务service mysql start//以root身份打开数据库mysql -u root
2、ubuntu安装mysql
sudo apt-get install mysql-server
安装mysql之后,创建用户:
[rooot@localhost ~ ] mysql -u root -p// 输入密码后,1、创建用户MySQL [(none)]> CREATE USER 'hive'@'%' IDENTIFIED BY 'hive';// 2、赋予权限MySQL [(none)]> GRANT ALL PRIVILEGES OON *.* TO 'hive'@'%' WITH GRANT OPTION;// 3、强制写出MySQL [(none)]> flush privileges;// 为了让远程用户可以访问mysql,修改/etc/mysql/my.cnf文件,注释bind-address一行,如下 #bind-address//重启mysqlsudo /etc/ini.d/mysql restart
阅读全文
0 0
- MySQL在CenterOS和Ubuntu的安装
- CenterOS下的mysql安装及初始化:
- centeros安装mysql
- centeros 安装 mysql
- 在CenterOS 6.5上安装Apache mysql php
- Ubuntu,CenterOs下 nginx 安装
- ubuntu及CenterOS下的easy_install安装(python)
- centerOS源码编译安装mysql
- python3.0 在linux centerOS 5.2上的编译安装
- 安装centerOS和破解secureCRT
- CenterOs 7 下Redis的安装和配置
- centeros下redis 的安装
- Linux-CenterOS在线yum 安装MySql
- 在ubuntu下的快速安装mysql和 Python MySQLdb
- centeros的Linux环境安装(Java)
- MySQL在ubuntu上的安装指南
- mysql在Ubuntu上的安装
- 阿里云 CenterOS 安装mysql java tomcat gcc nginx步骤
- JS使用getJSON获取站点配置文件
- (算法分析Week15)01Matrix[Medium]
- python之函数用法fromkeys()
- 11. Container With Most Water
- 不规则数组
- MySQL在CenterOS和Ubuntu的安装
- android.content.ActivityNotFoundException: No Activity found to handle Intent
- 静态资源运维方案
- HBase的下载、安装与配置
- PAT (Advanced Level) Practise 1007. Maximum Subsequence Sum (25)
- 闲得蛋疼之MC9S12单片机 纯汇编文件编写 与c混合
- 使用Intellij IDEA生成JavaDoc
- windows上Jenkins安装
- Android 优雅的为RecyclerView添加HeaderView和FooterView