详解如何在阿里云上安装mysql
16lz
2021-12-25
mysql作为轻量级开源数据库,在企业级的应用中非常的广泛。我之前用过mssql,oracle,postgresql,mysql。目前阿里云上面暂时没有oracle。就我个人使用情况来看,创建项目我会首选mysql。
卸载已有的mysql
系统中可能早已存在mysql数据库,所以在安装之前我们需要将其卸载掉。
# rpm -qa|grep -i mysql
# yum remove '软件名'
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmrpm -ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-community-server
service mysqld restart
mysql -u root
mysql>set password for ‘root‘@'localhost' =password(‘password');
mysql> grant all privileges on *.* to root@'%'identified by ‘password';
更多相关文章
- MySQL系列多表连接查询92及99语法示例详解教程
- 【阿里云镜像】切换阿里巴巴开源镜像站镜像——Fedora镜像
- 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
- 【阿里云镜像】切换阿里巴巴开源镜像站镜像——Debian镜像
- Android(安卓)- Manifest 文件 详解
- Android的Handler机制详解3_Looper.looper()不会卡死主线程
- Selector、shape详解(一)
- android2.2资源文件详解4--menu文件夹下的菜单定义
- Android发送短信方法实例详解