CentOS 7安装Mysql

今天在VM上打算配个Mysql主从的服务,用RPM方式安装MYSQL-server时冲突,

原来是Centos7上面默认安装有Mariadb-lib了,果断 yum remove mariadb后安装成功!

[quote]
Using username "root".
Last login: Sat Mar 14 17:01:13 2015 from 192.168.230.1
# cd /ford/mysql
# ls
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
# rm *.gz
rm: cannot remove ‘*.gz’: No such file or directory
# rm *.tar
rm: remove regular file ‘MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar’? y
# ls
# wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL- community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
--2015-03-14 19:56:25-- http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-comm unity-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cdn.mysql.com/Downloads/MySQL-5.1/MySQL-community-5.1.73-1.rhel 5.x86_64.rpm-bundle.tar [following]
--2015-03-14 19:56:25-- http://cdn.mysql.com/Downloads/MySQL-5.1/MySQL-communit y-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
Resolving cdn.mysql.com (cdn.mysql.com)... 23.15.109.160
Connecting to cdn.mysql.com (cdn.mysql.com)|23.15.109.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163891200 (156M) [application/x-tar]
Saving to: ‘MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar’

11% [===> ] 18,807,251 5.00KB/s eta 7h 52m ^ C
# ls
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
# rm -Rf *.tar
# ls
# ls -al
total 160052
drwxr-xr-x. 2 root root 65 Mar 14 21:03 .
drwxr-xr-x. 3 root root 18 Mar 14 18:18 ..
-rw-r--r--. 1 root root 163891200 Mar 14 20:58 MySQL-community-5.1.73-1.rhel5.x8 6_64.rpm-bundle.tar
# chmod 755 *.tar
# ls -al
total 160052
drwxr-xr-x. 2 root root 65 Mar 14 21:03 .
drwxr-xr-x. 3 root root 18 Mar 14 18:18 ..
-rwxr-xr-x. 1 root root 163891200 Mar 14 20:58 MySQL-community-5.1.73-1.rhel5.x8 6_64.rpm-bundle.tar
# tar -zvxf *.tar

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
# tar -zv *.tar
tar: You must specify one of the `-Acdtrux' or `--test-label' options
Try `tar --help' or `tar --usage' for more information.
# tar --help
Usage: tar [OPTION...] [FILE]...
GNU `tar' saves many files together into a single tape or disk archive, and can
restore individual files from the archive.

Examples:
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.
tar -tvf archive.tar # List all files in archive.tar verbosely.
tar -xf archive.tar # Extract all files from archive.tar.

Main operation mode:

-A, --catenate, --concatenate append tar files to an archive
-c, --create create a new archive
-d, --diff, --compare find differences between archive and file system
--delete delete from the archive (not on mag tapes!)
-r, --append append files to the end of an archive
-t, --list list the contents of an archive
--test-label test the archive volume label and exit
-u, --update only append files newer than copy in archive
-x, --extract, --get extract files from an archive

Operation modifiers:

--check-device check device numbers when creating incremental
archives (default)
-g, --listed-incremental=FILE handle new GNU-format incremental backup
-G, --incremental handle old GNU-format incremental backup
--ignore-failed-read do not exit with nonzero on unreadable files
--level=NUMBER dump level for created listed-incremental archive
-n, --seek archive is seekable
--no-check-device do not check device numbers when creating
incremental archives
--no-seek archive is not seekable
--occurrence[=NUMBER] process only the NUMBERth occurrence of each file
in the archive; this option is valid only in
conjunction with one of the subcommands --delete,
--diff, --extract or --list and when a list of
files is given either on the command line or via
the -T option; NUMBER defaults to 1
--sparse-version=MAJOR[.MINOR]
set version of the sparse format to use (implies
--sparse)
-S, --sparse handle sparse files efficiently

Overwrite control:

-k, --keep-old-files don't replace existing files when extracting,
treat them as errors
--keep-newer-files don't replace existing files that are newer than
their archive copies
--no-overwrite-dir preserve metadata of existing directories
--overwrite overwrite existing files when extracting
--overwrite-dir overwrite metadata of existing directories when
extracting (default)
--recursive-unlink empty hierarchies prior to extracting directory
--remove-files remove files after adding them to the archive
--skip-old-files don't replace existing files when extracting,
silently skip over them
-U, --unlink-first remove each file prior to extracting over it
-W, --verify attempt to verify the archive after writing it

Select output stream:

--ignore-command-error ignore exit codes of children
--no-ignore-command-error treat non-zero exit codes of children as
error
-O, --to-stdout extract files to standard output
--to-command=COMMAND pipe extracted files to another program

Handling of file attributes:

--atime-preserve[=METHOD] preserve access times on dumped files, either
by restoring the times after reading
(METHOD='replace'; default) or by not setting the
times in the first place (METHOD='system')
--delay-directory-restore delay setting modification times and
permissions of extracted directories until the end
of extraction
--group=NAME force NAME as group for added files
--mode=CHANGES force (symbolic) mode CHANGES for added files
--mtime=DATE-OR-FILE set mtime for added files from DATE-OR-FILE
-m, --touch don't extract file modified time
--no-delay-directory-restore
cancel the effect of --delay-directory-restore
option
--no-same-owner extract files as yourself (default for ordinary
users)
--no-same-permissions apply the user's umask when extracting permissions
from the archive (default for ordinary users)
--numeric-owner always use numbers for user/group names
--owner=NAME force NAME as owner for added files
-p, --preserve-permissions, --same-permissions
extract information about file permissions
(default for superuser)
--preserve same as both -p and -s
--same-owner try extracting files with the same ownership as
exists in the archive (default for superuser)
-s, --preserve-order, --same-order
sort names to extract to match archive

Handling of extended file attributes:

--acls Enable the POSIX ACLs support
--no-acls Disable the POSIX ACLs support
--no-selinux Disable the SELinux context support
--no-xattrs Disable extended attributes support
--selinux Enable the SELinux context support
--xattrs Enable extended attributes support
--xattrs-exclude=MASK specify the exclude pattern for xattr keys
--xattrs-include=MASK specify the include pattern for xattr keys

Device selection and switching:

-f, --file=ARCHIVE use archive file or device ARCHIVE
--force-local archive file is local even if it has a colon
-F, --info-script=NAME, --new-volume-script=NAME
run script at end of each tape (implies -M)
-L, --tape-length=NUMBER change tape after writing NUMBER x 1024 bytes
-M, --multi-volume create/list/extract multi-volume archive
--rmt-command=COMMAND use given rmt COMMAND instead of rmt
--rsh-command=COMMAND use remote COMMAND instead of rsh
--volno-file=FILE use/update the volume number in FILE

Device blocking:

-b, --blocking-factor=BLOCKS BLOCKS x 512 bytes per record
-B, --read-full-records reblock as we read (for 4.2BSD pipes)
-i, --ignore-zeros ignore zeroed blocks in archive (means EOF)
--record-size=NUMBER NUMBER of bytes per record, multiple of 512

Archive format selection:

-H, --format=FORMAT create archive of the given format

FORMAT is one of the following:

gnu GNU tar 1.13.x format
oldgnu GNU format as per tar <= 1.12
pax POSIX 1003.1-2001 (pax) format
posix same as pax
ustar POSIX 1003.1-1988 (ustar) format
v7 old V7 tar format

--old-archive, --portability
same as --format=v7
--pax-option=keyword[[:]=value][,keyword[[:]=value]]...
control pax keywords
--posix same as --format=posix
-V, --label=TEXT create archive with volume name TEXT; at
list/extract time, use TEXT as a globbing pattern
for volume name

Compression options:

-a, --auto-compress use archive suffix to determine the compression
program
-I, --use-compress-program=PROG
filter through PROG (must accept -d)
-j, --bzip2 filter the archive through bzip2
-J, --xz filter the archive through xz
--lzip filter the archive through lzip
--lzma filter the archive through lzma
--lzop
--no-auto-compress do not use archive suffix to determine the
compression program
-z, --gzip, --gunzip, --ungzip filter the archive through gzip
-Z, --compress, --uncompress filter the archive through compress

Local file selection:

--add-file=FILE add given FILE to the archive (useful if its name
starts with a dash)
--backup[=CONTROL] backup before removal, choose version CONTROL
-C, --directory=DIR change to directory DIR
--exclude=PATTERN exclude files, given as a PATTERN
--exclude-backups exclude backup and lock files
--exclude-caches exclude contents of directories containing
CACHEDIR.TAG, except for the tag file itself
--exclude-caches-all exclude directories containing CACHEDIR.TAG
--exclude-caches-under exclude everything under directories containing
CACHEDIR.TAG
--exclude-tag=FILE exclude contents of directories containing FILE,
except for FILE itself
--exclude-tag-all=FILE exclude directories containing FILE
--exclude-tag-under=FILE exclude everything under directories
containing FILE
--exclude-vcs exclude version control system directories
-h, --dereference follow symlinks; archive and dump the files they
point to
--hard-dereference follow hard links; archive and dump the files they
refer to
-K, --starting-file=MEMBER-NAME
begin at member MEMBER-NAME in the archive
--newer-mtime=DATE compare date and time when data changed only
--no-null disable the effect of the previous --null option
--no-recursion avoid descending automatically in directories
--no-unquote do not unquote filenames read with -T
--null -T reads null-terminated names, disable -C
-N, --newer=DATE-OR-FILE, --after-date=DATE-OR-FILE
only store files newer than DATE-OR-FILE
--one-file-system stay in local file system when creating archive
-P, --absolute-names don't strip leading `/'s from file names
--recursion recurse into directories (default)
--suffix=STRING backup before removal, override usual suffix ('~'
unless overridden by environment variable
SIMPLE_BACKUP_SUFFIX)
-T, --files-from=FILE get names to extract or create from FILE
--unquote unquote filenames read with -T (default)
-X, --exclude-from=FILE exclude patterns listed in FILE

