当前位置:首页 > 电脑常识 > 正文

怎么样在Centos7下使用mysql重启MariaDB 8090安适门户

11-21 电脑常识

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 method call: Unit mysql.service failed to load: No such file or directory.
 
# systemctl start mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory
 
# systemctl enable mysql.service
Failed to issue method call: Access denied
下面讲正确的法式
 # yum install mariadb-server -y
systemctl stop mariadb.service
 
# systemctl start mariadb.service
# systemctl enable mariadb.service
# mysql
Welcome to the MariaDB monitor. Commands end with ; 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' to clear the current input statement.
 
MariaDB [(none)]>
搞定!
如何设置mysql root暗码
 # mysql_secure_installation
总结
以上就是这篇文章的全部内容了,但愿本文的内容对大家的学习或者事情能带来必然的辅佐,如果有疑问大家可以留言交流

温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/pc/12815.html

博客主人杰米WWW
杰米博客,为大家提供seo以及it方面技巧喜欢的朋友收藏哦!
  • 11365文章总数
  • 1378074访问次数
  • 建站天数
  •