广告
返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >安装MariaDB phpMyAdmin
  • 194
分享到

安装MariaDB phpMyAdmin

2024-04-02 19:04:59 194人浏览 安东尼
摘要

1 安装设置MariaDB5.5[root@Mysql ~]# yum -y install mariadb-server [root@mysql ~]# vi /etc/my.cnf [mysqld]ch

1 安装设置MariaDB5.5

[root@Mysql ~]# yum -y install mariadb-server

[root@mysql ~]# vi /etc/my.cnf
[mysqld]

character-set-server=utf8

[root@mysql ~]# systemctl enable  mariadb.service
[root@mysql ~]# systemctl start  mariadb.service

[root@mysql ~]# mysql_secure_installation

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] y
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] y
 ... 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] y
 ... 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] y
 - 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] y
 ... 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!


2 安装设置Httpd

[root@mysql ~]# yum -y install httpd

[root@mysql ~]# rm -f /etc/httpd/conf.d/welcome.conf
[root@mysql ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@mysql ~]# systemctl start httpd
[root@mysql ~]# vi /var/www/html/index.html

<html>
<body>
<div >
Test Page
</div>
</body>
</html>

直接访问网页

安装MariaDB phpMyAdmin

3 安装设置PHP

[root@mysql ~]#  yum -y install php php-mbstring php-pear

[root@mysql ~]# vi /etc/php.ini
date.timezone ="Asia/ShangHai"

[root@mysql ~]# systemctl restart httpd

[root@mysql ~]# vi /var/www/html/index.php

<html>
<body>
<div >
<?php
   print Date("Y/m/d");
?>
</div>
</body>
</html>

安装MariaDB phpMyAdmin

4 安装设置phpMyAdmin

[root@mysql ~]# yum --enablerepo=epel -y install phpMyAdmin php-mysql php-mcrypt

[root@mysql ~]# vi /etc/httpd/conf.d/phpMyAdmin.conf

<IfModule mod_authz_core.c>
     15      # Apache 2.4
     16      <RequireAny>
     17        Require ip 127.0.0.1 9.110.187.100/24
     18        Require ip ::1
     19      </RequireAny>
     20    </IfModule>
     21    <IfModule !mod_authz_core.c>
     22      # Apache 2.2
     23      Order Deny,Allow
     24      Deny from All
     25      Allow from 127.0.0.1
     26      Allow from ::1
     27    </IfModule>
     28 </Directory>
     29
     30 <Directory /usr/share/phpMyAdmin/setup/>
     31    <IfModule mod_authz_core.c>
     32      # Apache 2.4
     33      <RequireAny>
     34        Require ip 127.0.0.1 9.110.187.100/24
     35        Require ip ::1
     36      </RequireAny>
     37    </IfModule>

安装MariaDB phpMyAdmin

[root@mysql ~]# systemctl restart httpd

安装MariaDB phpMyAdmin

安装MariaDB phpMyAdmin

--结束END--

本文标题: 安装MariaDB phpMyAdmin

