BASIC script functions:
Automatic compression and backup of mysql Databases
Automatically Delete backup files from the past 10 days
The deletion progress is displayed.
#!/bin/bash#Author
Sometimes the database is damaged because of power loss or other reasons. We can use the mysqlcheck command that comes with mysql.To quickly repair all databases or specific databases. Method: Enter the Bin directory of Mysql: C: \ Program Files \
I have never studied mysql in the system. I want to query the first n records today and habitually input SQL Server's select top n statements. An error is reported. Check that mysql can implement related functions through limit, and more powerful,
Unlike automatic database backup, the system administrator must take certain actions to protect data from unauthorized users. If you are using MySQL, you can use some convenient functions to protect the system and greatly reduce the risk of
Purpose:
The robustness of the Master/Slave server settings is improved. If the master server fails, the slave server that was originally used as a backup can be upgraded to the new master server.
You can process user requests separately on the
When we mention character sets, some people may say that the whole world is clean no matter the sky is split or utf8 is used. However, some character sets require more CPU, more memory and disk space, and even affect index usage. This does not
We always have to live in a certain framework. The composition of the Framework comes from law, morality, and potential rules. Most people only want ansheng to live. After all, there are a few desperate people. Some people break the framework and
Ubuntu SystemThe installation process is filled with various errors:
6. mkdir mysql
7. groupadd mysql
8. useradd-r-g mysql
# Make clean
# Rm-f CMakeCache.txt
# Rm-rf/etc/my. cnf
9. cmake.-DCMAKE_INSTALL_PREFIX =/usr/local/mysql
Reprinted from:Http://fernandoipar.com/2014/02/09/recovering-mysql-access/
Recovering MySQL access
Ever found yourself working on a MySQL server where root's password is unavailable? It has happened to me a few times, always because the person who
This problem was recently encountered in writing projects. We need to combine the two SELECT query results for grouping and sorting, and thought of using the union method, the union operation with TP cannot complete complex union operations at all.
Ru Zhiqiang said in "zookeeper", "Looking at Hongying again, it was not even a half-hour's work that would be delayed, and she never saw her eat a snack, at first glance, you will know that it is a person who will be careful and live." Some people
Create a user and assign permissions;Copy codeThe Code is as follows:Insert into mysql. user (Host, User, Password) values ("localhost", "phplamp", password ("1234"); // create a userGrant all privileges on dbname. * to 'username' @ '%' identified
Create a sequence table first
If exists (select 1From sysindexes
Where id = object_id ('tsyssequence ')
And name = 'in _ sename'
And indid> 0
And indid Drop index TSysSequence. In_SeName
Go
If exists (select 1
From sysobjects
Where id = object_id ('
1. Check whether the function is Enabled:Mysql> show variables like '% func % ';+ ----------------------------------------- + ------- +| Variable_name | Value |+ ----------------------------------------- + ------- +| Log_bin_trust_function_creators |
ExplainSelect t. order_sn, t. cust_code, ti. tms_order_other_info_id, sp. province_name, SC. city_name, sr. region_name, st. town_name, t. buyer_addressFrom tms_order t inner join tms_order_other_info ti on t. tms_order_id = ti. tms_order_idInner
Log on to a mysql server today and enter mysql-u root-p and press Enter. The error message is as follows:
ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: YES)
I followed the online password change method and did
The embedded MySQL version is getting weaker and weaker. It happened that a small application used it and recorded it by the way.For more information, see.We hope that the following simplified steps will play a role.1. Download the code and compile
This afternoon, I have been working on the Mysql Character Set Problem. Using command line load to import text file data, Chinese characters are garbled.
So I checked the default encoding of Mysql, and the input show variables like 'character _ set
1. Install mysql with InnoDB plug-in extension./Configure -- prefix =/usr/local/mysql -- with-plugins = csv, innobase, myisam, heap, innodb_plugin2. The column referenced in the master table cannot be found.3. The character encoding of the primary
Check whether logs are enabledCopy codeThe Code is as follows:Mysql> show variables like 'Log _ bin ';
How to know the current logCopy codeThe Code is as follows:Mysql> show master status;Display the number of binary logsCopy codeThe Code is as
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.