MySQL 5.1 Reference Manual
MySQL knowledge collected by someone========================================================== ==============
Commands for starting and stopping MySQL servicesMySQL Installation Error"No services installed" | apache
In general, MySQL does not have any special mechanism to provide log backup, deletion, and other management operations, but relies heavily on OS-level operations.
For binary transaction logs, MySQL provides the expire_logs_days system
MySQL provides this very powerful thing, but the documentation has limited instructions, so that you may doubt MySQL's capabilities!
Is a session-level quasi-system variable generated, maintained, and recycled by the server similar to MySQL
The MySQL error log records the running status of the basic processes on the mysqd server.
Command and configuration options: [--] log_error [= filen_ame] -- generate a new error log file when calling flush logs, and add the suffix "-old" to the
Open up the MySQL command line client.Type in the following lines perfect, if you mess up, you have to start all over by restarting the command line client.
Mysql> use MySQLMysql> Select User, host, password from user;# Now you shoshould see that
Make a sentence by yourself
Grant all privileges on topons. * To 'example '@ '10. 16.20..2 'identified by 'wbttddddddddddddd ';Flush privileges;
Grant permission 1, permission 2 ,... Permission n on database name. Table name to 'username' @ '
Enter "MySQL limit" in Google to obtain the same content for the first two records.
"//To retrieve all record rows from an offset to the end of the record set, you can specify the second parameter-1:
For example, if my user name is root and the password is 123 SQL script, the C disk name is test. The SQL database name is test.
There are two ways to execute the script
1: Open CMD and enter the following command (directory conversion is not
I don't know how others do it. This is just my own practice.
1. Export the SQL file in workbench. File, export. Continue to the next step (of course you can also choose something)
2. process the SQL file from workbench. For example, it seems
Method 1: use the set password command
Mysql-u Root
Mysql> set password for 'root' @ 'localhost' = PASSWORD ('newpass ');
Method 2: Use mysqladmin
Mysqladmin-u Root Password "newpass"
If the root user has set a
Note: MySQL login verification is set in ETC/My. CNF. In my. CNF, use skip-grant-tables to cancel login verification, and then change the MySQL password.
1. First confirm that the server is in a secure state, that is, no one can connect to the
Today, a colleague asked me if MySQL could be backed up in real time from multiple master nodes to one slave node. Google can use mysqld_multi to manage multiple MySQL instances.
I have previously thought about running multiple MySQL instances on
This article introduces how to use the group_concat function in MySQL through examples, such as select group_concat (name ).
Group_concat function in MySQL
The complete syntax is as follows:
Group_concat ([distinct] field to be connected
Today, I am depressed. in LinuxProgramI can't find a table, but I have created a table. I can also find it in the MySQL command line. why can't the program find the table?
Later, I asked a teacher to solve the problem. It turns out that MySql in
First, disable MySQL
Use the command line to start MySQL (usually find the mysql. ini file)
On Windows, you can view the MySQL process parameters in the mysql. ini file. Click here for details.
Add the -- skip-grant-tables parameter at the
1. Replication ProcessMySQL replication is an asynchronous replication, from one MySQL instace (called Master) to another MySQL instance (called slave ). The entire replication operation is completed by three processes, two of which are on slave
The followingArticleThis section describes MySQL commands, including common commands of MySQL databases, modifying the actual root password of MySQL databases, and introducing the actual application of grant. The following describes the specific
From: http://www.uini.net/2010/03/mysql-create-function-problem.html
Http://blog.csdn.net/wuhuiran/archive/2007/12/14/1935220.aspx
During data sorting today, I encountered the problem that MySQL functions cannot be created. I have encountered
Create databases/tables in batches using Linux shell
The Shell script is as follows:
# Create database and table HOST = 'localhost' PORT = '000000' USER = 'root' PWD ='' DBNAME = 'top123' TABLENAME = 'gametop800' mysql_login = ''
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