Flash pragmatism (II)-the shortest path principle (I) is to simplify complicated problems.
There is not only one way to achieve the goal, but the one at the moment is often not the shortest one. Therefore, the first step before solving the problem
In MySQL, varchar cannot use the max () function. Today, a problem occurs. in MySQL, data of the varchar type cannot use the max () function, which is not familiar with MySQL, so I checked and found that these two methods are good.
1. add 0 to
Mysqlaltertable memo in most cases, a temporary backup (temporarily named B) of the target table (temporarily named a) will be copied during alter table operations ), all the alter operations are performed on the backup file (B), then the target
Step 1: run the cmd command. net stop mysql to stop the mysql service.
Step 2 @ go to the bin folder of the mysql installation directory and run mysqld-nt -- skip-grant-tables
(The purpose is to skip password detection) do not close the cmd
Database design StepbyStep (5) Introduction: in database design Step by Step (4), we discuss components and semantics of advanced entity relationship models, such as generalization, aggregation, and ternary relations. Starting from this lecture, I
I haven't talked about database skills for a long time in mysqL learning examples. of course, I am not a master. so I can't help myself with that sentence! Haha!
I. operation skills
1. if you forget the extra points after you press enter when
PHP + MYSQL garbled solutions:
Add a set names UTF8 clause after mysql_connect to eliminate garbled characters in the UTF8 database. set names gbk is used for GBK databases. the code is as follows:
1 $ mysql_mylink = mysql_connect ($ mysql_host,
Repairtable causes data loss on the local test machine the day before yesterday. MySQL 5.1.43 and MyISAM engines cause data loss when executing repair table. We hereby record that the same problem was encountered in MySQL 5.0.32, therefore, you must
Mysql writes the limit subquery and obtain all records of a certain day to MYSQL today. when there is a requirement, limit is used in the subquery. If you are depressed, you cannot go through it. But you only need to convert it. It is a tragedy.
MysqlExecuteReader: The following exception occurs when ExecuteReader is called:
The timeout period elapsed prior to obtaining a connection from the pool... by calling show processlist to check The number of links, hundreds of links have been hung
Format MYSQL timestamp function FROM_UNIXTIME unix timestamp
I have not studied MYSQL in depth and have little basic knowledge. I can only use a manual when I encounter any problems. it seems that I have to arrange MYSQL learning into a timetable.
MySQL Performance Tuning Tool reproduced: MySQL Performance Tuning Tool: more convenient than mysqlreport tuning-primer.sh
At the beginning of the year, I collected an explanation of mysqlreport, and output a better readable report than show
I encountered a problem in the group when querying the decode effect of the oracle Database. I thought it was a bit interesting. let's take a look at it.
The following code passes the test in MYSQL. MSSQL should be able to run without testing.
MySQLMemcachedUDF installation notes memcache
MySQL Memcached UDF has been installed in several environments recently. many problems have been encountered during the installation. The installation process is really hard to solve. because the
When the MySQL common command set younger brother recently used MySQL c api for a project, he encountered a MySQL database character set problem. I checked some information and posted the MySQL command to share with you (MySQL version ):
1. view
MySQL JDBC database connection pool configuration Reference: [problem] database connection pool
There are a lot of configuration methods on the internet. I only record my configuration successful
1. create context. xml in the META-INF folder of
MySQL5.1 study notes (1)-basic operations refer to the official documentation: http://dev.mysql.com/doc/refman/5.1/zh/tutorial.html
Log on to the database through the command line (mysql-uroot-p directly follows the password without spaces. you can
A problem occurs when a beginner reinstalls mysql. if mysql cannot be deleted, the previous password is always required. it is a tragedy if the password is not remembered. Haha, I am miserable. I can't find the answer on the internet. first, I will
MySQL scattered notes-primary key Reference: a discussion of MySQL primary key author: simaopig
A primary key is not clearly defined. it is an index and a unique index. it must be defined as a "primary key ".
Declaration method:
Create table
Mysql uses the Navicat client to store data. There are two practical methods for transferring data.
1. connect the client to the server database and local database. you can copy and paste the corresponding table to the corresponding server
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