The following elements are involved in the insecure MySQL service installed by default:
I. Default MySQL authorization table
Ii. Lack of log capability
Iii. Password leakage for my. ini files
4. Services are bound to all network interfaces by
MySQL Chinese sorting method 1
MySQL is case-insensitive when querying strings. In programming MySQL, The ISO-8859 character set is generally used as the default character set. Therefore, the case-sensitive conversion of Chinese encoding Characters
Create a view. php file with the following content:
CopyCode The Code is as follows: $ Link = mysql_connect ("localhost", "root", "previous administrator password ");
If (! $ Link) echo "no connection successful! ";
Else echo "connection successful!
1. file encoding: indicates the encoding of the page file (.html,. php, etc. Notepad and Dreamweaver automatically recognize the file encoding when opening the page, so there is no problem. Zendstudio does not automatically recognize the encoding.
They all wanted to use PHP to implement random queries, but retrieving multiple entries seemed to require more than two queries.
After reading the manual, find the following statement to complete the task.
Select * From table_name order by rand (
Back up old data
Stop old Server
Delete the MySQL service from the Windows System Service and run the following command:
C: \> C: \ mysql \ bin \ mysqld -- remove install MySQL using an executable installation file, or decompress a binary
JSP Chinese garbled JSP MySQL garbled methods to support Chinese characters in the servlet:
Add the following to the first sentence of dopost or doget:
Request. setcharacterencoding ("gb2312 ");
Response. setcharacterencoding ("gb2312 ");
JSP
Too many MySQL connections will always die, and then I found this article from MySQL 5. after a version of X, the feature of MySQL to automatically disable idle connections has been modified. If a connection is idle to the timeout time (the default
Syntax:
Group_concat ([distinct] expr [, expr...] [order by {unsigned_integer | col_name | expr} [ASC | DESC] [, col_name...] [separator str_val])
The following shows the function. First, create a student_courses table and fill in some test
Environment: WINXP SP2, mysql5.0.18, and MySQL ODBC 3.51 driver tables use the MyISAM engine. Access 2003
Different Places:1. When inserting data, MySQL should try to use the insert into statement to avoid using RS. addnew. If not, set conn
I once had the same team with him, so I am very familiar with his "Cleanliness" practices. I also agree with many of his views; however, it is hard to understand that the date/time type is always avoided during database design. The method is to set
The test procedure is as follows:
Create Table sales
As select * From Sh. sales;
Create Table MERs
AsSelect * From Sh. customers;Create unique index cust_id_un on MERs (cust_id );
Create:Bitmap join Indexes
Create bitmap index
You may have heard of the great server-side scripting language php3. This article is its guide. However, php3 is only a brilliant history, and Zend PhP4 will be available in the future. It is bundled with apache1.3.12 and MySQL, which constitute a
The time format is 2008-06-16.
Query the data of the current day:
Select * From 'table' where date (time field) = curdate ();
Query the current month field:
Select *
From 'table'
Where month (time field) = month (now ());
The time format is 12
10 data records are also retrieved.
Select * From yanxue8_visit limit, 10 and
Select * From yanxue8_visit limit 0, 10
It is not an order of magnitude.
There are also many five limit optimization guidelines on the Internet, which are translated from
How much data does MySQL support? In fact, the upper limit of a single MySQL table is mainly related to the maximum file size supported by the operating system. Let's take a look at the official introduction.
1.4.4. Maximum number of MySQL
ASPCode
Copy code The Code is as follows: Dim RS, Conn
Set conn = server. Createobject ("ADODB. Connection ")
Conn. Open "provider = Microsoft. Jet. oledb.4.0; Data Source =" & server. mappath ("readlog. mdb ")
Set rs = conn. openschema (20)
Do
1. Install the DBI Module
Step 1:
Download dbi.zip from the toolsbar and use winzip to unbind it to a temp directory. There are three files in total:
Readme
DBI. ppd
DBI.tar.gz
Step 2:
In the DOS window, run the following doscommand In the temp
Because of its small size and efficient operations, MySQL is increasingly used in database applications. when I was developing a P2P application, I used MySQL to store P2P nodes. Because P2P applications have tens of thousands knots, and nodes
First, let's look at the types of SQL statements supported by MySQL.
1. database selection, creation, discard, and change
Use
Create database
Drap database
Alter database
2. Create, change, and discard data tables and Indexes
Create table
Drop table
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