linux下MySQL5.6安装记录

MySQL下载地址:
ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/
http://mirrors.sohu.com/mysql/

1.查看服务器版本:

[[email protected] ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)

[[email protected] ~]# rpm -qa|grep mysql
mysql-libs-5.1.66-2.el6_3.x86_64
发现有mysql包

2.初次安装:
[[email protected] ~]# cd /mysql
[[email protected] mysql]# ls
lost+found
[[email protected] mysql]# ls
lost+found  MySQL-client-5.5.38-1.linux2.6.x86_64.rpm  MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
[[email protected] mysql]# rpm -ivh MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
Preparing...                ########################################### [100%]
     file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
     file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.38-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
[[email protected] mysql]#
[[email protected] mysql]#
[[email protected] mysql]#
[[email protected] mysql]# mysql
-bash: mysql: command not found
[[email protected] mysql]# cd /usr/share/mys
-bash: cd: /usr/share/mys: No such file or directory
[[email protected] mysql]# cd /usr/share/mysql/
[[email protected] mysql]# ls
charsets  danish  english   french  greek      italian   korean     norwegian-ny  portuguese  russian  slovak   swedish
czech     dutch   estonian  german  hungarian  japanese  norwegian  polish        romanian    serbian  spanish  ukrainian

发现冲突,问题原因是安装操作系统时,选中了默认的mysql。

3.卸载原始mysql包:
[[email protected] share]# yum remove mysql-libs
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.66-2.el6_3 will be erased
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-2.2.el6_1.x86_64
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be erased
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be erased
--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-7.el6.x86_64
--> Running transaction check
---> Package cronie.x86_64 0:1.4.4-7.el6 will be erased
--> Processing Dependency: cronie = 1.4.4-7.el6 for package: cronie-anacron-1.4.4-7.el6.x86_64
--> Running transaction check
---> Package cronie-anacron.x86_64 0:1.4.4-7.el6 will be erased
--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch
--> Processing Dependency: /etc/cron.d for package: sysstat-9.0.4-20.el6.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package crontabs.noarch 0:1.10-33.el6 will be erased
---> Package sysstat.x86_64 0:9.0.4-20.el6 will be erased
--> Finished Dependency Resolution
base                                                                                                                                                                    | 3.7 kB     00:00    
base/primary_db                                                                                                                                                         | 4.4 MB     00:12    
extras                                                                                                                                                                  | 3.4 kB     00:00    
extras/primary_db                                                                                                                                                       |  19 kB     00:00    
updates                                                                                                                                                                 | 3.4 kB     00:00    
updates/primary_db                                                                                                                                                      | 3.7 MB     00:01

Dependencies Resolved

===============================================================================================================================================================================================
Package                                 Arch                            Version                                       Repository                                                         Size
===============================================================================================================================================================================================
Removing:
mysql-libs                              x86_64                          5.1.66-2.el6_3                                @anaconda-CentOS-201303020151.x86_64/6.4                          4.0 M
Removing for dependencies:
cronie                                  x86_64                          1.4.4-7.el6                                   @anaconda-CentOS-201303020151.x86_64/6.4                          166 k
cronie-anacron                          x86_64                          1.4.4-7.el6                                   @anaconda-CentOS-201303020151.x86_64/6.4                           43 k
crontabs                                noarch                          1.10-33.el6                                   @anaconda-CentOS-201303020151.x86_64/6.4                          2.4 k
perl-DBD-MySQL                          x86_64                          4.013-3.el6                                   @anaconda-CentOS-201303020151.x86_64/6.4                          338 k
postfix                                 x86_64                          2:2.6.6-2.2.el6_1                             @anaconda-CentOS-201303020151.x86_64/6.4                          9.7 M
sysstat                                 x86_64                          9.0.4-20.el6                                  @anaconda-CentOS-201303020151.x86_64/6.4                          807 k

