CentOS7安装MySQL冲突和问题解决小结
Preparing... ################################# [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64 file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64 file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
……………………
[root@localhost install-files]# yum remove mysql-libs
warning: MySQL-server-5.5.46-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
rpm --import /etc/pki/rpm-gpg/RPM*
[root@localhost install-files]# rpm -ivh MySQL-server-5.6.27-1.el6.x86_64.rpm --nosignature
- [root@Tony_ts_tian init.d]# service mysqld start
- mysqld: unrecognized service
- [root@localhost install-files]# cd /etc/rc.d/init.d/
- [root@localhost init.d]# ls
- functions mysql netconsole network README
[root@Tony_ts_tian init.d]# service mysql start
- [root@Tony_ts_tian init.d]# mv mysql mysqld
- [root@Tony_ts_tian init.d]# service mysqld start
Preparing... ################################# [100%]
Updating / installing...
1:MySQL-server-5.6.27-1.el6 ################################# [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
FATAL ERROR: please install the following Perl modules before executing /usr/bin/mysql_install_db:
Data::Dumper
[root@localhost install-files]# yum install -y perl-Module-Install.noarch
Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
- [root@localhost init.d]# cd /var/lib/mysql/
- [root@localhost mysql]# ll
- total 110620
- -rw-rw----. 1 mysql mysql 56 Oct 11 23:20 auto.cnf
- -rw-rw----. 1 mysql mysql 12582912 Oct 11 23:20 ibdata1
- -rw-rw----. 1 mysql mysql 50331648 Oct 11 23:20 ib_logfile0
- -rw-rw----. 1 mysql mysql 50331648 Oct 11 23:19 ib_logfile1
- -rw-r-----. 1 mysql root 5847 Oct 11 23:20 localhost.localdomain.err
- drwx--x--x. 2 mysql mysql 4096 Oct 11 23:19 mysql
- drwx------. 2 mysql mysql 4096 Oct 11 23:19 performance_schema
- -rw-r--r--. 1 root root 111 Oct 11 23:19 RPM_UPGRADE_HISTORY
- -rw-r--r--. 1 mysql mysql 111 Oct 11 23:19 RPM_UPGRADE_MARKER-LAST
- drwxr-xr-x. 2 mysql mysql 6 Oct 11 23:19 test
查看路径:mysql-bin.index多余文件,auto.cnf和performance_schema等不存在(文件不全)。(以上为成功后的mysql数据库目录)
- [root@localhost mysql]# rpm -aq | grep -i mysql
- MySQL-server-5.6.27-1.el6.x86_64
- MySQL-client-5.6.27-1.el6.x86_64
- MySQL-devel-5.6.27-1.el6.x86_64
- [root@localhost mysql]# rpm -e MySQL-server-5.6.27-1.el6.x86_64
- [root@localhost mysql]# rpm -e MySQL-client-5.6.27-1.el6.x86_64
- [root@localhost mysql]# rpm -e MySQL-devel-5.6.27-1.el6.x86_64
- [root@localhost rc.d]# cd /var/lib/
- [root@localhost lib]# rm -rf mysql/
- [root@localhost install-files]# rpm -ivh MySQL-server-5.6.27-1.el6.x86_64.rpm --nosignature
- Preparing... ################################# [100%]
- Updating / installing...
- 1:MySQL-server-5.6.27-1.el6 ################################# [100%]
- 2015-10-11 23:19:40 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2015-10-11 23:19:40 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27) starting as process 3168 ...
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Using atomics to ref count buffer pool pages
- 2015-10-11 23:19:40 3168 [Note] InnoDB: The InnoDB memory heap is disabled
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Memory barrier is not used
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Using Linux native AIO
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Using CPU crc32 instructions
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Initializing buffer pool, size = 128.0M
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Completed initialization of buffer pool
- 2015-10-11 23:19:40 3168 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Database physically writes the file full: wait...
- 2015-10-11 23:19:40 3168 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
- 2015-10-11 23:19:41 3168 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
- 2015-10-11 23:19:43 3168 [Warning] InnoDB: New log files created, LSN=45781
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Doublewrite buffer not found: creating new
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Doublewrite buffer created
- 2015-10-11 23:19:43 3168 [Note] InnoDB: 128 rollback segment(s) are active.
- 2015-10-11 23:19:43 3168 [Warning] InnoDB: Creating foreign key constraint system tables.
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Foreign key constraint system tables created
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Creating tablespace and datafile system tables.
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Tablespace and datafile system tables created.
- 2015-10-11 23:19:43 3168 [Note] InnoDB: Waiting for purge to start
- 2015-10-11 23:19:43 3168 [Note] InnoDB: 5.6.27 started; log sequence number 0
- A random root password has been set. You will find it in '/root/.mysql_secret'.
- 2015-10-11 23:19:44 3168 [Note] Binlog end
- 2015-10-11 23:19:44 3168 [Note] InnoDB: FTS optimize thread exiting.
- 2015-10-11 23:19:44 3168 [Note] InnoDB: Starting shutdown...
- 2015-10-11 23:19:46 3168 [Note] InnoDB: Shutdown completed; log sequence number 1625977
- 2015-10-11 23:19:46 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
- 2015-10-11 23:19:46 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27) starting as process 3190 ...
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Using atomics to ref count buffer pool pages
- 2015-10-11 23:19:46 3190 [Note] InnoDB: The InnoDB memory heap is disabled
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Memory barrier is not used
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Compressed tables use zlib 1.2.3
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Using Linux native AIO
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Using CPU crc32 instructions
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Initializing buffer pool, size = 128.0M
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Completed initialization of buffer pool
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Highest supported file format is Barracuda.
- 2015-10-11 23:19:46 3190 [Note] InnoDB: 128 rollback segment(s) are active.
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Waiting for purge to start
- 2015-10-11 23:19:46 3190 [Note] InnoDB: 5.6.27 started; log sequence number 1625977
- 2015-10-11 23:19:46 3190 [Note] Binlog end
- 2015-10-11 23:19:46 3190 [Note] InnoDB: FTS optimize thread exiting.
- 2015-10-11 23:19:46 3190 [Note] InnoDB: Starting shutdown...
- 2015-10-11 23:19:49 3190 [Note] InnoDB: Shutdown completed; log sequence number 1625987
- A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
- You will find that password in '/root/.mysql_secret'.
- You must change that password on your first connect,
- no other statement but 'SET PASSWORD' will be accepted.
- See the manual for the semantics of the 'password expired' flag.
- Also, the account for the anonymous user has been removed.
- In addition, you can run:
- /usr/bin/mysql_secure_installation
- which will also give you the option of removing the test database.
- This is strongly recommended for production servers.
- See the manual for more instructions.
- Please report any problems at http://bugs.mysql.com/
- The latest information about MySQL is available on the web at
- http://www.mysql.com
- Support MySQL by buying support/licenses at http://shop.mysql.com
- New default config file was created as /usr/my.cnf and
- will be used by default by the server when you start it.
- You may edit this file to change server settings
- [root@localhost install-files]# service mysql start
- Starting MySQL.. SUCCESS!
- [root@localhost install-files]# service mysql stop
- Shutting down MySQL.. SUCCESS!
- [root@localhost mysql]# ll
- total 110620
- -rw-rw----. 1 mysql mysql 56 Oct 11 23:20 auto.cnf
- -rw-rw----. 1 mysql mysql 12582912 Oct 11 23:20 ibdata1
- -rw-rw----. 1 mysql mysql 50331648 Oct 11 23:20 ib_logfile0
- -rw-rw----. 1 mysql mysql 50331648 Oct 11 23:19 ib_logfile1
- -rw-r-----. 1 mysql root 5847 Oct 11 23:20 localhost.localdomain.err
- drwx--x--x. 2 mysql mysql 4096 Oct 11 23:19 mysql
- drwx------. 2 mysql mysql 4096 Oct 11 23:19 performance_schema
- -rw-r--r--. 1 root root 111 Oct 11 23:19 RPM_UPGRADE_HISTORY
- -rw-r--r--. 1 mysql mysql 111 Oct 11 23:19 RPM_UPGRADE_MARKER-LAST
- drwxr-xr-x. 2 mysql mysql 6 Oct 11 23:19 test
CentOS7安装MySQL冲突和问题解决小结的更多相关文章
- centos7安装Mysql爬坑记录
centos7安装Mysql爬坑记录 查看是否已安装 使用下列命令查看是否已经安装过mysql/mariadb/PostgreSQL 如果未安装,不返回任何结果(ECS的centos镜像默认未安装 ...
- CentOS7安装mysql提示“No package mysql-server available.”
针对centos7安装mysql,提示"No package mysql-server available."错误,解决方法如下: Centos 7 comes with Mari ...
- [CentOs7]安装mysql(2)
摘要 之前安装过一次mysql,最后配置,发现在本地无法连接,重启服务的时候一直卡在那里不动,感觉是安装的过程出问题,最后没办法还是卸载了,然后重新安装一下. [CentOs7]安装mysql Mys ...
- centos7安装mysql
centos7安装mysql 1 查找系统是否安装了myql rpm -q mysql mysql-server1.1如果安装了.就删除 sudo yum -y remove mysql mysql- ...
- centos7安装mysql(yum)
centos7安装mysql(yum) ----安装环境----依赖安装----检查mysql是否已安装----安装----验证是否添加成功----选择要启用的mysql版本----通过Yum安装my ...
- CentOS7安装MySQL的方法之通用二进制格式
CentOS7安装MySQL的方法之通用二进制格式
- CentOS7安装MySQL的方法之RPM包方式
CentOS7安装MySQL的方法之RPM包方式
- Centos7 安装mysql服务器并开启远程访问功能
大二的暑假,波波老师送了一个华为云的服务器给我作测试用,这是我程序员生涯里第一次以root身份拥有一台真实的云服务器 而之前学习的linux知识在这时也派上了用场,自己的物理机用的是ubuntu系统, ...
- [CentOS7]安装mysql遇到的问题
摘要 在安装mysql的时候,遇到了一些问题,这里列出所遇到的问题. yum list mysql-server 在使用命令yum list mysql-server安装mysql的时候,遇到如图所示 ...
随机推荐
- Linux ssh将命令放入后台
如何在关闭ssh连接的情况下,让程序继续运行? 对Unix,Linux类服务器维护经常是通过ssh完成的,而有些操作比较费时,如更新程序等.此时如果断开ssh连接的话,更新程序就会随之被中断.如何保证 ...
- spark on yarn任务提交缓慢解决
1.为什么要让运行时Jar可以从yarn端访问spark2以后,原有lib目录下的大JAR包被分散成多个小JAR包,原来的spark-assembly-*.jar已经不存在 每一次我们运行的时候,如果 ...
- extjs store快速创建的几种方式
viewModel中定义stores: { tickets: { model: 'Ticket', autoLoad: true, remoteFilter: true, filters: [{ pr ...
- PHP获取访客ip、系统、浏览器等信息[转]
1.获取访客操作系统信息 <?php function GetOs() { if (!empty($_SERVER['HTTP_USER_AGENT'])) { $OS = $_ ...
- css--纵向margin设置auto和百分数真的无效吗?
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...
- IntelliJ Idea Java 使用
IntelliJ Idea热加载 自动更新 IntelliJ IDEA热加载自动更新(Update classes and resources ) IntelliJ IDEA默认文件是自动保存的,但是 ...
- OEMCC13.2 添加监控目标
1.需求描述 2.添加数据库目标 2.1 部署AGENT 2.1.1 直接安装方式 2.1.2 离线安装方式 2.1.3 命令行安装方式 2.2 添加集群资源 2.3 添加数据库 3.添加 ...
- Oracle / PLSQL函数 - LENGTH和LENGTHB
1.LENGTH( string1 ) 2.LENGTHB( string1 ) 在oracle中,这两个函数都有差不多意思,最大的区别在于:length 求得是字符长度,lengthb求得是字节长度 ...
- django 静态css js文件配置
参考:http://blog.csdn.net/liqiancao/article/details/66151287
- U盘自动拷贝
描述:启动该程序后,自动检测U盘是否存在,若存在,将U盘中所有的文件拷贝到电脑的指定目录下. 注:本篇博文仅支持技术讨论,不用于数据的盗取之类的黑科技. 本程序基于Win32开发,主要是利用Win32 ...