File name transformations:

--strip-components=NUMBER strip NUMBER leading components from file
names on extraction
--transform=EXPRESSION, --xform=EXPRESSION
use sed replace EXPRESSION to transform file
names

File name matching options (affect both exclude and include patterns):

--anchored patterns match file name start
--ignore-case ignore case
--no-anchored patterns match after any `/' (default for
exclusion)
--no-ignore-case case sensitive matching (default)
--no-wildcards verbatim string matching
--no-wildcards-match-slash wildcards do not match `/'
--wildcards use wildcards (default)
--wildcards-match-slash wildcards match `/' (default for exclusion)

Informative output:

--checkpoint[=NUMBER] display progress messages every NUMBERth record
(default 10)
--checkpoint-action=ACTION execute ACTION on each checkpoint
--full-time print file time to its full resolution
--index-file=FILE send verbose output to FILE
-l, --check-links print a message if not all links are dumped
--no-quote-chars=STRING disable quoting for characters from STRING
--quote-chars=STRING additionally quote characters from STRING
--quoting-style=STYLE set name quoting style; see below for valid STYLE
values
-R, --block-number show block number within archive with each message

--show-defaults show tar defaults
--show-omitted-dirs when listing or extracting, list each directory
that does not match search criteria
--show-transformed-names, --show-stored-names
show file or archive names after transformation
--totals[=SIGNAL] print total bytes after processing the archive;
with an argument - print total bytes when this
SIGNAL is delivered; Allowed signals are: SIGHUP,
SIGQUIT, SIGINT, SIGUSR1 and SIGUSR2; the names
without SIG prefix are also accepted
--utc print file modification times in UTC
-v, --verbose verbosely list files processed
--warning=KEYWORD warning control
-w, --interactive, --confirmation
ask for confirmation for every action

Compatibility options:

-o when creating, same as --old-archive; when
extracting, same as --no-same-owner

Other options:

-?, --help give this help list
--restrict disable use of some potentially harmful options
--usage give a short usage message
--version print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.
The version control may be set with --backup or VERSION_CONTROL, values are:

none, off never make backups
t, numbered make numbered backups
nil, existing numbered if numbered backups exist, simple otherwise
never, simple always make simple backups

Valid arguments for the --quoting-style option are:

literal
shell
shell-always
c
c-maybe
escape
locale
clocale

*This* tar defaults to:
--format=gnu -f- -b20 --quoting-style=escape --rmt-command=/etc/rmt
--rsh-command=/usr/bin/ssh

Report bugs to .
# tar xvf *.tar
MySQL-community-debuginfo-5.1.73-1.rhel5.x86_64.rpm
MySQL-embedded-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-test-community-5.1.73-1.rhel5.x86_64.rpm
# ls
MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
MySQL-community-debuginfo-5.1.73-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-embedded-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
MySQL-test-community-5.1.73-1.rhel5.x86_64.rpm
# chmod 755 *.rpm
# ls -al
total 320112
drwxr-xr-x. 2 root root 4096 Mar 14 21:05 .
drwxr-xr-x. 3 root root 18 Mar 14 18:18 ..
-rwxr-xr-x. 1 7155 wheel 7469096 Nov 9 2013 MySQL-client-community-5.1.73-1. rhel5.x86_64.rpm
-rwxr-xr-x. 1 root root 163891200 Mar 14 20:58 MySQL-community-5.1.73-1.rhel5.x 86_64.rpm-bundle.tar
-rwxr-xr-x. 1 7155 wheel 67013961 Nov 9 2013 MySQL-community-debuginfo-5.1.73 -1.rhel5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 11998870 Nov 9 2013 MySQL-devel-community-5.1.73-1.r hel5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 36118553 Nov 9 2013 MySQL-embedded-community-5.1.73- 1.rhel5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 20823203 Nov 9 2013 MySQL-server-community-5.1.73-1. rhel5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 1894921 Nov 9 2013 MySQL-shared-community-5.1.73-1. rhel5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 3236785 Nov 9 2013 MySQL-shared-compat-5.1.73-1.rhe l5.x86_64.rpm
-rwxr-xr-x. 1 7155 wheel 15324901 Nov 9 2013 MySQL-test-community-5.1.73-1.rh el5.x86_64.rpm
# ls
MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
MySQL-community-debuginfo-5.1.73-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-embedded-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
MySQL-test-community-5.1.73-1.rhel5.x86_64.rpm
# rpm -Uvh MySQL-server-community-5.1.73-1.rhel5.x86_64.rp m
Preparing... ################################# [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-commu nity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5.3 5-3.el7.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server -community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1 :5.5.35-3.el7.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server- community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1: 5.5.35-3.el7.x86_64
file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-comm unity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5. 35-3.el7.x86_64
file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server- community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1: 5.5.35-3.el7.x86_64
file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server -community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1 :5.5.35-3.el7.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-comm unity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5. 35-3.el7.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-comm unity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5. 35-3.el7.x86_64
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-comm unity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5. 35-3.el7.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server- community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1: 5.5.35-3.el7.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-serv er-community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs -1:5.5.35-3.el7.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server- community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1: 5.5.35-3.el7.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server -community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1 :5.5.35-3.el7.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-c ommunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5 .5.35-3.el7.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-com munity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5.5 .35-3.el7.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-co mmunity-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1:5. 5.35-3.el7.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server- community-5.1.73-1.rhel5.x86_64 conflicts with file from package mariadb-libs-1: 5.5.35-3.el7.x86_64
# ls
MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar
MySQL-community-debuginfo-5.1.73-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-embedded-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
MySQL-test-community-5.1.73-1.rhel5.x86_64.rpm
# rpm -Uvh MySQL-client-community-5.1.73-1.rhel5.x86_64.rp m
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-client-community-5.1.73-1.r################################# [100%]
# rpm -q Mysql
package Mysql is not installed
# rpm -q mysql
package mysql is not installed
# rpm -q mysql*
package mysql* is not installed
# rpm -Uvh mariadb
error: open of mariadb failed: No such file or directory
# rpm -q mariadb
package mariadb is not installed
# conflicts with file from package mariadb-libs-1:5.5.3
bash: conflicts: command not found...
# yum remove mariadb
Loaded plugins: fastestmirror, langpacks
No Match for argument: mariadb
No Packages marked for removal
# remove mariadb
bash: remove: command not found...
# yum remove mariadb
Loaded plugins: fastestmirror, langpacks
No Match for argument: mariadb
No Packages marked for removal
# yum -e mariadb-server
Usage: yum [options] COMMAND

List of Commands:

check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
fs Creates filesystem snapshots, or lists/deletes current snapshots.
fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.
groups Display, or use, the groups information
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
load-transaction load a saved transaction from filename
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repo-pkgs Treat a repo. as a group of packages, so we can install/remove all of them
repolist Display the configured software repositories
search Search package details for the given string
shell Run an interactive yum shell
swap Simple way to swap packages, instead of using shell
update Update a package or packages on your system
update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo Acts on repository update information
upgrade Update packages taking obsoletes into account
version Display a version for the machine and/or available repos.


CRITICAL:yum.cli:Command line error: option -e: invalid integer value: 'mariadb-server'
# yum remove mariadb-server
Loaded plugins: fastestmirror, langpacks
No Match for argument: mariadb-server
No Packages marked for removal
# yum remove mariadb-libs
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be erased
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Removing:
mariadb-libs x86_64 1:5.5.35-3.el7 @anaconda 4.4 M
Removing for dependencies:
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M

Transaction Summary
==================================================================================================================
Remove 1 Package (+1 Dependent package)

Installed size: 17 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : 2:postfix-2.10.1-6.el7.x86_64 1/2
Erasing : 1:mariadb-libs-5.5.35-3.el7.x86_64 2/2
Verifying : 1:mariadb-libs-5.5.35-3.el7.x86_64 1/2
Verifying : 2:postfix-2.10.1-6.el7.x86_64 2/2

Removed:
mariadb-libs.x86_64 1:5.5.35-3.el7

Dependency Removed:
postfix.x86_64 2:2.10.1-6.el7

Complete!
# ls
MySQL-client-community-5.1.73-1.rhel5.x86_64.rpm MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-community-5.1.73-1.rhel5.x86_64.rpm-bundle.tar MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-community-debuginfo-5.1.73-1.rhel5.x86_64.rpm MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
MySQL-devel-community-5.1.73-1.rhel5.x86_64.rpm MySQL-test-community-5.1.73-1.rhel5.x86_64.rpm
MySQL-embedded-community-5.1.73-1.rhel5.x86_64.rpm
# rpm -Uvh MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-server-community-5.1.73-1.r################################# [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 localhost.localdomain 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 with the /usr/bin/mysqlbug script!

Starting MySQL.. SUCCESS!
Giving mysqld 2 seconds to start
# MySQL-server-community-5.1.73-1.rhel5.x86_64.rpmMySQL-server-community-5.1.73-1.rhel5.x86_64.rpm

[/quote]

你可能感兴趣的:(CentOS 7安装Mysql)