Transaction Summary
===============================================================================================================================================================================================
Remove        7 Package(s)

Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Erasing    : sysstat-9.0.4-20.el6.x86_64                                                                                                                                                 1/7
  Erasing    : cronie-1.4.4-7.el6.x86_64                                                                                                                                                   2/7
  Erasing    : cronie-anacron-1.4.4-7.el6.x86_64                                                                                                                                           3/7
  Erasing    : crontabs-1.10-33.el6.noarch                                                                                                                                                 4/7
  Erasing    : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                                                                                            5/7
  Erasing    : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                           6/7
  Erasing    : mysql-libs-5.1.66-2.el6_3.x86_64                                                                                                                                            7/7
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                                                                                            1/7
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                           2/7
  Verifying  : cronie-anacron-1.4.4-7.el6.x86_64                                                                                                                                           3/7
  Verifying  : crontabs-1.10-33.el6.noarch                                                                                                                                                 4/7
  Verifying  : sysstat-9.0.4-20.el6.x86_64                                                                                                                                                 5/7
  Verifying  : mysql-libs-5.1.66-2.el6_3.x86_64                                                                                                                                            6/7
  Verifying  : cronie-1.4.4-7.el6.x86_64                                                                                                                                                   7/7

Removed:
  mysql-libs.x86_64 0:5.1.66-2.el6_3

Dependency Removed:
  cronie.x86_64 0:1.4.4-7.el6        cronie-anacron.x86_64 0:1.4.4-7.el6      crontabs.noarch 0:1.10-33.el6      perl-DBD-MySQL.x86_64 0:4.013-3.el6      postfix.x86_64 2:2.6.6-2.2.el6_1    
  sysstat.x86_64 0:9.0.4-20.el6

Complete!

4.再次安装mysql:
[[email protected] share]# rpm -q mysql
package mysql is not installed
[[email protected] share]# cd /mysql
[[email protected] mysql]# ls
lost+found  MySQL-client-5.5.38-1.linux2.6.x86_64.rpm  MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
[[email protected] mysql]# rpm -ivh MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server           ########################################### [100%]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password ‘new-password‘
/usr/bin/mysqladmin -u root -h mysql password ‘new-password‘

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

5.安装客户端:
[[email protected] mysql]# ls
lost+found  MySQL-client-5.5.38-1.linux2.6.x86_64.rpm  MySQL-server-5.5.38-1.linux2.6.x86_64.rpm
[[email protected] mysql]# rpm -ivh MySQL-client-5.5.38-1.linux2.6.x86_64.rpm
Preparing...                ########################################### [100%]
   1:MySQL-client           ########################################### [100%]
[[email protected] mysql]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State     
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6010              0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6011              0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6012              0.0.0.0:*                   LISTEN     
tcp        0      0 218.195.56.164:22           218.195.56.152:3598         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:2456         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:3596         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:3599         ESTABLISHED

6.登录mysql:
[[email protected] mysql]# mysql
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)

---报错原因是服务没有启动

7.启动mysql服务:
[[email protected] mysql]# service mysql start
Starting MySQL.. SUCCESS!

8.检查mysql端口:
[[email protected] ~]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State     
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6010              0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6011              0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6012              0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:6013              0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN     
tcp        0      0 218.195.56.164:22           218.195.56.152:3598         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:2456         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:3596         ESTABLISHED
tcp        0     52 218.195.56.164:22           218.195.56.152:3600         ESTABLISHED
tcp        0      0 218.195.56.164:22           218.195.56.152:3599         ESTABLISHED
[[email protected] ~]#

9.再次登录mysql:

[[email protected] mysql]# mysql        -----此处是没设置密码是,默认自动登录
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.38 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, 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>

----成功登录,说明数据库安装成功。

[[email protected] ~]# ps -ef|grep mysql
root     22161     1  0 09:08 pts/1    00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/mysql.pid
mysql    22254 22161  0 09:08 pts/1    00:00:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/mysql.err --pid-file=/var/lib/mysql/mysql.pid
root     22275 21793  0 09:08 pts/1    00:00:00 mysql

10.修改默认的mysql root密码:
[[email protected] ~]# /usr/bin/mysqladmin -u root password wisedu
[[email protected] ~]# mysql
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)

----修改密码后,登录报错,是要求你用root登录

[[email protected] ~]# mysql -u root -p     -----用root登录(此处root非操作系统root)
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.5.38 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, 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.

11.显示数据库信息:
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;----显示表
+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| columns_priv              |
| db                        |
| event                     |
| func                      |
| general_log               |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| ndb_binlog_index          |
| plugin                    |
| proc                      |
| procs_priv                |
| proxies_priv              |
| servers                   |
| slow_log                  |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
24 rows in set (0.00 sec)

mysql> select * from user;   ---查询表内容

linux下MySQL5.6安装记录,布布扣,bubuko.com

时间: 2024-10-24 19:20:03

linux下MySQL5.6安装记录的相关文章

