search
HomeBackend DevelopmentPHP Tutorial 怎么设置phpmyadmin自动登陆和取消自动登录

如何设置phpmyadmin自动登陆和取消自动登录

如何将安装的 phpmyadmin 设置为自动登陆?



首先在根目录找到config.sample.inc.php复制一份文件名改为config.inc.php(如果已经存在 config.inc.php 文件,则直接修改该文件即可)。


打开config.inc.php 找到 $cfg['Servers'][$i]['auth_type']?

将 $cfg['Servers'][$i]['auth_type'] = 'cookie';

中的 cookie 改成 http 或者 config?

即?

$cfg['Servers'][$i]['auth_type'] = 'http';

或者?

$cfg['Servers'][$i]['auth_type'] = 'config';


然后在下面加上如下代码:

$cfg['Servers'][$i]['user'] ? ? ? ? ?= 'root'; ? ? ?// 设置的mysql用户名

$cfg['Servers'][$i]['password'] ? ? ?= '123′; ? ? ? // 设置的mysql密码

保存即可。



如果想取消phpmyadmin自动登陆?


只需把

$cfg['Servers'][$i]['auth_type'] = 'http';?

改成

$cfg['Servers'][$i]['auth_type'] = 'cookie';

保存即可。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
如何修复 .NET 解析器返回的错误 0xC00CE556如何修复 .NET 解析器返回的错误 0xC00CE556Apr 25, 2023 am 08:34 AM

在安装应用程序的新版本时,Windows可能会显示此错误消息“解析C:\\Windows\Microsoft.Net\Framework\v2.0.50727\Config\machine.configParser返回错误0xC00CE556时出错”。当您的系统启动时,这个问题也会出现。无论您在何种情况下遇到此问题,.NETFramework都是幕后真正的罪魁祸首。您可以使用一些非常简单的修复程序来阻止此错误代码再次出现。修复1–替换损坏的文件您可以轻松地从原始目录中替换损坏的ma

Go中Type关键字有哪些用法Go中Type关键字有哪些用法Sep 06, 2023 am 09:58 AM

Go中Type关键字的用法有定义新的类型别名或者创建新的结构体类型。详细介绍:1、类型别名,使用“type”关键字可以为已有的类型创建别名,这种别名不会创建新的类型,只是为已有的类型提供一个新的名称,类型别名可以提高代码的可读性,使代码更加清晰;2、结构体类型,使用“type”关键字可以创建新的结构体类型,结构体是一种复合类型,可以用于定义包含多个字段的自定义类型等等。

解决Ubuntu挂载移动硬盘错误:未知的文件系统类型exfat解决Ubuntu挂载移动硬盘错误:未知的文件系统类型exfatJan 05, 2024 pm 01:18 PM

ubuntu挂载移动硬盘出现错误:mount:unknownfilesystemtype'exfat'处理方法如下:Ubuntu13.10或安装exfat-fuse:sudoapt-getinstallexfat-fuseUbuntu13.04或以下sudoapt-add-repositoryppa:relan/exfatsudoapt-getupdatesudoapt-getinstallfuse-exfatCentOSLinux挂载exfat格式u盘错误的解决方法CentOS中加载extfa

php如何使用ThinkPHP\Config进行配置管理?php如何使用ThinkPHP\Config进行配置管理?May 31, 2023 pm 02:31 PM

随着PHP语言的不断发展,做为PHP后端框架中广泛使用的ThinkPHP也在不断完善。随着业务场景的逐渐复杂,ThinkPHP中对于配置管理的需求也越来越大。在这种背景下,ThinkPHP提供了丰富的配置管理功能,今天我们就来介绍一下如何通过ThinkPHPConfig实现配置管理。一、ThinkPHPConfig的介绍ThinkPHPConfig是Thin

Java API 开发中使用 Auth0 进行身份认证Java API 开发中使用 Auth0 进行身份认证Jun 18, 2023 pm 05:30 PM

在现代软件开发中,身份认证是一项非常重要的安全措施。Auth0是一家提供身份认证服务的公司,它可以帮助开发者快速实现多种身份认证方式(包括OAuth2、OpenIDConnect等),并提供安全可靠的认证服务。在本文中,我们将介绍如何在JavaAPI开发中使用Auth0进行身份认证。第一步:创建Auth0账号并注册应用首先,我们需要在

php如何使用CodeIgniter\Config进行配置管理?php如何使用CodeIgniter\Config进行配置管理?Jun 02, 2023 pm 06:01 PM

一、CodeIgniter简介CodeIgniter是一个轻量级且全面的PHP开发框架,旨在为Web开发人员提供快速且强大的工具来构建Web应用程序。它是一个开源的框架,使用MVC架构模式来实现快速开发和基础功能,同时支持多种数据库。二、Config库简介Config库是CodeIgniter框架中的一个组件,用于对代码进行配置管理。Config库包含了很多

Vue3中如何使用Supabase Auth方法Vue3中如何使用Supabase Auth方法May 28, 2023 am 08:39 AM

引言Supabase是一个自称的"开源Firebase替代品"。我对与Supbase合作已经有一段时间了,我想我将尝试使用他们的认证API来为Vue.js3应用程序进行认证设置。首先,你为什么要使用SupabaseAuth?最重要的是,如果你使用Supabase作为你的数据存储,(它有一些非常甜蜜的好处),SupabaseAuth是你可以管理对这些数据的访问的唯一方法。其次,虽然SupabaseAuth也有许多不同的功能。没有中间件的用户权限(通过Postgres的行级安全)

使用 Auth0 实现 PHP 安全验证使用 Auth0 实现 PHP 安全验证Jul 25, 2023 pm 02:09 PM

使用Auth0实现PHP安全验证引言:在现代的Web开发中,安全验证是至关重要的一部分。为了保护用户的隐私和数据安全,我们需要采取措施确保只有授权用户才能访问敏感信息或执行特定操作。Auth0是一个流行的身份验证和授权平台,它提供了简单且强大的解决方案来帮助我们实现安全验证。本文将介绍如何使用Auth0实现PHP的安全验证,并提供代码

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software