Change the MySQL driver used by Joomla(更改 Joomla 使用的 MySQL 驱动程序)
问题描述
我在安装 Joomla 时,mysqli 是默认选项,所以我安装了 mysqli 驱动程序.
When I was installing Joomla, mysqli was the default option, so I installed with mysqli driver.
但是我客户端的数据库是mysqli.因此,当我将本地站点迁移到主机时,出现此错误:
But the database of my client is mysqli. So when i migrate my local site to the host, i get this error:
数据库连接错误 (1):MySQL 适配器 'mysqli' 不可用.
Database connection error (1): The MySQL adapter 'mysqli' is not available.
有人可以知道我如何更改/返回到 'mysql' 驱动程序吗?因为我使用'mysqli'驱动程序在本地主机中配置了我所有的Joomla站点.
Can someone know how I change/go back to 'mysql' driver? Because I configured all my Joomla sites in localhost with the 'mysqli' driver.
推荐答案
打开 configuration.php 并更改:
Open configuration.php and change this:
public $dbtype = 'mysqli';
到这里
public $dbtype = 'mysql';
这篇关于更改 Joomla 使用的 MySQL 驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:更改 Joomla 使用的 MySQL 驱动程序
基础教程推荐
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 无法解决整理冲突 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
