How to synchronize two hosts in MySQL

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

How to Set cross-permission settings for Databases

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

MysqL database is too slow solution

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

Brief Introduction to mysql database formatting

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

Concurrent queries allow SQL Server to run faster

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

Set SQLServer name instance to default instance

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

Enable and view logs in MYSQL

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;

Use batch processing to operate MySQL Data

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

Mysql initialization in Windows

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

How to Use MySQLODBC driver in VC and Delphi

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

Warmservermysql default Character Set Modification

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 view the engine used in the table

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

Mysql's binlog is too large to occupy a large number of disks

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.

Mysql Master/Slave databases are not synchronized

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; + -

Differences between MySQL and Access

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

How to fix MySQL database tables

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

Mysql Stored Procedure Reading Note 2 (controlandconditionallogic)

Mysql Stored Procedure Reading Notes 2 (controlandconditionallogic) 1. Ifcreateprocedureexample3 (stu_idint) begin ??? Declarestu_namevarchar (30 );????? Selectname=stu_namefromstudentwherestudent_idstu_id ;???? Ifstu_nameisnotnull Mysql Stored

Correct auto_increment in mysql

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

) More MySQL users

(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,

An optimization process and other related query SQL statements

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

Total Pages: 12780 1 .... 5995 5996 5997 5998 5999 .... 12780 Go to: GO

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.