1. Add default-character-set = gb2312 to the [client] In my. ini under the MySQL installation directory.
[Client]Default-character-set = gb2312Port = 33062. Copy my. ini to the C root directory and change the name to my. CNF.
3. When configuring
From the official documentation, we know that the default mysql connections compiled and installed on linux are 100, which is far from enough for website requirements.
Mysql officially told us that we need to modify the value of max_connections. How
During PHP website development, Mysql database backup or database migration is often encountered. At this time, it is critical to import and export data from the database, mysql provides the command line export tool Mysqldump and Mysql Source import
There is a character set converter between the mysql client and the mysql server.
Character_set_client => gbk: the converter knows that the client sends the gbk encoding.
Character_set_connection => gbk: Convert the data transmitted from the client
Log_slow_queries must be enabled for a slow query output. You can set it in the MySQL configuration file (my. ini/my. cnf) or through the MySQL client. The advantage of the second method is that the setting takes effect without restarting the MySQL
Obtain the current date + time (date + time) 1.1 function: now ()
Related functions: current_timestamp (), localtime (), localtimestamp ()
Example:
2. Get the current date)
Function: curdate ()
Related functions: current_date (),
Similar to the linux top tool, mytop can monitor the performance information of mysql servers in real time.
Installation Method
1. Install DependenciesCopy codeThe Code is as follows: # cpan# Cpan> install DBI# Cpan> install Term: ReadKey# Cpan>
After logging on to mysql by default, you can view the system VARIABLES and their values using the show variables statement.
Mysql> show variables like '% character % ';
(The following is the settings under the CentOS-6.2 (different versions may
I. Download. Here we use the green decompressed version.
Http://mirror.services.wisc.edu/mysql/Downloads/MySQL-5.1/mysql-noinstall-5.1.32-win32.zip
2. Configure MySQL Parameters
1. decompress the green software to D: \ AppServ \ MySQL.Set system
MySQL has introduced the character set concept since mysql 4.1. Therefore, for MySQL and earlier versions, their character sets are Latin1, so sometimes mysql character sets need to be converted, upgrade or downgrade the MySQL version, especially
Previous articles on this site introduced how to implement the microblog: PHP + Mysql + jQuery to implement the microblog Program-jQuery. This example is based on its database structure, displays the presentation information dynamically.
View
Copy codeThe Code is as follows: class mysql
{
Private $ db; // datebase connect
Private $ result; // mysql result
Static private $ mysql; // mysql object
Private function _ construct ()
{// The work before Create an object
$ This-> db =
2.1 log on to the mysql console [the user name is root, and the password is blank by default]
Switch to the mysql bin directory cd d:/wamp/mysql/bin
Log on to the mysql Console
Syntax: mysql-h hostname-u username-p
Connect to another host
Code:
Later, I was working on WordPress. I didn't know that WordPress was using the InnoDB Data Engine at the beginning, so I built a database in the original database. I didn't find any problems at the beginning, it's okay to import the SQL statement. I
XOR algorithm principle
From the main method of encryption, the location change method is too simple, especially when the amount of data is small, it is easy to guess the plaintext by the ciphertext, And the replacement method is an effective and
SQL _mode = "", that is, the high performance should be improved if the MySql mode is not set (such as no input detection, error prompt, or syntax mode check), but the following problems exist:
If an inappropriate data is inserted (the error type is
Solution 1:Recursive Algorithms are also the most frequently used. Most open-source programs do the same, but generally only use level 4 classification. The database structure design of this algorithm is the simplest. Id of a field in the category
Later, after referring to the documents on the Internet, the MYSql database on the server was connected through Http. Record:
First download the latest version of NaviCat from the NaviCat official website (www.NaviCat.com.cn ).
After the
Environment Description:
Ubuntu 10.04.2
QtSDK (the one for the 1.5g installation package)
Mysql5.1
1. Install MySQL
In Linux, the complete MySQL development requires the installation of the server side, if the installation of the client is nothing
Yesterday, a colleague mentioned in the PHP discussion group that a project he created had too many results (up to 0.1 million results) returned by MySQL queries, resulting in insufficient PHP memory. therefore, he asked, before executing the
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