ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> MySql >> Redhat7 CentOS7 无法启动mysql 的解决办法

Redhat7 CentOS7 无法启动mysql 的解决办法

来源:网络整理     时间:2016-01-13     关键词:

本篇文章主要介绍了"Redhat7 CentOS7 无法启动mysql 的解决办法",主要涉及到方面的内容,对于MySql感兴趣的同学可以参考一下: MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MyS...

MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。[3]

MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。在存储引擎方面,10.0.9版起使用XtraDB(名称代号为Aria)来代替MySQL的InnoDB

# yum install mysql -y# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

试着去启动mysql服务,仍然不行

# systemctl start mysql
Failed to issue methodcall:Unit mysql.service failed to load: No such file or directory.

# systemctl start  mysql.service
Failed to issue methodcall:Unit mysql.service failed to load: No such file or directory

# systemctl enable mysql.service
Failed to issue methodcall: Access denied

下面讲正确的步骤

# yum install mariadb-server -y# systemctl start mariadb.service# systemctl enable mariadb.service# mysql
Welcome tothe MariaDB monitor.  Commands endwith ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.44-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;'or'\h'for help. Type '\c'toclearthe current input statement.

MariaDB [(none)]> 

搞定!

如何设置mysql root密码

# mysql_secure_installation
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了Redhat7 CentOS7 无法启动mysql 的解决办法,包括了方面的内容,希望对MySql有兴趣的朋友有所帮助。

    本文网址链接:http://www.codes51.com/article/detail_287167.html

    相关图片

    相关文章