mysql| data mysql4.1 and later versions include spatial data engines, which can access spatial data and make spatial queries through SQL statements. The MySQL spatial engine saves space data using the WKT (well-known Text)/WKB (well-known Binary)
New installed Windows7 64-bit system, equipped with many things, there is always such a son of Congi, yesterday in the beginning to decorate Php+apache, echo phpinfo () completely no problem, but the once connection MySQL will render the page is
mysql| backup MySQL Automatic backup is critical, especially for DBAs. Here the main use of code to illustrate this issue, I hope to help you. You can put this script into the crontab, perform it once every morning, and automatically back up.
This
MySQL 1. Download mysql-xxx.tar.gz First
2. Decompression: Tar zxvf mysql-3.22.32.tar.gz
3. CD mysql-3.22.32
4. The installation directory is not set:./configure--prefix=/Your Path/mysql
5. Make
6. Make Install
7. CD Scripts
8./mysql_install_db
9.
Mysql
Author: Wang Mei (HeartIcy@163.com)
The loss of the password is very distressing things, especially the root password lost: (. Install yourselfPlay lost also lost, but in the event of a production server hanging trouble can be big!
Now
Environment: MySQL Server 5.1 + Navicat for MySQL 8.2
Problem: 121 error occurred while modifying foreign key deletion
Solve:
Change the foreign key name to another name.
Error message Reference:
Error 121
This is the name of the external
Environment: navicatformysql8.2+ MySQL Sever 5.1
Problem: MySQL graphical settings unique key
Workaround: The graphical tool does not have this function. You can use SQL commands.
One: Modify the table, for example
ALTER TABLE tablename ADD
MySQL single machine Multiple instance scenario, refers to running multiple MySQL database instances on a single physical server.
The advantages of MySQL single machine multi-instance:
1, save the cost, reduce the number of servers, IP, cabinets,
I. MySQL logical architecture
Second, the lock
1. Read and Write lock
Read locks are shared, are not blocking each other, multiple customers at the same time reading the same resources, complementary interference. Write locks are exclusive,
A simple SQL statement actually took the 15.87 sec,
Wrote
Mysql> SELECT x.loc as Loc, x.lastmod as Lastmod, x.changefreq as Changefreq, X.changecount as Changecount, x.priority As priority, x.language as language, X.ac cess as Access, x.status as
Here goes the optimizer section in the previous article:
How MySQL executes associated queries
MySQL performs nested loops associated operations on any association, that is, to loop out a single piece of data in a table, and then to nest loops
When stored procedures, functions, triggers, and views are created, not only by the creator to execute, but also by other users, in other words, the performer may not be the creator itself, so how does MySQL do permissions checks when executing the
Haproxy+keepalived+abstractroutingdatasource of the reading and writing separation cluster scheme
In the company to do the MySQL cluster solution, after several times of analysis and discussion, as well as performance test analysis. found that the
Based on
/application/search/mysql/mysql-5.5.28/support-files/my-innodb-heavy-4g.cnf
Two times optimization
"Delete--if you do not use master-slave sync" annotation, remove unwanted log files
# Log-bin=mysql-bin
# binlog_format=mixed
"Modify
The "./ib_logfile0 is of different" error occurs when a full backup of the MySQL database is made with the Xtrabackup tool today, with specific log information as follows:
The first time I query Baidu and Google did not find the corresponding
We are not unfamiliar with the join statements for SQL statements. This is noteworthy for content filtering in the where statement, or for filtering in the on statement or having.
Case: To find a period of time to register new users, not through
For MySQL information_schema table, actually just some views, is not a real table, so there is no actual file, not even a database directory. Additions and deletions should not be done in such a way that it is not possible to set up triggers.
This
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