First, open the MySQL console through Wamp.
Prompt to enter the password. Because it is empty, press Enter.
Then enter"Use MySQL", Which means to use the MySQL database and prompt" database changed.
Then enter the SQL statement"Update user
Select statement to remove duplicate information of a field, for example:
Table Name: Table
Id uid username message Dateline
1 6 A 111 1284240714 (timestamp)
2 6 A 222 1268840565
3 8 B 444 1266724527
4 9 C 555 1266723391
Execute the statement
Store the backup database under the D: root directory. The backup database name is backup20070713. SQL (20070713. SQL indicates the backup date)
Back up the database:
Mysqldump-uroot-p123456 database_name> D:/backup20070713. SQL
Restore
I,
Remove the ";" before the following parameters in PHP. ini:
CopyCode The Code is as follows:; Extension = php_dba.dll
; Extension = php_gd2.dll
; Extension = php_mbstring.dll
; Extension = php_mcrypt.dll
; Extension = php_mysql.dll
; Extension =
Put the script in/home/user/mysql_backup.sh
Crontab
# Crontab-l
# M h Dom mon Dow command
28 16 ***/home/user/mysql_backup.sh
The script is as follows:
CopyCode The Code is as follows :#! /Bin/sh
# Mysql_backup.sh: Backup MySQL Databases and keep
I. MySQL connection format: Mysql-H host address
-U User Name
-P User Password
1. Example 1: connect to MySQL on the local machine:
First, open the DOS window, enter the directory mysqlbin, then type the command mysql-uroot-P, and press enter to
If you want to connect to your mysql instance, this error occurs:
Copy codeThe Code is as follows: ERROR 1130: Host '192. 168.1.3 'is not allowed to connect to this MySQL server
Solution:
1. Change the table. It may be that your account is not
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
ERRNO: 256TEXT: SQLSTATE [HY000]: General error: 1436 Thread stack overrun: 4904 bytes used of a 131072 byte stack, and 128000 bytes needed. use 'mysqld-O thread_stack = # 'to specify a bigger stack.
According to the MySQL manual "The default (192KB)
Mysql-uusername-ppasswordMysqladmin-uroot-pwshengzhan variables;The maximum number of connections in MySQL is 100 by default.Client Logon: mysql-uusername-ppasswordSet the new maximum number of connections to 200: mysql> set GLOBAL max_connections =
Add skip-innodb TO my. ini (/etc/my. cnf in linux.
After I set it like this, there is no problem in linux. I started MYSQL in winXP on my local machine today, prompting that the MYSQL cannot be started. Check the error log of the mysql
I felt that the code was a little messy, and the comments and codes were written at random. There seemed to be no uniform specification, and there were also differences in the Code styles in different files. Maybe Mysql had gone through a lot of
LEN (string_expression) parameter: string to be calculatedReturnsCharacter Count, Which does not contain trailing spaces.If the expression data type is varchar (max), nvarchar (max), or varbinary (max), it is bigint; otherwise, it is int.Ntext
1. Optimize Your MySQL query Cache
You can enable the High-Speed query cache for queries on the MySQL server. It is one of the most effective ways to improve performance by quietly processing the database engine in the background. When the same
In database optimization, it is one of the most common and effective methods to minimize the data size and minimize the space occupied by tables on the hard disk. Because of data reduction, the read/write speed of the hard disk can be improved, and
The solution to reduce such problems is to minimize the server power failure without reason. When the server is shut down, the mysql database is closed manually.
Let's take a look at this problem:
Can't open file: '×××. myi' (errno: 145). This
Today, I deployed an environment in my virtual machine. The test screenshot is as follows:
These operations are performed for the first time. After a few clicks, the average value is obtained and the efficiency is roughly the same. If a unique
PHP 5.3.1
MySQL 5.0.89
Nginx 0.8.33 or 0.7.65 (optional)
This is much better than what one-click installation package has been circulated on the Internet. It is strongly recommended that this installation method be suitable for all cainiao and
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