Linux下MySQL5.1安装详解

安装前期准备 1.需要mysql安装包,并解压,解压命令 tar -zxvf +压缩包名 2.将其复制到需要安装的位置 我打算安装到/usr/local/mysql目录下 3.创建mysql用户与mysql组,用于管理mysql 开始安装 1.配置安装等信息 ./configure --prefix=/usr/local/mysql/ --with-charset=utf8 --with-extra-charsets=all --with-unix-socket-path=/usr/local/

Linux下mysql5.7安装

当前最新版本为5.7,此次将分别采用yum安装和tar包编译安装的方式分别说明. 一.Yum安装 A:获取repo源 [[email protected] ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm B:安装该rpm包 [[email protected] ~]#yum localinstall mysql57-community-release-el7-8.noarch.rpm C:查

Linux下源码安装Mysql5.5

本文主要介绍了如何在源码安装mysql5.5,所用系统为CentOS6.5 一.安装相应的开发环境 yum install -y ncurses-devel yum install -y libaio yum install -y bison yum install -y gcc-c++ yum install -y openssl-devel 二.安装cmake 跨平台编译器 # tar xf cmake-2.8.8.tar.gz # cd cmake-2.8.8 # ./bootstrap

Linux下Zabbix_Server的安装-源码安装

Centos下Zabbix_Server/agent/proxy的安装配置 --------源码编译 完整版请查看附件 一.环境说明 a)软件环境 由于是源码安装,官方的zabbix源码包内已经包含了Server,Proxy, Agent, GUI所有组件和必要的执行脚本,截至本文正式版本限于2.2.3: LAMP环境 n操作系统使用Centos6.5 X86_64 最小化安装,并yum update到最新状态,内核版本为2.6.32-431.17.1.el6.x86_64: nMysql 使用

Linux 下mongodb的安装

l第一:下载,解压mongodb文件.把解压的文件放在/opt/下面(存放目录安装自己习惯存放) # wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.4.tgz # tar -xvf mongodb-linux-x86_64-2.0.4.tgz # mv mongodb-linux-x86_64-2.0.4.tgz mongodb2.0.4  (为了方便,把它从命名的更加简洁些) 第二:创建mongodb存放的数据文件.

linux 下手动编译安装无线网卡驱动

//先参照 <本地yum源安装GCC >安装好gcc hp的笔记本上安装了CentOS6.3,没有安装无线网卡驱动,安装这个驱动,在Google上找了好多资料,最后终于解决了这个问题.在这里做点记录,希望也能帮到别人. 我的机子是32位,CentOS的内核版本是2.6.32-279.19.1.el6.i686,下载的无线网卡驱动是hybrid-portsrc_x86_32-v5_100_82_112.tar.gz 下面是具体的步骤 一:确定无线网卡的型号,驱动下载 第一步要确定机子的无线网卡型

linux下使用yum安装mysql以及启动、登录和远程访问

linux下使用yum安装mysql,以及启动.登录和远程访问. 1.安装 查看有没有安装过: yum list installed mysql* rpm -qa | grep mysql* 查看有没有安装包: yum list mysql* 安装mysql客户端: yum install mysql 安装mysql 服务器端: yum install mysql-server yum install mysql-devel 2.启动&&停止 数据库字符集设置 mysql配置文件/etc/

图解Linux下源码安装PHP7.0.9 +Nginx

上一次,在<Linux下源码安装php7.0.6>,安装过PHP7.0.3,本文将记录安装PHP7.0.9过程. 测试环境 Linux 2.6.32-279.el6.i686 nginx-1.9.15.tar http://nginx.org/download/nginx-1.9.15.tar.gz php-7.0.9.tar.gz http://am1.php.net/distributions/php-7.0.9.tar.gz 安装Nginx wget http://nginx.org/d

Linux下批量部署安装--PXE

Linux操作系统如何安装? 以及如何自动(无人值守)安装? 以及如何批量自动安装? 下面我们会一一的来介绍. 以下操作以CentOS6系列为例,以 VMware 作为虚拟机管理器进行实验. 一.安装系统 1.个人 pc 如何安装一个Linux操作系统使用呢? Linux操作系统的安装过程大致如下: 以本地镜像为例,POST加点自检,加载镜像文件中的内核和临时根文件系统,最后会启动anaconda的安装程序,此程序是交互式的,帮助用户来选择安装前的一些操作,完成这一步操作之后,进入真正的安装包软