

mysql安装步骤(2)直接安装
source link: https://wakzz.cn/2017/09/29/mysql/%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4(2)%E7%9B%B4%E6%8E%A5%E5%AE%89%E8%A3%85/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

mysql安装步骤(2)直接安装
一、准备文件
mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz
官网下载链接
$ tar mysql-5.6.36-linux-glibc2.5-x86_64.tar.gz
三、MySQL安装
1、进入mysql的安装路径
$ cd mysql-5.6.36-linux-glibc2.5-x86_64/
$ mkdir datadir
2、复制默认配置文件
$ cp support-files/my-default.cnf ./my.cnf
3、修改配置文件my.cnf
basedir = /home/sun_zeming/mysql/mysql-5.6.36-linux-glibc2.5-x86_64
datadir = /home/sun_zeming/mysql/mysql-5.6.36-linux-glibc2.5-x86_64/datadir
port = 6660
# server_id = .....
socket = /home/sun_zeming/mysql/mysql-5.6.36-linux-glibc2.5-x86_64/mysql.sock
4、安装mysql
$ ./scripts/mysql_install_db --user=root --defaults-file=/home/sun_zeming/mysql/mysql-5.6.36-linux-glibc2.5-x86_64/my.cnf
四、启动MySQL
$ ./bin/mysqld --defaults-file=/home/sun_zeming/mysql/mysql-5.6.36-linux-glibc2.5-x86_64/my.cnf
五、MySQL授权
1、设置root用户密码
$ ./bin/mysqladmin –h127.0.0.1 –P6660 -u root password "123456"
2、登录mysql
$ ./bin/mysql –h127.0.0.1 -P6660 -uroot -p123456
mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
Recommend
-
50
SQL server 2012安装步骤 点击左侧“安装”,选择右侧“全新……”
-
62
docker的介绍docker的定义:1.docker的三个概念:Docker是一个开源的引擎,可以轻松的为任何应用创建一个轻量级的、可移植的、自给自足的容器Docker镜像-Dockerimages:Docker镜像是Docker容器运行时的只读模板Docker仓库-Dockerregisteries:Docker仓库用来保存镜...
-
34
文案创作从来不是拿起笔就写,放下笔就完。它有足够的时间去准备、去打磨、去尝试,让“笨蛋”变成“聪明人”。 最好闭上...
-
55
介绍Linux下memcached详细安装步骤,自己的实际安装经验
-
17
第20课:Electron 直接访问 MySQL 数据库 不管是 local...
-
3
MySQL-5.7.32压缩包安装步骤 - SegmentFault 思否MySQL-5.7.32压缩包安装步骤发布于 46 分钟前下载MySQL压缩包
-
1
mysql安装步骤(3)注意事项 祈雨的博客 2017-09-29
-
3
一、准备文件mysql-5.6.31.tar.gz下载链接 yum install -y glibc.i686yum install -y gcc gcc-c++yum install -y cmakeyum install -y ncurse...
-
7
mysql安装步骤(5)5.7安装 祈雨的博客 2018-03-15
-
3
Nic Lin's Blog喜歡在地上滾的工程師承上篇提到...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK