View and modify the mysql encoding method so that it supports Chinese (gbk or utf8)

The default encoding of MySQL is Latin1, which does not support Chinese characters. To support Chinese characters, you must change the default encoding of the database to gbk or utf8.1. You need to log in as the root user to view the database

Settings and problems related to the auto-increment auto_increment function in mysql

The auto-increment auto_increment function in mysql is believed to have been used by every phper and knows how to set the field to an auto-increment field. However, not all phper know how to set the starting value and increment value of

In-depth analysis on usage and closure of Mysql cursors

Mysql has been supporting stored procedures and triggers since mysql 5.0, giving us the reason that mysql friends prefer Mysql. The syntax is different from PL/SQL, but anyone who has programming knows that, syntax is not a problem. The key is

Mysql grouping takes the first few records (ranking) in each group with group by and order

-- Group data by a certain field to get the data of the row with the maximum (small) ValueCopy codeThe Code is as follows:/*The data is as follows:Name val memoA 2 a2 (the second value of)A 1 a1 -- the first value ofA 3 a3: The third value ofB 1 b1 -

Difference between count () and sum () in Mysql

First, create a table to describe the problem.Copy codeThe Code is as follows:Create table 'result '('Name' varchar (20) default NULL,'Subobject' varchar (20) default NULL,'Score 'tinyint (4) default NULL) ENGINE = MyISAM default charset = utf8

MySQL Order By index Optimization Method

Although order by does not match the ORDER of the index, the index can still be used, as long as the unused index part and all the additional order by fields are included in the WHERE clause.Use the index MySQL OrderThe following queries use indexes

MySQL cannot be started and cannot be stopped (it is easy to appear after security settings)

Recently, MySQL on Windows 2003 experienced a failure in connecting to the database when it was running normally many times. This problem occurs when it was unable to connect to the database or stop or restart MySQL. Restarting the database also did

How to modify mysql Character Set and Database Engine

MySQL Character Set: cp1252 West European (latin1) to solve the garbled ProblemWhen you use phpmyadmin In the VM space to operate the database, if the MySQL Character Set displayed on the phpmyadmin homepage is cp1252 West European (latin1), garbled

Description of using filesort in Mysql EXPLAIN

Syntax format:EXPLAIN tbl_nameOr:Explain select select_optionsThe EXPLAIN statement can be used as a synonym for DESCRIBE, or used to obtain information about the SELECT statement to be executed by MySQL.The EXPLAIN tbl_name syntax is the same as

Mysql full-text search match against usage

For large databases, it is very fast to load data to a TABLE without FULLTEXT indexes and then CREATE an INDEX using alter table (or create index. Loading data to a table with FULLTEXT indexes will be very slow.1. Prerequisites for using Mysql

How to enable MySQL to support Chinese sorting

Enable MySQL to support Chinese sortingWhen programming MySQL, The ISO-8859 character set is generally used as the default character set. Therefore, during the comparison process, one solution is to add the "binary" attribute to a field that

How to solve the error 150 error prompt when mysql processes the addition of Foreign keys

You cannot create one. the error of the frm file seems to imply an error in the file permission of the operating system or other reasons, but in fact, none of these are actually. In fact, this mysql error has been reported as a mysql bug and has

Mysql Index classification and Usage Analysis

I. MySQL: indexes are saved in B-tree format.The Memory storage engine can select Hash or BTree indexes. Hash indexes can only be used for Equality comparison of = or .1. Normal index: create index on Tablename (column list)Alter table TableName add

Slow remote connection to mysql (mysql_connect slow connection)

After ping and route, it is found that network communication is normal, and local connection discovery on the mysql machine is very fast, so the network problem is basically ruled out. I have encountered such a problem before, but I don't know how

Tips for creating databases and tables in Mysql

1. Are you still using a primary key for association between two tables?For example, there are two tables, one for news topic and one for news. Now the two tables need to be associated, I think most people must create a news topic id in the News

How to create a user-defined function in mysql

A problem occurs immediately when a function is created:ERROR 1418 (HY000): This routine has none of DETERMINISTIC, no SQL,Or reads SQL DATA in its declaration and binary logging is enabled(You * might * want to use the less safe

Mysql source code learning notes peek thread

I felt that the code was a little messy, and the comments and codes were written at random. There seemed to be no uniform specification, and there were also differences in the Code styles in different files. Maybe Mysql had gone through a lot of

MySQL Optimization Configuration File my. ini (discuz Forum)

In the architecture of Apache, PHP, and MySQL, MySQL has the greatest impact on performance and is also a key core component. For Discuz! The same is true for Forum programs. Whether MySQL settings are reasonably optimized directly affects the speed

Difference between LEN () and DATALENGTH () in mySQL

LEN (string_expression) parameter: string to be calculatedReturnsCharacter Count, Which does not contain trailing spaces.If the expression data type is varchar (max), nvarchar (max), or varbinary (max), it is bigint; otherwise, it is int.Ntext

Mysql Default Risk Analysis page 1/2

The following elements are involved in the insecure mysql service installed by default:I. Default mysql authorization tableIi. Lack of log capabilityIii. Password leakage for my. ini files4. Services are bound to all network interfaces by default.V.

Total Pages: 3233 1 .... 975 976 977 978 979 .... 3233 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.