This article illustrates how MySQL uses foreign keys to implement cascading deletes and updates. Share to everyone for your reference, specific as follows:
MySQL supports the foreign key storage engine only InnoDB, when creating foreign keys,
Although this should not happen, usually like our relational database, we should be designed in advance, can not be changed later, but because of the negligence of the work before, in fact, it is not only my personal negligence, the main reason for
I have
Used backup methods are: mysqldump, mysqlhotcopy, backup TABLE, SELECT into
outfile, or Backup binary log (Binlog), can also be a direct copy of data files and related configuration files. MyISAM
Tables are stored in the form of files, so
Author: Yang Xinchi
Recently, 3 projects have been started on hand, the other 2 are starting from the bottom, one has been started for some time, in small cities under the conditions of small team development, there is no dedicated DBA to do the
1. If the client and server-side connections need to cross over and pass through an untrusted network, you will need to use an SSH tunnel to encrypt the communication for that connection.
2. With the SET Password statement to modify the user's
Workaround:
1. Change Table method.
Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from
Just follow the 3 steps below, and everything is under your control:
First step: Configure the backup directory code on the server:
--------------------------------------------------------------------------------
Mkdir/var/lib/mysqlbackup
Cd/var/lib/
Because the hard drive is full, MySQL can't start up.
Log in and look at it and find out why.
Delete MySQL log file, reboot MySQL Discovery error: Starting mysql.manager of Pid-file quit without updating file. [FAILED]
There are many
The initial import failed.
The generated SQL statement is incorrect.
SQL Query:
INSERT into ' cc_present '. ' C_city ' (' A ', ' B ', ' C ') VALUES (NULL, 1, ' Municipal District ') ...
Like this the column name becomes A,b,c.
The problem is in
Copy Code code as follows:
SELECT ...
UNION [All | DISTINCT]
SELECT ...
[UNION [All | DISTINCT]
SELECT ...]
SELECT ... UNION [All | DISTINCT] SELECT ... [UNION [All | DISTINCT] SELECT ...]
The UNION is used to combine the
DESC table name;
Show columns from table name;
describe table name;
Show create table name;
Use Information_schema
SELECT * from columns where table_name= ' table name ';
By the way, note:
show databases;
I can do that.
Use
A. Nginx boot up
1, create the script in the/etc/init.d/directory
Vim/etc/init.d/nginx
2, write the content of the script (the following copy into the corresponding changes in the installation path)
#!/bin/bash # nginx Startup script for the
Source: www.freelamp.com
LAMP architecture site, I used to focus more on the installation/configuration aspects, about the relatively small development, because they are engaged in the development of less. The original text of this article is of
Official Download Address:MySQL http://www.mysql.com/downloads/mysql/find an MSI file down. Apache http://httpd.apache.org/download.cgiPHP http://windows.php.net/download/
First of all, MySQL, (here is a slot for MySQL acquired by Oracle)
One step
The data is inserted into the Php?name=%ca%fd%be%dd%bf%e2 "onclick=" Tagshow (event) class= "T_tag" > The database is displayed garbled and from the php?name=%ca%fd%be%dd% Bf%e2 "onclick=" Tagshow (event) class= "T_tag" > Database read the data on
Method One
Using phpMyAdmin, this is the easiest, to modify the MySQL library's user table,
But don't forget to use the password function.
Method Two
Using Mysqladmin, this is a special case of the previous declaration.
Mysqladmin-u root-p Password
JSP Chinese garbled JSP MySQL garbled to the servlet inside support Chinese method:In the first sentence of Dopost or doget, add:Request.setcharacterencoding ("GB2312");Response.setcharacterencoding ("GB2312");JSP garbled problem in the JSP inside
Sometimes need to rent space or database on the Internet, MySQL cost less, so want to turn SQL Server to MySQL ...
Note: When you install MySQL to select the text set for UTF8, otherwise you will not be able to use Chinese (you can also use UTF8
When you install, reload when the could not start the service MySQL error:0reason: uninstall MySQL did not completely remove the related files and services, need to manually clear.
Workaround When you install to the last step when execute does not
For the previous installation of MySQL notes are summarized, to share with you.
1. Download
Download Address: http://dev.mysql.com/downloads/mysql/
According to the computer configuration to choose, I chose Windows (x86,64-bit), ZIP Archive 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