Linux和MySQL的安装
1. Linux的安装(CentOS-6.5)
首先需要安装VMware Workstation,在安装完之后即可安装Linux虚拟机。
(1)VMare Workstation的安装
1)双击VMware-workstation-full-10.0.2-1744117.1398244508.exe
2)点击next进行安装

3)选择安装方式

Typical:典型安装
Custom:自定义安装
4)选择程序安装位置

点击change选择程序安装位置,然后点击next
5)选择是否自动检测更新

如勾选,有新版时会提示你跟新版本,点next进行下一步
6)创建快捷方式

选择后点击next
7)配置完成,开始安装程序

点击continue
8)开始安装虚拟原件

9)完成

点击finish完成安装
10)点击注册机获得注册码

(2)Linux的安装
1)点击VAM快捷方式进入VAM主页点击新建虚拟机

2)选择典型,点击下一步

3)选择稍后安装操作系统,点击下一步

4)选择安装的版本和系统,点击下一步

5)新建虚拟机的名称和安装的位置

6)选择创建磁盘的大小和磁盘分为多个文件,点击下一步

7)选择自定义硬件,然后配置选择镜像文件,点击关闭

8)点击完成

9)此时,在VAM主页面就会显示有一台Linux系统的虚拟机,点击打开此虚拟机

10)启动虚拟机,开始安装系统


11)开始安装,点击next

12)选择English,点击next

13)选择US.English,点击next

14)选择Basic Storage Devices,点击next

15)点击Yes.discard any data,选择next

16)注册新的虚拟机的主机名,点击next

17)选择时区shanghai,点击next

18)设置root权限的密码

19)选择Use All Space,点击next

20)选择Write changes to disk,点击next

21)选择Desktop(桌面版),点击next

22)等待安装,Linux系统的虚拟机安装成功

2. MySQL的安装
1)安装ssh远程连接工具,点击下一步,软件下载地址
http://dl.pconline.com.cn/download/398471.html

2)点击Yes

3)选择安装路径

4)点击next

5)直接点击next,直到安装成功

6)远程连接Linux虚拟机

7)点击Window,选择New File Transfer

8)进入Linux系统,右键打开Linux命令窗口

9)[endif]输入su命令,输入root密码,进入最高权限

10)创建一个tools文件夹

11)将MySQL安装包放入Linux系统中

12)输入tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C/usr/local/mysql,出现这些说明解压成功

13)在/usr/local/mysql下安装mysql
安装服务器端:yum install MySQL-server-5.6.22-1.el6.i686.rpm
安装客户端:yum install MySQL-client-5.6.22-1.el6.i686.rpm
14)[endif]启动MySQL服务
service mysql start
15)登录MySQL并设置相关的选项
1、登录mysql:
查看默认密码
grep 'temporary password' /var/log/mysqld.log
使用默认密码登录
mysql -r root -p 默认密码
mysql安装好后会生成一个临时随机密码,存储位置在/root/.mysql_secret
2、修改mysql的密码
set password = password('root');
3、开启mysql的远程登录
默认情况下mysql为安全起见,不支持远程登录mysql,所以需要设 置开启 远 程登录mysql的权限
登录mysql后输入如下命令:
grant all privileges on *.* to 'root' @'%' identified by 'root';
flush privileges;
网友评论