So the problem is because
Database character set, table character set, field character set is set to: Gbk_chinese_ci
Note the database connection string inside the Stmt=set Names ' GBK ', must have this sentence.
The following is the ASP link
Copy Code code as follows:
Connecting to a database
$db =mysql_connect ("localhost", "root", "");
mysql_select_db ("Hy", $db);
Set the number of records to display on each page
$pagesize = 25;
Get the total number of records, calculate
However, it is not intended to describe the implementation details of a storage engine, nor to describe the pros and cons of the various storage engines, but to explain how MySQL handles Binlog and to clarify several confusing issues.
Binlog is
This requires the user's permissions to be modified in MySQL to grant the required permissions.
This article will demonstrate this situation and give detailed troubleshooting steps.
The examples in this article are configured as follows:
Automatic Backup: Save the following code as a *.bat batch script, and then add Windows timed jobs, such as 2 o'clock in the morning daily:
Set s=%date:~0,4%%date:~5,2%%date:~8,2%%time:~1,1%%time:~3,2%%time:~6,2%
Mysqldump-u root-ppassword
The following is the main content of the article.
1.SELECT * from ' table ' ORDER by RAND () LIMIT 5
It's OK.
But the real test was found to be very inefficient. A library of more than 150,000, query 5 data, incredibly more than 8 seconds
View the
Prerequisites, both servers are installed MySQL the same version, the database name is the same, the best data are as much as possible.MySQL Server side 192.168.0.1:Create a new standby account that is used only to copy dataUser name: BackupPassword:
The realization method of MySQL bidirectional synchronous backup under WindowsThe following article mainly describes the Windows environment in the MySQL database to achieve the master-slave synchronous backup of the correct operation of the program,
Put the Mysql.exe in the bin directory under the MySQL directory under C:\WINDOWS, and you can execute the following command
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be without spaces, others are the
Key_buffer_sizeKEY_BUFFER_SIZE Specifies the size of the index buffer, which determines the speed at which indexing is processed, especially the speed at which index reads. By checking the status values key_read_requests and Key_reads, you can see
When Binlog was previously backed up, it was compressed locally and then sent to the remote server. But there is a certain risk, because the log backup is cyclical, if in a certain cycle, the server down, the hard disk damage, it may cause this
The MySQL Found_row () is used to get the number of rows from a select, such as having a segment of SQL that takes out the first 10 rows of a table, and also needs to take out the total number of eligible criteria. This article introduces the use of
This article introduced the MySQL backup principle, welcome everybody to read.
Backup is the last line of defense for data security, and for any data loss scenario, backups may not necessarily restore the absolute data (depending on the backup
MySQL is a relational database management system, developed by the MySQL AB Company in Sweden and currently belongs to Oracle Company. MySQL is a relational database management system in which the associated database keeps data in different tables
Max_connect_errors is a security-related counter value in MySQL that is responsible for blocking excessive attempts to fail the client to prevent brute force cracking of the password. the value of max_connect_errors is not much related to
First, the use of the process1. There are 3 ways to see whether an event plan is currently open (scheduler):
Show VARIABLES like ' Event_scheduler ';
SELECT @ @event_scheduler;
Show Processlist;
2. There are 4 ways to open the event
Quickly view the compilation parameters of the Server software:1, nginx compilation parameters:Your_nginx_dir/sbin/nginx-v2, Apache compilation parameters:Cat Your_apache_dir/build/config.nice3, PHP Compile parameters:Your_php_dir/bin/php-i |grep
This is Bbs.sql
CREATE TABLE Bbs_area (
ID Int (a) unsigned DEFAULT ' 0 ' not NULL auto_increment,
Master varchar not NULL,
Banner varchar () not NULL,
Body text is not NULL,
Email varchar (50),
Login varchar (20),
passwd varchar (20),
PRIMARY KEY (
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