MySQL supports unidirectional and asynchronous replication. One server acts as the master server during the replication process, and one or more other servers act as slave servers. The master server writes updates to the binary log file and
Because SupeSite needs to call Discuz! And UCHome data, so if they are not installed in the same database, SupeSite database users must pair Discuz! And UCHome databases have read
Because SupeSite needs to call Discuz! And UCHome data, so if they
The remote client is too slow to connect to the MysqL database. solution: the local network client is slow to access the mysql connection. Cdetcmysqlvimy. conf [mysqld] skip-name-resolve this option disables DNS resolution, and the connection speed
DATE_FORMAT (date, format) format the date or date and Time Value Based on the format string, and return the result string. You can use DATE_FORMAT () to format the DATE or DATETIME value to obtain the expected format. Format the date value based on
The advantage of parallel query is that it can process query jobs through multiple threads, thus improving the query efficiency. SQLServer database provides the parallel query function for database servers with multiple CPUs to Optimize Query job
SELECT @ SERVERNAME, SERVERPROPERTY (SERVERNAME) -- default instance USEmasterGO -- set two variables DECLARE @ serverproperty_servernamevarchar (100), @ servernamevarchar (100) -- obtain information about the WindowsNT server and the instance
Mysql has the following types of logs:-log-err query log:-log slow query log:-log-slow-queries update log:-log-update BINARY log: -Whether mysqlshowvariableslikelog _ % is enabled for log-bin; how to know the current log mysqlshowmasterstatus;
Batch processing is a non-interactive way to run mysql programs. Like the commands you use in mysql, you will still use these commands. To implement batch processing, you need to redirect a file to the mysql program. First, we need a text file
In Linux, after mysql is installed, the service cannot be started directly. You must initialize the database first. Initialization mainly includes initializing logs, tablespaces, and other necessary database files; Creating and initializing the
We often encounter this problem. How can we use mysql Databases in non-web programs or asp programs? There are two solutions to this problem: 1. Use the api function library provided by mysql. Many well-known mysql client tools are implemented in
The default Character Set modification of warmservermysql is only used to list the main modified parts. The following red parts need to be modified and noted. The other parts remain unchanged in my. the default Character Set setting cannot be found
Mysql views the table using the engine showtablestatusfrom database name wherename table name; change it: altertable table name engineinnodb; altertable table name enginemyisam;
Mysql displays the table's engine show table status from database name
Phenomenon: Website access is getting slower and slower, and the website cannot be accessed at last. After checking, it is found that the disk is full. After careful query, it is confirmed that the binlog of mysql is too large to occupy space.
Today, we found that the Master-slave database of Mysql was not synchronized first to the Master database: mysqlshowprocesslist; check whether there are too many Sleep processes. It is normal. Showmasterstatus; also normal. Mysqlshowmasterstatus; + -
To adapt to the ever-changing technologies, a considerable number of software engineers have gradually switched from desktop software such as Microsoft Access and SQLServer to MySQL. Although MySQL is not a rival to SQL Server, many service
The symptom of a corrupted table is that the query is accidentally interrupted and you can see such errors: "tbl_name.frm" is locked and cannot be changed. The file "tbl_name.MYI" (Errcode: ###) cannot be found :###). Error ### obtained from the
Modify the auto_increment1. SQL statement ALTERTABLEtable_nameAUTO_INCREMENT12 in mysql to cut the table. The truncate table auto increment value is automatically reset to 0. TRUNCATETABLEtable_name
Modify auto_increment in mysql 1. SQL statement
(Conversion) Add a user to create a user in MySQL: Command: CREATEUSERusername @ hostIDENTIFIEDBYpassword; Description: username-the username you will create, host-specifies the host on which the user can log on, if a local user can use localhost,
As described in the previous blog posts, the instance information after the process is completed can be queried through a unified entry, that is, advanced query (an excel file can be exported or an interface for generating various reports is
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