当前位置: 首页 > news >正文

网站上广告百度站长联盟

网站上广告,百度站长联盟,做兼职的设计网站,.net建设网站步骤详解这一版取消了修改配置的操作,改成每次创建数据库时手动指定字符集编码;这一版取消了修改密码的操作,保留 MariaDB 使用无密码的情况,即密码是 ""。 安装步骤: 以下操作都以 root 用户进行操作 以下操作都以 …

  1. 这一版取消了修改配置的操作,改成每次创建数据库时手动指定字符集编码;
  2. 这一版取消了修改密码的操作,保留 MariaDB 使用无密码的情况,即密码是 ""。

安装步骤:

以下操作都以 root 用户进行操作

以下操作都以 root 用户进行操作

以下操作都以 root 用户进行操作

安装

安装 mariadb 服务

# yum install -y mariadb-server

安装 mariadb 命令行客户端

# yum install -y mariadb

安装 mariadb C library

# yum install -y mariadb-libs

安装 mariadb 开发包

# yum install -y mariadb-devel

启动

启动服务

# systemctl start mariadb

设置服务开启自启动

# systemctl enable mariadb

查看服务状态

# systemctl status mariadb

可能的输出为,注意到 Active 状态为 active (running)

● mariadb.service - MariaDB database serverLoaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)Active: active (running) since 五 2018-11-09 12:49:23 CST; 19min agoMain PID: 1510 (mysqld_safe)CGroup: /system.slice/mariadb.service├─1510 /bin/sh /usr/bin/mysqld_safe --basedir=/usr└─2030 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-...

11月 09 12:49:15 peixinchen.host systemd[1]: Starting MariaDB database server…
11月 09 12:49:17 peixinchen.host mariadb-prepare-db-dir[1062]: Database MariaDB is probably initialized in /var/lib/m…ne.
11月 09 12:49:19 peixinchen.host mysqld_safe[1510]: 181109 12:49:19 mysqld_safe Logging to ‘/var/log/mariadb/mariadb.log’.
11月 09 12:49:19 peixinchen.host mysqld_safe[1510]: 181109 12:49:19 mysqld_safe Starting mysqld daemon with databas…mysql
11月 09 12:49:23 peixinchen.host systemd[1]: Started MariaDB database server.
Hint: Some lines were ellipsized, use -l to show in full.


测试连接

使用命令行客户端尝试连接

# mysql -uroot

可能的输出为

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version: 5.5.60-MariaDB MariaDB Server

Copyright © 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]>


查看 mariadb 版本号

MariaDB [(none)]> select version();
±---------------+
| version() |
±---------------+
| 5.5.60-MariaDB |
±---------------+
1 row in set (0.01 sec)

创建数据库时为了支持中文,统一使用 utf8mb4 字符集

MariaDB [(none)]> create database demo_db charset utf8mb4;

以上内容参考自https://zhuanlan.zhihu.com/p/49046496

http://www.dinnco.com/news/13809.html

相关文章:

  • 王烨琳网站排名优化外包公司
  • 淘客网站怎么做淘口令快速提高排名
  • com网站注册百度推广登录平台
  • 请人做外贸网站应注意什么问题齐三seo顾问
  • 成都免费建网站公司发布项目信息的平台
  • 免费代理ip的网站2023年九月份新闻
  • 新闻做的差的网站交换友情链接的要求有
  • 营销网站怎么做百度网站收录
  • 前端开发框架有哪些seo引擎优化是做什么的
  • 邢台建网站的公司开封网站设计
  • 济南专业做网站公司哪家好外链吧官网
  • 做面食的网站前端开发
  • 衢州网站建设费用知道百度
  • 网站建设价格多少东莞百度快速排名
  • 网站文章做百度排名安卓神级系统优化工具
  • 做电影网站需要多打了服务器四年级2023新闻摘抄
  • 珠海网站建设专线营销型网页设计
  • 做家政有专门的网站吗小程序制作流程
  • 怎么样查询建设网站谷歌官网登录入口
  • 汕头企业自助建站系统seo流量增长策略
  • 昆明模板建站代理图片搜索图片识别
  • 软件下载网站模板上海关键词排名优化公司
  • 网站开发系统百度seo在哪里
  • 巩义企业网站建设报价深圳网络推广培训机构
  • 萍乡今日头条新闻国内专业seo公司
  • 做博客网站要什么技术最新域名查询ip
  • 大连开发网站建设公司建网站流程
  • 自己给网站做支付接口企业seo排名有 名
  • 那些企业网站做的漂亮百度关键词排名原理
  • 做网站找那些公司优化神马网站关键词排名价格