Wordpress prompt"Error establishing a database connection" indicates that an Error occurs during data connection.Find the following: The code is as follows:Copy code /** Replace "putyourdbnamehere" with the WordPress database name "*/Define ('Db
Recently I moved wordpress from Sina SAE to Baidu BAE. However, database connection errors often occur, but refresh a few times. After Google's search, there are two methods:1. Add define ('WP _ ALLOW_REPAIR ', true) to the wp_config.php file );It
(Linux parameters)
Open the/etc/My. CNF file and modify the following settings. If not, add it manually. When adjusting the settings, please do your best, which depends on the configuration of your server, especially the memory size. The following
MyISAM
MyISAM is the default storage engine of MySQL. MyISAM provides a good solution to the performance and features. Features include full-text indexing, compression, and GIS functions. MyISAM does not support transactions and row locks.
Storage
PHP Technology Group 170855791MySQL5.5 later uses the InnoDB storage engine by default, where InnoDB and BDB provide transaction-safe tables, and other storage engines are non-transactional security tables.To modify the default engine, you can
MySQL Full-text Search Fulltext match
At 3.23.23, MySQL began to support Full-text indexing and searching. Full-text indexing is an fulltext type index in MySQL. The fulltext index is used for MyISAM tables, which can be created on a CHAR, VARCHAR,
MySQL sometimes because of power off or other causes of the database corruption, the wrong message is as follows:
Mysql:can ' t Open file: ' Sdb_sessions. Myi '. (errno:145)
For more information, and the Support Center at
We can use MySQL's own
I. Major changes from 4.0 to 4.1
If you created a InnoDB table containing timestamp fields in the MySQL tutorial 4.1.0 to version 4.1.3. You need to rebuild the table when upgrading to 4.1.4 and higher because the storage format has changedStrings
For some time recently, company's server every once in a while (about 24 hours), will appear inaccessible situation, and then restart the server, everything is back to normal, has not known what is the problem, so asked the engine room engineer, he
The first is the fastest, to fix the most common problems, and the last one is the slowest to fix problems that some other methods cannot fix. Review and repair MySQL data filesIf the above method cannot fix a damaged table, you can try these two
The common MySQL table engine has InnoDB and MyISAM, the main difference is that InnoDB is suitable for frequent write database operations, MyISAM suitable for reading the database a little bit more, how to change the table engine InnoDB to MyISAM?
Adjust the my.cnf parameters, reconfigure (the system default configuration is too high to directly occupy 400M of memory, small players can not afford to play it)
performance_schema_max_table_instances=200table_definition_cache=200table_open_cache=
1. CREATE index
The creation of the index can be done in the CREATE TABLE statement, or you can add indexes to the table separately with the CREATE INDEX or ALTER TABLE. The following command statements show how to create a primary key index
MyISAM: This is the default type, which is based on the traditional ISAM type, and ISAM is the abbreviation for indexed sequential access method (indexed sequential access methods), which is the standard way to store records and files. Compared to
MySQL logical architecture:
Concurrency control: implemented by locks
Read Lock: Also called shared lock, read lock does not block each other. A a,b,c,d can read the table after the lock table but cannot write the table.
Write Lock: Also called
1.myisamchk Method of Invocation
myisamchk [Options] tbl_name ...
Where options specify what you want Myisamchk to do.
It allows you to use the mode "*. Myi "Specifies all the tables in a directory.
Shell> Myisamchk *. Myi
The recommended way to
It is also possible that any of these methods can be applied to this database. I temporarily did not have the condition test, has the condition to test, hoped solves the database to report this error the question.Preventive measures:1, must back up
MyISAM type does not support advanced processing such as transaction processing, and InnoDB type support, this article for you to explain the difference between Engine=innodb and Engine=myisam in MySQL, do not understand the friends can learn, I
When you first build a database with MySQL administrator, the table defaults to the InnoDB type, and you don't care. Later, when using Access2mysql to guide the data found can only lead to myisam type of table, do not know what the difference
The syntax of load
Copy Code code as follows:
LOAD DATA [Low_priority | CONCURRENT] [local] INFILE ' File_name.txt '
[REPLACE | IGNORE]
Into TABLE tbl_name
[FIELDS
[Terminated by ' string ']
[[optionally] enclosed by '
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.