本文链接: https://www.lsjlt.com/news/42799.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • 安装MariaDB phpMyAdmin
    1 安装设置MariaDB5.5[root@mysql ~]# yum -y install mariadb-server [root@mysql ~]# vi /etc/my.cnf [mysqld]ch...
    99+
    2022-10-18
  • Centos 7中如何安装MariaDB数据库、PHP和PHPMyAdmin
    这篇文章给大家分享的是有关Centos 7中如何安装MariaDB数据库、PHP和PHPMyAdmin的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。1、安装MariaDB数据库&...
    99+
    2022-10-19
  • 安装Mariadb
    基于Centos6来安装,Centos 7可以直接使用yum安装 一、 准备mysql组和用户:groupadd -r -g 306 mysqluseradd -r -g mysql -...
    99+
    2022-10-18
  • mariadb安装
    cd /usr/local/src wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86_...
    99+
    2022-10-18
  • Windows安装MariaDB
    参考连接: https://mariadb.com/kb/en/mysql_install_dbexe/ 下载压缩包,解压,然后将bin文件夹加入Path。 然后打开CMD窗口执行安装命令:(管理员权限) mysql_instal...
    99+
    2020-05-04
    Windows安装MariaDB
  • CentOS安装MariaDB
    配置repo源 官方yum源生成器:https://downloads.mariadb.org/mariadb/repositories/#mirror=tuna 创建并编辑/etc/yum.repos...
    99+
    2022-10-18
  • 安装phpmyadmin
    要安装phpMyAdmin,您需要按照以下步骤进行操作:1. 安装LAMP(Linux,Apache,MySQL和PHP)或WAMP...
    99+
    2023-10-11
    php
  • 初识MariaDB之1——MariaDB的安装
    一、MariaDB介绍MariaDB是Mysql在被Oracle收购后由原作者重新开发的一种关系型数据库程序,由于是同一个作者,所以在操作上与Mysql十分类似,版本也是相互对应,如:MariaDB5.5对...
    99+
    2022-10-18
  • 安装配置mariadb
    记录下安装配置mariadb的经历。 环境:ubuntu22 一、apt在线安装 apt代理配置  APT是Ubuntu系统中用于安装和升级软件包的工具,如果本地没有可用的软件包,APT将会连接到远程软件包服务器下载软件包。在某些情况下,用...
    99+
    2023-10-09
    mariadb 数据库
  • CentOS 8 安装 MariaDB
    MariaDB 数据库管理系统是 MySQL 的一个分支,主要由开源社区在维护,采用 GPL 授权许可。开发这个分支的原因之一是:甲骨文公司收购了 MySQL 后,有将 MySQL 闭源的潜在风险,因此社区采用分支的方式来避开这个...
    99+
    2016-04-11
    CentOS 8 安装 MariaDB
  • mariadb 安装步骤
    下载地址:https://downloads.mariadb.org/mariadb/10.2.10/ ...
    99+
    2022-10-18
  • 八、phpmyadmin安装
    1、简介phpMyAdmin 是一个以PHP为基础,以Web-Base方式架构在网站主机上的MySQL的数据库管理工具,让管理者可用Web接口管理MySQL数据库。借由此Web接口可以成为一个简易方式输入繁...
    99+
    2022-10-18
  • mariadb安装和使用
    安装和使用mariadbcentos 7 直接提供centos 6通用二进制安装过程1、准备数据目录以/mydata/data为例2、配置mariadb#groupadd -r -g 200 mysql#u...
    99+
    2022-10-18
  • CentOS 6.4 安装 MariaDB 10.3
    本文介绍如何使用yum在CentOS 6.4 安装 MariaDB 10.31. 创建mysql组groupadd mysql2. 创建mysql用户并添加到mysql组useradd -g mysql m...
    99+
    2022-10-18
  • MariaDB-10.1yum安装方法
    MariaDB-yum仓库搭建方法:相关参考网站:http://yum.mariadb.org/https://mariadb.com/kb/en/mariadb/yum/MariaDB 10.Xcento...
    99+
    2022-10-18
  • 使用yum安装MariaDB
    添加MariaDB的YUM源基于YUM的Linux发行版的YUM源,使用在线的源生成器可以轻松地为你的发行版生成正确的MariaDB.repo,不同系统版本yum源生成器:https://downloads...
    99+
    2022-10-18
  • mariadb-10.1.22mariadb编译安装
    官方下载地址: https://mirrors.tuna.tsinghua.edu.cn/mariadb//mariadb-10.1.22/source/mariadb-10.1.22.tar.g...
    99+
    2022-10-18
  • centos7如何安装mariadb
    这篇文章主要为大家展示了“centos7如何安装mariadb”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“centos7如何安装mariadb”这篇文章吧。为...
    99+
    2022-10-18
  • 初识MariaDB之2——MariaDB多实例安装
    一、背景介绍MariaDB多实例就是在一台机器上开启多个不同的服务端口,运行多个MySQL服务进程,通过不同的socket监听不同的服务端口来提供各自的、互不干涉的服务,各个实例可以根据不同的配置文件设置相...
    99+
    2022-10-18
  • 怎么安装phpMyAdmin?
    phpMyAdmin 就是一种 MySQL 数据库的管理工具,安装该工具后,即可以通过 web 形式直接管理 MySQL 数据,而不需要通过执行系统命令来管理,非常适合对数据库操作命令不熟悉的数据库管理者,下面详细说明该工具的安装方法。第一...
    99+
    2015-04-20
    phpmyadmin
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作