Linux regularly backs up MySQL database and deletes backup files up to seven days ago

#!/bin/bash# name:bakmysql.sh# a shellscript for Auto DB backup and Delete old backup# backup address Backupdir=/home/mysqlbac kup# backup file suffix time time=_ ' date +%y_%m_%d_%h_%m_%s ' #需要备份的数据库名称db_name =test#mysql user name

Several ways MySQL resets the root password (windows+linux)

How to reset the root password:Under Windows system:1, stop the MySQL service;2, the new file Init-root.txt, write the following content:Update mysql.user Set password = password (' newpwd ') where user = ' root ';Flush privileges;Save3. Open the

MySQL's weird sync problem-repeat a relay-log

The weird sync problem with MySQLRecently encountered a strange MySQL synchronization problem, after multi-analysis and location found incredibly due to backup caused, very wonderful, hereby record the whole problem analysis and positioning

MySQL Auto Backup shell

#!/bin/bash#数据库配置信息#db_user = root#db_password = Wdmima#db_host = localhost#备份目录Backup_dir =/root/database/#获取当前时间Timestr = ' Date +%y%m%d '#mysql command#MYSQL = "/usr/local/mysql/bin/mysql"#MYSQLDUMP =

Java programs are garbled when inserting data into MySQL

When inserting data into a database today, Chinese characters appear garbled in the database. There are various statements on the Internet, but for me, the ultimate solution to my problem is the following one! When creating a database, be

Resolve MySQL table character set GBK, column character set Latin1,python query garbled problem

Recently encountered an abnormal egg pain in the company, MySQL database, database and table of the character set are ' GBK ', but the character set of the column is ' Latin1 ', so the egg hurt things appear.Regardless of my connection string '

How to determine if MySQL is installed in a Linux system

The first thing you need to know about MySQL installation is the relevant directory:1. Database Directory/var/lib/mysql/2. Configuration files/usr/share/mysql (mysql.server command and configuration file)3. Related commands/usr/bin (Mysqladmin

MySQL establishes a bidirectional primary and standby replication server configuration method

1. Environmental descriptive narrativeServerA (Master) 192.85.1.175ServerB (from) 192.85.1.176MySQL version number: 5.1.61System version number: Os:ubuntu 10.10 X86(System installation and Data Environment construction, omitted)2. Create a sync User:

MySQL stored procedures

1. Parameter Validation and error feedbackMySQL 5.5 begins with the introduction of the signal statement, which allows feedback on the data validation errors of the stored procedure. Versions prior to 5.5 can only be resolved by other means.Syntax

MySQL configuration file my.cnf parameter optimization and Chinese explanation

MySQL parameter optimization for beginners, is more difficult to understand things, in fact, this parameter optimization, is a very complex thing, for different sites, and its online volume, access, number of posts, network conditions, as well as

Java string intercept-finally with MySQL string intercept comparison

The substring () method in Java has overloads of two methods, one with one parameter and one with two parameters.The first one is written as: substring (n);//start interception from the character of the index is n, the condition (n>=0,nThe second

MySQL Universal paging stored procedure

MySQL Universal paging stored procedure1MySQL Universal paging stored procedure23Process parameters4P_cloumnsvarchar(500), P_tablesvarchar(100), P_wherevarchar(4000), P_ordervarchar(100), P_pageindexInt, p_pagesizeInt, Out P_recordcountInt, Out

Ubuntu operation MySQL Novice SQL tutorial

Ubuntu operation MySQL Novice SQL tutorial1 , start the MySQL database:Effect:2 , enter MySQL:Effect:3 , view all databases:Effect:4 , create a database:Effect:5 , enter the database:Effect:6 , create a table:Effect:7 , insert data into the

MySQL compilation installation and master-slave replication

MYsql Master-slave replication:Operating System: centOS6.6Prepare the file: mariadb-5.5.40-linux-x86_64.tar.gz650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/59/12/wKiom1TGRPHB2RjkAACCTZqdx7Y120.jpg "title=" 111. PNG "alt=" wkiom1tgrphb2

MySQL Database optimization Summary

Database performance is critical to a data-centric application that directly affects the performance of the program. In general, to ensure the efficiency of the database, to do the following four aspects of the work: database design, SQL statement

OS Mac apache+php+mysql Environment configuration

1. Enable the Apache service that comes with your systemOpen Terminal (terminal)#sudo Apachectl Start#sudo vi/etc/apache2/httpd.confModifyLoadModule Php5_module libexec/apache2/libphp5.soOpen PHP/***** If you visit 403****/allowoverride NoneOrder

Des encryption and decryption in MySQL

Des_decrypt (Crypt_str[,key_str])Use Des_encrypt () to encrypt a string. If an error occurs, this function returns NULL.Note that this function will only work if MySQL is configured with SSL support. See section 5.8, 7, "Using a secure

MySQL cannot sync from library, error relay log read failure

Questions: MySQL data from the library can not be synchronized, from the library show SLAVE status prompts the following error:Last_sql_error:relay Log read failure:could not parse Relay log event entry. The possible reasons Are:the master ' s

Student Information Management of CAPI in Mysql

Student Information Management of CAPI in MysqlZookeeperWith the embedded MySQL Server library, you can use MySQL servers with all the features in client applications. The main advantage is that it increases the speed and simplifies the management

[ShellCommand] global list of MySQL Clusters

dbx

[ShellCommand] global list of MySQL Clusters Author: skateTime: 2015/01/19 Global list of MySQL Clusters Usage:# Monrep-hUsage: monrep [-d dbname]-D Database Cluster name-H Display basic help# For example, if a cluster named dbx is used

Total Pages: 3233 1 .... 1242 1243 1244 1245 1246 .... 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.