温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux学习笔记4月9日任务

发布时间:2020-06-21 12:39:28 来源:网络 阅读:428 作者:Linux王者 栏目:MySQL数据库

11.1 LAMP架构介绍

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

11.2 MySQL、MariaDB介绍

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

11.3/11.4/11.5 MySQL安装

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

./scripts/mysql_install_db --user=mysql --datadir=/data/mysql运行后提示,需要安装其他包,如下图:

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

再次运行./scripts/mysql_install_db --user=mysql --datadir=/data/mysql,

复制# cp support-files/my-default.cnf /etc/my.cnf

cp:是否覆盖"/etc/my.cnf"? n

修改/etc/my.cnf,如下图,

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

#cp support-files/mysql.server /etc/init.d/mysqld

# vi /etc/init.d/mysqld,如下图

Linux学习笔记4月9日任务Linux学习笔记4月9日任务

设置开机启动#chkconfig --add mysqld

查看开机启动项# chkconfig --list

启动mysql,#service mysqld start或#/etc/init.d/mysqld start


扩展

mysql5.5源码编译安装 http://www.aminglinux.com/bbs/thread-1059-1-1.html

mysql5.7二进制包安装(变化较大) http://www.apelearn.com/bbs/thread-10105-1-1.html


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI