mariadb

linux系统学习第八天-<<工程师技术>>

社会主义新天地 提交于 2020-04-07 10:02:51
两台虚拟机,均修改防火器与主机名 虚拟机server0: # firewall-cmd --set-default-zone=trusted # echo server0.example.com > /etc/hostname # cat /etc/hostname 虚拟机desktop0: # firewall-cmd --set-default-zone=trusted # echo desktop0.example.com > /etc/hostname # cat /etc/hostname • 电子邮件服务器的基本功能 – 为用户提供电子邮箱存储空间(用户名@邮件域名) – 处理用户发出的邮件 —— 传递给收件服务器 – 处理用户收到的邮件 —— 投递到邮箱 用户发邮件的协议: SMTP 端口25 用户收邮件的协议: pop3 端口110 IMAP 端口143 ###################################################### 虚拟机server0 搭建基本邮件服务器 1. 安装postfix服务端程序 [root@server0 ~]# rpm -q postfix postfix-2.10.1-6.el7.x86_64 2.配置postfix服务,修改配置文件 [root@server0 ~]# vim /etc

Mariadb用户操作/数据库基本操作 (一)

萝らか妹 提交于 2020-04-07 08:24:50
第一部分 创建数据库 1.1 创建并切换操作的数据库 创建数据库CREATE DATABASE 数据库名 切换: USE 数据库名 #创建数据库 MariaDB [mysql]> CREATE DATABASE study_db; #切换数据库 MariaDB [mysql]> USE study_db; Database changed 第二部分 表操作 2.1 创建一个 书籍 表格 MariaDB [study_db]> CREATE TABLE books( -> book_id INT AUTO_INCREMENT PRIMARY KEY, -> book_name VARCHAR(20), -> book_author_name VARCHAR(20), -> publication_date DATE, -> description TEXT); Query OK, 0 rows affected (0.02 sec) 1. AUTO_INCREMENT 选项则告诉 MySQL 此列的值是自增的。如果没指定一个起始数,那么就 是从1开始。 2. PRIMARY KEY 主键, 使数据能以其索引;(唯一) 2.2 查看表结构: DESCRIBE 也可以使用 > DESC 表名 MariaDB [study_db]> DESCRIBE books; +-----------

Packet for query to large. Setting max_allowed_packet

我与影子孤独终老i 提交于 2020-04-07 08:08:08
问题 When i connect to my databse via phpmyadmin everything works fine and it shows me the data. When i am on my server i can see all data and work with it. But when i try to connect to my server i'm getting this error: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (4.739.923 > 65.535). You can change this value on the server by setting the 'max_allowed_packet' variable. im getting the max allowed packet size here: Database changed MariaDB [selforder]> SELECT @

centos7 yum 安装mariadb

感情迁移 提交于 2020-04-07 03:35:35
#vim /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = https://yum.mariadb.org/10.1.16/centos7-amd64 //不同系统、版本更改此设置 gpgkey=http://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 #yum install MariaDB-client MariaDB-client -y 依赖关系解决 ======================================================================================================================== Package 架构 版本          源        大小 ======================================================================================================================== 正在安装: MariaDB-client        x86_64 10.1.16-1.el6 mariadb      40 M MariaDB

zabbix(一)安装服务端

隐身守侯 提交于 2020-04-06 16:57:48
一 安装zabbix 1.1. 环境检查 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@localhost ~]# uname -r 3.10.0-693.el7.x86_64 [root@localhost ~]# getenforce ------->注意不是disable的情况 Disabled [root@localhost ~]# systemctl status firewalld.service ----------->systemctl stop firewalld.service 没有关闭的情况下 ● firewalld.service - firewalld - dynamic firewall daemon   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)   Active: inactive (dead)   Docs: man:firewalld(1) 注意不是disable的情况 1、临时关闭(不用重启机器): setenforce 0 ##设置SELinux 成为permissive模式

RaspberryPi(树莓派)如何安装 MariaDB / MySQL 数据库

