Mysql automatic backup script in linux

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: #! /Bin/sh # Mysql_backup.sh: backup mysql databases and keep newest 5 days backup. # # Last

23 things you need to pay special attention to in the mysql database

When using MySQL, you must pay attention to security issues. The following are 23 notes for MySQL: 1. If the connection between the client and the server needs to span and pass through an untrusted network, you need to use an SSH tunnel to encrypt

Advantages and differences between mysql Data Storage engine InnoDB and MyISAM

MyISAM: This is the default type. It is based on the traditional ISAM type, and ISAM is the abbreviation of Indexed Sequential Access Method (Sequential Access Method with indexes, it is a standard method for storing records and files. compared with

MMC cannot open the file SQL Server Enterprise Manager Solution

Normally used SQL Server Enterprise Manager suddenly encountered a problem this morning, the error is as follows: "MMC cannot open the file C: PRogram FilesMicrosoft SQL Server80ToolsBinnSQL Server Enterprise Manager. MSC This may be because the

Mysql Cluster backup and recovery

A) backup: The ndb_mgm management client is used for backup.Run ndb_mgm on the Management node to enter the management command line, such!Enter start backup to back up all nodes. If the id of the corresponding data node is followed, only the

How to Implement wildcard * matching in MYSQL queries

  When sending a short message on the site today, you may encounter a function that is to perform a wildcard search for an account. The following situations may be used for search: Sunzhongshan string searches without wildcards Sun * starts with sun

Mysql jdbc quick query and response implementation

Oracle's fast return mechanism has been very tangled. Although there are many result sets, it can quickly display the first result. Although it can be done through the MYSQl client, it cannot be achieved through JDBC. It took more than an hour today

How to delete, modify, and rename a column in SQLite

  Today, I added a column to the SQLite database. Later I found that the column name was wrong. So I used an SQL statement to modify the column name, but it didn't work. First, discard alter. Sqlite official instructions are as follows: SQLite

Encoding of mysql database configuration on MAC

  Recently, the mac osx lion system was installed, and the mysql 5.5.16 database was installed for development. However, we all know that the default mysql encoding is latin1. If you store Chinese characters, garbled characters may occur, then I

Migrate mysql partitions

  Today, I found that I forgot to install the largest partition in the data directory of the master-slave mysql Server Load balancer and directly mounted it to the root partition. I have used root partition 95% below df, as long as the migration is

Mysql insert Performance Optimization

The time it takes to INSERT a record in Mysql-optimized accelerated INSERT statements is determined by the following factors, and the number indicates the proportion of the impact: Connection: (3) Send query to server: (2) Resolution query:

Mysql5.4 start service, apply security settings error Solution

Solution: 1. uninstall MySQL. 2. type regedit in "run" to enter the registry. 3. Delete the HEKY_LOCAL_MACHINE \ SOFTWARE \ MYSQL directory. 4. Delete the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL

MYSQL-master-slave practices

Two mysql instances are installed on one computer two days ago. One port is 3306 and the other is 3307. Configure the two mysql Databases and test master and slave. My test environment is windows, so you need to modify the my. ini file in the mysql

Mysql source code distribution & amp; #8203; Detailed installation process

The following is a more detailed description of installing the MySQL source code distribution edition:1. Add a logon user and group for mysqld:2. shell> groupadd mysql3. shell> useradd-g mysql commands will add mysql groups and MySQL users. In Unix

Mysql statement commands in linux

1. commands for starting mysql in linux:Mysqladmin start/Ect/init. d/mysql start (the installation path of mysql is earlier)2. Command for restarting mysql in linux:Mysqladmin restart/Ect/init. d/mysql restart (the installation path of mysql is

View mysql Data Table Information

View the data table information. If you execute an SQL statement directly to the table, it may be slow when the table is large or other clients are operating on the table. For example, to view the number of records in the table, use: [SQL] SELECT

Installation of mysql-5.5.21 under centos6

1. install the following system-related library files: # yum-y install gcc-c ++ autoconf automake zlib * libxml * ncurses-devel libmcrypt * libtool * 2. Create the mysql installation directory and data storage directory # mkdir/usr/local/mysql #

How to delete the root user or root permission by mistake in MySQL

Some time ago, I accidentally deleted the Root user of Mysql. Unfortunately, I couldn't log on to Mysql. I 've been looking for a solution. I also read what I said on the Internet: 1. First kill the mysqlld process, add the -- skip-grant-tables

Typical database query questions

Database classic query questions student selection course Database: S (Sid, SNAME, AGE, SEX, DEPARTMENT, ADDRESS, BIRTHPLACE) SC (Sid, Cid, GRADE) C (Cid, CNAME, TEACHER) (1) course number and name taught by instructor Li; select cid, cnamefrom

How to add or delete a primary key in MySQL

It is very basic to add or delete a primary key in mysql. The following describes how to add or delete a primary key in mysql. If you are a new user of mysql database, take a look.Modify the mysql Character Set: You can set the mysql character set

Total Pages: 3233 1 .... 2405 2406 2407 2408 2409 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.