1. view the configuration file:
Skip-networking # comment out because it shields all TCP/IP connections
Bind-address = 127.0.0.1 # It is the same as the previous option. To connect remotely, comment out
2. If you have done all of the above work,
Mysql_query ("begin"); // starts a transaction.
Mysql_query ("set autocommit = 0"); // you can specify that the transaction is not automatically committed.
$ Insert = "insert into userinfo values ('aa12', 'A', '1', 'aaa ')";
Mysql_query ($ insert
SQL
CopyCodeThe Code is as follows: insert into 'table' ('id', 'AA', 'bb ', 'cc') Select 'id', 'AA', 'bb ', 'cc' from 'table' (where .....)
TIPS:Copy codeThe Code is as follows :/*** When copying a new record, you may need to update the ID or part
1. Release in apache2.2 \ conf \ httpd. conf:
Include CONF/extra/httpd-vhosts.conf (remove the previous #)
2. Added in httpd. conf.
# DWM directory of the project folder. do not define directories and folders in Chinese.
#
# Possible values for the
Analyze table
When optimizing SQL statements, MySQL optimizer must first collect related information, including the cardinality of the table (which can be translated as "hash degree "), it indicates the number of different values in the column
Software Version:
Apache: apache_2.2.14-win32-x86-no_ssl.msi
1. apache2.2
Select Custom and configure the installation directory. By default, the installation directory is down. You can test it first,
Enter 127.0.0.1 as the browser IP address.
Solution:
1. Change the table.
It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log in to MySQL on the computer of localhost, and change the "host" entry in the "user" table in
Risk 1: If the cookie on the client machine fails due to a virus, the session will be lost.
Hazard 2: sessions are stored in a temporary folder in PHP by default in the form of files. For a small system, this can be done completely,
However, it is
The table sharding logic here is based on the number of user_name groups in the t_group table.
In this case, the index on the user_name field is a bad index. It does not have any obvious effect.
1. test procedure. Delimiter $Drop procedure't _
At the same time, the online access volume continues to increase. For servers with 1 GB of memory, the server even crashes every day or gets stuck from time to time. This problem has plagued me for using MySQL for more than half a month. scalable
CopyCode The Code is as follows: select...
Union [All | distinct]
Select...
[Union [All | distinct]
Select...]
Select... Union [All | distinct] Select... [Union [All | distinct] Select...]
Union is used to combine the results from many select
I. Overview The event scheduler is another feature added in MySQL 5.1. It can be used as a scheduled task scheduler to replace some timer tasks that can only be completed by the operating system task scheduler>. For example, crontabe in Linux can be
Recently, I got a MySQL script file of dozens of MB, which is ready to be restored to a database.
I used mysql-front for a short time. I tried it first and the result was suspended.
In this case, create an empty database with MySQL-front and
Yesterday it was configured for a day, its configuration is Jena 2.4.0, MySQL database version is 5.1.42-community, JDK version is 1.6.0, mysqldriver is mysql-connector-java-3.1.14;
An example is written based on the resources on the network, and
To update PHP with Yum, you only need to use one command:
CopyCode The Code is as follows: # Yum update PHP
But the problem arises. After using this command, the system tells me that no updatable package is found. The current PHP version is only 5.
MySQL 5.0.45 (modified) DoS Vulnerability
/*
* Mysql * Kristian Erik Hermansen
* Credit: Joe gallo
* You must have alter permissions to exploit this bug!
* Scenario: You found SQL injection, but you want to punch backend server
* In the nuts just
The installation graphic tutorial of MySQL is for beginners. Currently, MySQL 5.0.91 is the latest stable version.
Mysql http://www.jb51.net/softs/2193.html
The following is an example of MySQL installation. It is installed using an executable file!
Several criteria for creating an index:
1. Reasonable indexing can accelerate data reading efficiency. improper indexing slows down the response speed of the database.
2. The more indexes, the slower the data update speed.
3. Try to use indexes when
Relatively speaking, it is straightforward to load data into the database. However, there are also policies to improve the efficiency of data loading operations. The basic principles are as follows:
Batch loading is faster than single-row loading,
Mysql 5.1 supports triggers and UDF features. If libmemcache and Memcached Functions for MySQL are used together, memcache can be automatically updated. Record the installation and testing steps.
Installation Steps
Install memcached. This step is
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