1. 程式人生 > >CentOS7安裝mysql-server

CentOS7安裝mysql-server

[[email protected] Desktop]# yum -y install mariadb-server mariadb mariadb-devel

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package 1:mariadb-server-5.5.47-1.el7_2.x86_64 already installed and latest version
Package 1:mariadb-5.5.47-1.el7_2.x86_64 already installed and latest version
Package 1:mariadb-devel-5.5.47-1.el7_2.x86_64 already installed and latest version
Nothing to do
[

[email protected] Desktop]# systemctl start mariadb
[[email protected] Desktop]# systemctl start mariadb
[[email protected] Desktop]# systemctl enable mariadb
[[email protected] Desktop]# mysql_secure_installation
/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n]
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]
... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]
... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
[[email protected] Desktop]# firewall-cmd --permanent --add-service mysql
success
[[email protected] Desktop]# systemctl restart firewalld.service
[[email protected] Desktop]# iptables -L -n|grep 3306
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 ctstate NEW
[[email protected] Desktop]#

相關推薦

CentOS7安裝MySQL Server

sys ref lease intern httpd 127.0.0.1 bin 查看 emc CentOS 7的默認YUM源中是MariaDB,而不是我們常用的MySQL。 本文將介紹如何通過YUM安裝MySQL。 首先下載Yum源的rpm包 具體地址在: http://

CentOS7安裝mysql-server

[[email protected] Desktop]# yum -y install mariadb-server mariadb mariadb-devel Loaded plugins: fastestmirror, langpacksLoading mirror speeds from

CentOS7 安裝 MySQL

libaio 遠程登錄 oca 狀態 遠程 鏈接 user centos7 處理 一、首先檢查 MySQL 是否已安裝 yum list installed | grep mysql 如果有的話 就全部卸載 yum -y remov

CentOS7安裝MySQL的方法之RPM包方式

centos7 mysql原帖地址: http://hostmaoo.com/frontend/help/help_details/id/35不是轉載,主機貓就是我的網站。 其實是想看看推廣效果。嘿嘿。本文出自 “將所學所想記錄下來” 博客,請務必保留此出處http://351660060.blog.51ct

fabric自動化安裝mysql-server

role roles bin tin true pan service http cut 1、創建文件auto_install_mysql.py vim auto_install_mysql.py ----------------------------------

【環境部署】centos7安裝mysql-5.7.19 group-replication

mysql初始化 add path data state mysqld _for boot serve --mysql高可用官方文檔: https://dev.mysql.com/doc/refman/5.7/en/group-replication.html mysql

CentOS7安裝Mysql

5.7 cdn 文件 快捷 centos load local lib ins 1、安裝mysql   wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.20-linux-glibc2.12-x86_64.

Docker下安裝MySQL Server鏡像

更新 nbsp 使用 運行命令 post earch class bsp 查找 安裝環境,CentOS Linux version 3.10.0-514.el7.x86_64 1、查找最新的mysql鏡像 docker search mysql 2、下載最新的mysql

CentOS7安裝MySQL並設置遠程登錄

安裝完成 開始 就是 分支 centos7 too entos -c views 在CentOS中默認安裝有MariaDB,這個是MySQL的分支,但為了需要,還是要在系統中安裝MySQL,而且安裝完成之後可以直接覆蓋掉MariaDB。 1 下載並安裝MySQL官方的 Y

CentOS7安裝MySQL的方法之通用二進制格式

table int containe inf cal line otto rem container CentOS7安裝MySQL的方法之通用二進制格式 CentOS7安裝MySQL的方法之通用二進制格式

Centos7 安裝mysql

with 開放 OS arc pre mage yum password local 一、下載安裝包 wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 二、安裝mysql源

CentOS7安裝MySQL數據庫

mov net font 編碼方式 use 用戶 creat restart set 安裝環境: [root@rookie rookie]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Di

centos7 安裝 mysql-python時 報錯 EnvironmentError: mysql_config not found

down config bsp rep grep 安裝mysql server comm 解決方法 pip install mysql-python 然後報錯 EnvironmentError: mysql_config not found 網上搜

騰訊雲centos7安裝MySQL

安裝 pan AR bsp 平臺 為什麽 community OS rest centos就centos唄,為什麽要加個騰訊雲呢?有這種疑問的兄dei,一定是沒被不同雲的系統坑過啊,阿裏雲的Ubuntu和騰訊雲的Ubuntu不一樣,centos好像也有差別,各個雲平臺,同樣

Debian安裝mysql-server

新建 普通 沒有 clas local debian mina roo 但是 1.切換到root用戶 su 2. 安裝mysql-server apt install mysql-server 註意:在Debian9之後,mysql被替換成mariadb。 所以在

centos7安裝mysql-5.5.60

inf -- bug kcon config 卸載centos 連接 collation root 1.安裝之前的準備 卸載centos7自帶的mariadb rpm -qa|grep mariadb #查看一下是否有mariadb相關的包 rpm -e --n

centos7安裝nfs server

tar 相關 火墻 ice con 安裝 加載 作用域 啟動 [root@server~]# yum -y install nfs-utils[root@server~]# vi /etc/idmapd.conf Domain = srv.world//修改成自己的作用域

centos7安裝mysql-cluster

ini fun ble water 安裝 mys lin edi fault 一、管理節點(172.20.10.11): 下載: https://dev.mysql.com/downloads/cluster/(官網:選擇linux-generic) 或 https://

Centos7 安裝 Mysql 數據庫

-s 數據 字符集 mmu ase mysqld utf8 emctl 配置 安裝 下載並添加存儲庫 sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noa

CentOS7----安裝MySQL數據庫

滿足 rdb 源碼 nsis 編寫 sql數據庫 ... http 關系數據庫 MySQL數據庫概述   MySQL數據庫是經典的關系型數據庫管理系統,MySQL 是最流行的關系型數據庫管理系統之一,在 WEB 應用方面,MySQL是最好的 RDBMS (Relationa