mysql二进制包安装与配置实战记录

导读 一般中小型网站的开发都选择 MySQL 作为网站数据库,由于其社区版的性能卓越,搭配 PHP 、Linux和 Apache 可组成良好的开发环境,经过多年的web技术发展,在业内被广泛使用的一种web服务器解决方案之一。但是mysql源码包编译时间过长,今天将采用二进制包方式安装mysql,并进行优化配置,希望对广大读者有借鉴意义。

mysql

1.安装之前,先创建mysql用户

  [root@linuxprobe_nfs ~]# useradd mysql -s /sbin/nologin -M  [root@linuxprobe_nfs ~]# id mysql  uPATH=/usr/local/mysql/bin:$PATH' >> /etc/profile  [root@linuxprobe_nfs mysql]# source /etc/profile  [root@linuxprobe_nfs mysql]# echo $PATH  /usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin  ###此处PATH路径的设置为了后续mysql命令的使用  

8.mysql登陆与密码设置

  [root@linuxprobe_nfs mysql]# mysql  Welcome to the MySQL monitor.  Commands end with ; or g.  Your MySQL connection id is 1  Server version: 5.5.32 MySQL Community Server (GPL)  Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.  Oracle is a registered trademark of Oracle Corporation and/or its  affiliates. Other names may be trademarks of their respective  owners.  Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.  mysql>    [root@linuxprobe_nfs mysql]# mysqladmin  -uroot password 'chenfan'  ###密码的设置  [root@linuxprobe_nfs mysql]# mysql -uroot -p  Enter password: chenfan  ###交互式登陆    ###至此完成MySQL的全部初始安装与配置  

本文原创地址:https://www.linuxprobe.com/mysql-combat-records.html作者:陈凡,审核员:冯振华

本文原创地址:https://www.linuxprobe.com/mysql-combat-records.html编辑:public,审核员:暂无

本站所发布的一切资源仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如果侵犯你的利益,请发送邮箱到 [email protected],我们会很快的为您处理。
超哥软件库 » mysql二进制包安装与配置实战记录