Table of Contents
回复讨论(解决方案)
Home Backend Development PHP Tutorial 这种情况如何解决呢

这种情况如何解决呢

Jun 23, 2016 pm 01:59 PM

在导入discuz!论坛数据时,出现了这个提示,如图

不知要从哪里入手才能解决呢,我想要导入的数据前缀似乎不合适,但是改mysql的前缀我也很担心,因为这个数据库中已有别的数据了,假如一改,那么会影响到其实数据的正常,乱码!不知要怎么处理呢


回复讨论(解决方案)

看一下 $_config['db'][1]['tablepre'] 和 $_config'[db'][1]''dbcharset'] 的值
他是说你准备导入的数据的字符集与你设定的字符集不同

看一下 $_config['db'][1]['tablepre'] 和 $_config'[db'][1]''dbcharset'] 的值
他是说你准备导入的数据的字符集与你设定的字符集不同
是啊,我也知道是这么回事,关键是如何解决呢,从哪里下手,我指的是细节。

我不知道你的细节,如何告诉你细节

我不知道你的细节,如何告诉你细节
我是想知道如何解决这个问题,比如去哪里改字符集,用什么方法改,诸如此类,做为我们这样的一知半解的新手来说,遇到问题最想知道的是第一步如何做,接着如何做。

既如此,那就该听从指导吧?

你说:看一下 $_config['db'][1]['tablepre'] 和 $_config'[db'][1]''dbcharset'] 的值,我在哪里看呢

用编辑器搜索一下

用编辑器搜索一下
检查了,数据库字符集是这个,然后还怎么办呢

其实也不是你一个人遇到这种问题  http://www.baidu.com/s?wd=%E6%A3%80%E6%B5%8B%E5%88%B0%E5%AF%BC%E5%85%A5%E7%9A%84%E5%A4%87%E4%BB%BD%E6%95%B0%E6%8D%AE%E4%B8%8E%E9%85%8D%E7%BD%AE&ie=utf-8

其实也不是你一个人遇到这种问题  http://www.baidu.com/s?wd=%E6%A3%80%E6%B5%8B%E5%88%B0%E5%AF%BC%E5%85%A5%E7%9A%84%E5%A4%87%E4%BB%BD%E6%95%B0%E6%8D%AE%E4%B8%8E%E9%85%8D%E7%BD%AE&ie=utf-8
呵呵,我也百度了,想想看我能不百度吗,但是这里的答案自我感觉没有一个对的,对了,上面我点确定后出现这个提示
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 90 bytes) in D:\AppServ\www\bbs\data\restore.php on line 598

 $_config['db'][1]['tablepre'] 和 $_config'[db'][1]''dbcharset'] 的值是什么?可以输出来看看吗?

我看了一个598行,没有看出哪里错呢

上面发错了,是这个

Statement of this Website
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

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 Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

Customizing/Extending Frameworks: How to add custom functionality. Customizing/Extending Frameworks: How to add custom functionality. Mar 28, 2025 pm 05:12 PM

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

See all articles