Detailed description of MySQL database Restoration
Binlog backs up data by recording binary files, and then restores data from the binary file to a certain time period or operation point.
1: Enable binlog Logging
Modify the mysql tutorial
Detailed MySQL Database tutorial recovery operation
Binlog is to back up data by recording a binary file, and then recovering data from a binary file to a certain time period or to an action point.
1: Open Binlog log record
Modify MySQL Tutorial
Mysqldump is a logical backup that is more suitable for libraries with small amounts of backup data. Today we'll take a look at some of the more common important parameters and analyze what they have done and need to open the General_log.Set global
First, the Binlog feature is not open by default and needs to be modified my.cnf to turn on[[email protected] ~]# grep bin/disk2/mysql_multi_instances/3308/my.cnfLog-bin =/disk2/mysql_multi_instances/3308/mysql-bin Binlog_cache_size =
1. Set in Web container (here, for example, Tomcat)Set in Tomcat-5.0.28\conf\web.xml, the following is the default configuration in Tomcat 5.0:
Copy Code code as follows:
30
The Tomcat default session timeout is 3
First:How to read session1. session ["key"]. tostring ()2,
Aspx. CSIt's easy as you know, here I'll foucus on "aspx ".
Aspx:
Solution 1:_ DopostbackHere the initialize is necessary
Code highlighting produced by Actipro CodeHighlighter
In the Apache and PHP environment, the default expiration time is about 20 minutes, then how we set the session expires, see the concrete method summarized below.
The most common thing we use in PHP programs is to set
The code is as
The session must be placed in the action class. This is not a requirement of struts2, but a standard.Then, define the request and session as follows:
Request:Servletactioncontext. getrequest (). setattribute ("A", B );Servletactioncontext.
The default session validity period for Tomcat is 30 minutes. ================================================== You can go to the "tomcat installation directory "/CONF/web. set and view in the XML file.CodeAs follows (the unit of time is minute ):
In PHP set up a session there are many aspects of the package to set the value of the session or directly set the expiration, expiration and expiration date, the following small series to give you a friend to introduce how to use.
Let's take a look
Take the X5 deployment on Tomcat as an example to show how to set the session expiration time.There are three places where you can set the session expiration time, namely1. Businessserver Session Setting\runtime\businessserver\web-inf\web.xml302.
Session time setting this post was last edited by guliputaoyou in 2013-04-2311: 04: 18 because I cannot change the server configuration file, but I need to modify the user login time to 2 h. So I phpinfo and found that gc_maxlife session time
Let's take a look at how to set up the session in PHP.ini.
Open php.ini to find one of the following in the Session Settings section:
The code is as follows
Copy Code
Session.save_path = "N;/path"Session.save_path = "C:/
1. Spring Boot: server.session.cookie.comment = # comment Session cookie. Server . Session.cookie.domain = # session cookie domain. Server . session.cookie.http-only =# "HttpOnly" Flag is a session cookie. Server . session.cookie.max-age =.
1. Set in Web container (here, for example, Tomcat)
Set in Tomcat-5.0.28\conf\web.xml, the following is the default configuration in Tomcat 5.0: 30
The Tomcat default session timeout is 30 minutes and can be modified as needed, minus or 0 to
One mysqldump backup combined with Binlog log recoveryDescription: MySQL backups generally take the form of full-database backups plus log backups, such as performing a full backup every day, and performing a binary log backup every hour. This
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.