First, create a file directory.
Mkdir myfile
VI: Create and modify a fileVI delradiusdata
CopyCodeThe Code is as follows: VI is a common tool used to create and edit files in Linux. The startweblogic. Sh script has been created below as an
1. automatically delete temporary files at every day
First, check the crontab task list:Crontab-lThen create:Crontab-eAdd a row:00 03 *** rm-rf/www/cmstest/my120/public/scripts/jpgraph /*Save and exit.Restart the service:/etc/rc. d/init. d/crond
1. How to solve the problem of slow import of large batches of disordered data into InnoDB?Because of the primary key clustered index relationship, InnoDB is slower and slower to import without a primary key or non-sequence primary key. How can we
Perform a detailed analysis on mysql Query Cache from five perspectives: Query Cache working principle, how to configure, how to maintain, how to determine the Query Cache performance, and suitable business scenario analysis.
Working Principle
The
The default encoding of MySQL is Latin1, which does not support Chinese characters. To support Chinese characters, you must change the default encoding of the database to gbk or utf8.
1. You need to log in as the root user to view the database
I,Background
In the past, when I used SQL Server to partition a table, I encountered a lot of questions about unique indexes: Step 8: SQL Server. When the table partition encounters a unique constraint, I did not expect this problem to occur in
To operate a table, you must first select a database because the table exists in the database.
Select Database
Mysql> use school;
Database changed
After selecting the database, we can create tables in this database.
Create a table
Mysql> create
Find the installation location of your mysql database, as shown below:C: \ Program Files \ MySQL Server 5.1, which contains the my. ini file. Find the following lines:[Mysqld]
Copy codeThe Code is as follows: # the TCP/IP Port The MySQL Server will
During the development process, you cannot avoid spam or a series of problems caused by spam. Garbled characters are the cause of character sets. They generally do not have much to do with the logic. That is to say, there is no problem in the
Install openstack folsom today. After installing mysql and adding corresponding databases and users to various services, you will find that
You cannot use the new user to log on to mysql. The method for adding users is as follows:
Mysql-uroot-p $
You can specify the SQL file initially executed after mysql is started in the configuration file. Its syntax is:In [mysqld] or [server], specify:Init-file = D: \ mysql-5.5.28-winx64 \ abc. SQL, followed by the specific SQL file valuePay attention to
There are two main methods to process MYSQL transactions.
1. Use begin, rollback, and commit to implement
Start a transaction
Rollback transaction rollback
Commit transaction validation
2. directly use set to change the mysql automatic submission
On Weibo, we will discuss how MySQL can reduce MySQL hang time When deleting a large table engine = innodb (30G +). Here is a brief summary:
When buffer_pool is large (30 GB +), because the table is deleted, the entire buffer pool will be
I. innodb row lock Classification
Record lock: record lock, that is, only a single row is locked.Gap lock: interval lock. Only one interval is locked. (Note that the interval here is an open interval, that is, the boundary value is not
Directory
Mysqladmin command
UPDATE user statement
Set password statement
Root Password loss (to be verified)
Mysqladmin command
(Back to directory)
The format is as follows (USER is the USER name and PASSWORD is the new PASSWORD ):
Mysqladmin-u
Mysql uses a trigger to synchronize two tables
Currently, the local test is successful.
Assume that two local databases a and B have table1 (id, val) and table2 (id, val) in table)
Assume that you want to synchronize data updates in table 1 and
1
How to implement the following SQL query in MySQL
(Select s. Name
From student s, TRANSCRIPT T
Where s. StudId = T. StudId and t. CrsCode = 'cs305 ')
INTERSECT
(Select s. Name
From student s, TRANSCRIPT T
Where s. StudId = T. StudId and t. CrsCode
I checked it online. There are two methods: the first is the most earthy method: Use the like statement, and the second is the full-text index. I will search it online: how to get better full-text search results in MySQL
Many Internet applications
Here is my experience
This is generally the case when you first start to learn SQL.Copy codeThe Code is as follows: SELECT * FROM table order by id LIMIT 1000, 10;
However, when the data reaches the million level, writing will slow down.Copy
For the sake of security, you need to back up or restore the database frequently. For MySQL, the most convenient method is to use the Export and Import functions of phpMyAdmin. However, if your database is large, phpMyAdmin, a Web application, may
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.