Common MySQL code error messages and Solutions

Source: Internet
Author: User
Tags mysql code

130: the file format is incorrect. (The error is not clear yet)

145: the file cannot be opened.

1005: An error occurred while creating the table.

1006: An error occurred while creating the database.

1007: the database already exists and creation failed.

1008: the database does not exist. An error occurred while deleting the database.

1009: the database file cannot be deleted, leading to database deletion failure.

1010: The data directory cannot be deleted, leading to database deletion failure.

1011: failed to delete the database file.

1012: records in the system table cannot be read.

1016: the file cannot be opened. Use the background fix or phpmyadmin to fix it.

Quote:
Start => All Programs => attachments => Command Prompt
Enter the hard drive letter of the mysql instance.
Directory of cd mysql
Cd bin
Enter myisamchk-f D: usr/local/mysql/data/bbs/PW_members.MYI
Ps: D: usr/local/mysql/data/bbs is the path of your forum Database
-F is selected based on the actual situation. Generally, you can select-r.
Pay attention to whether your system disk C or the hard disk space for storing the database is sufficient. Generally, errors may occur if the disk space is less than 1 GB.
Or use the mysqlcheck command to fix the issue. Specific Method: Use the command line to enter the mysql/bin directory and execute
Mysqlcheck-o-r phpwind-uroot-p
Phpwind indicates the name of your database, and root indicates your database username. Then, you are prompted to enter the password. Then your database will be repaired.

1017: the server is shut down illegally, causing damage to the file.

1020: the record has been modified by another user.

1021: The remaining space on the hard disk is insufficient. please increase the available space on the hard disk.

1022: duplicate keywords. failed to change the record.

1023: An error occurred while disabling the service.

1024: An error occurred while reading the file.

1025: An error occurred while changing the name.

1026: file writing error.

1030: the server may be unstable. (The specific reason is not clear)

1032: the record does not exist.

1036: The data table is read-only and cannot be modified.

1037: The system memory is insufficient. Restart the database or restart the server.

1038: the memory used for sorting is insufficient. Increase the sorting buffer.

1040: Maximum number of connections to the database. Increase the number of available connections to the database.

Quote:
In my. ini, modify max_connections = 100 to max_connections = 1000 or greater, and restart mysql.

1041: insufficient system memory.

1042: Invalid host name.

1043: Invalid connection.

1044: the database user permissions are insufficient. Contact the Space Provider.

1045: the database server/database username/database name/Database Password is incorrect. Please contact the Space Provider to check your account.

  • 1
  • 2
  • 3
  • Next Page
[Content navigation]
Page 1st: MySQL common code error prompts and Solutions Page 2nd: MySQL common code error prompts and Solutions
Page 3rd: MySQL common code error prompts and Solutions

Related Article

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.