Mysql Common Errors

Source: Internet
Author: User
Tags import database
I have been using php + mysql recently and may encounter some problems.

I have been using php + mysql recently and may encounter some problems.

#1067-Invalid default value for 'xxx'

This error occurs when a field in the table is modified. Display: The field name already has an error.
You have to delete this field and add it again.

UTF-8 import MYSQL Chinese no display
Today, I exported the local MYSQL Data to the web service and found that all Chinese characters were missing. The configuration is as follows:

Program code
Export the database 5.0.45. Character Set: UTF-8
Import database 5.0.22, also UTF-8

The result shows that the phpadmin version is incompatible, so that the exported data is faulty. Use the mysqldump command to export the data.

Program code
Mysqldump-uroot-p123456 thfxw> d: \ ym. SQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.