我是研究僧i 提交于 2020-04-06 15:54:18
安装的过程比较简单。 但是这里有一个地方需要注意,如果你希望是能够通过网络访问你安装的数据库的话。 在你设置好用户名和密码,以及访问权限后,你可能发现你还是访问不了。 这是因为你的安装服务器只绑定了能够本地访问,你需要修改配置,让你的服务器能够支持远程访问。 具体的方法,请参考 RaspberryPi(树莓派)安装 MariaDB 数据库没有办法远程访问 页面中的文章。 更新系统 通过运行命令: sudo apt-get update 来对你需要安装的系统进行更新,根据网络的情况可能需要的时间也不相同。 我们更新后系统的输出内容为: root@raspberrypi:~# sudo apt-get update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Fetched 13.0 MB in 19s (694 kB/s) Reading package lists... Done root

k8s集群部署Apollo分布式配置中心

泪湿孤枕 提交于 2020-04-06 15:09:49
先安装mysql,版本须在5.6以上: [root@hdss7-11 yum.repos.d]# cat MariaDB.repo [mariadb] name = MariaDB baseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.1/centos7-amd64/ gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 [root@hdss7-11 yum.repos.d]# rpm --import https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB [root@hdss7-11 yum.repos.d]# yum install MariaDB-server -y 修改mysql配置文件: [mysqld] character_set_server = utf8mb4 collation_server = utf8mb4_general_ci init_connect = "SET NAMES 'utf8mb4'" [mysql] default-character-set = utf8mb4 [root@hdss7-11 ~]# systemctl

霸气de小男生 提交于 2020-04-06 13:09:14
UNIX诞生,1970年1月1日 • 发行版的名称/版本由发行方决定 – Red Hat Enterprise Linux 5/6/7 – Suse Linux Enterprise 12 – Debian Linux 7.8 – Ubuntu Linux 14.10/15.04 • 是一套完整Linux系统 – Linux内核 + 各种外围软件 • CentOS,社区企业操作系统 ________________________________________ 文件系统:在空间中,数据排列组合存储的规则 • 传统的MBR分区模式 – 1~4个主分区 – 0~3个主分区+1个扩展分区(n个逻辑分区) • 注意事项 – MBR分区表只能记录4个主分区,编号范围1-4 – 当有必要使用4个以上分区时,需要建立扩展分区(占 主分区编号),扩展分区最多只能有1个 – 扩展分区作为一个中间性质的容器,从其中再划分出 的分区空间即为逻辑分区 ________________________________________ • 典型的文件系统类型 – EXT4,第四代扩展文件系统,RHEL6系列默认 – XFS,高级日志文件系统,RHEL7系列默认 – SWAP,交换空间(虚拟内存) ________________________________________ 分区表示 hd,表示IDE设备

正式学习linux-17

烂漫一生 提交于 2020-04-06 05:01:16
1.配置iscsi服务端 targetcli 是用于管理iSCSI 服务端存储资源的专用配置命令,它能够提供类似于fdisk 命令的交互式配置功能。 [root@linuxprobe ~]# targetcli Warning: Could not load preferences file /root/.targetcli/prefs.bin. targetcli shell version 2.1.fb34 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> ls #显示其目录结构 o- / ................................................................... [...] o- backstores ........................................................ [...] | o- block ............................................ [Storage Objects: 0] | o- fileio ...........................................

Wordpress安装-报错说明

不打扰是莪最后的温柔 提交于 2020-04-04 02:41:20
一:下载WordPress安装包并解压 下载地址: https://wordpress.org/latest.tar.gz 如果使用FTP将wordpress上传到远程服务器,先下载压缩包,之后上传 如果使用shell访问远程服务器,直接在远程服务器上使用wget工具下载(Linux系统) wget https://wordpress.org/latest.tar.gz 解压缩: tar -xzvf latest.tar.gz 二:创建Wordpress数据库和用户 [root@vps]# mysql -uroot -p Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 10.3.21-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> drop database wordpress; Query