I. Introduction
I have been using Linux for a long time. I have never studied hard tasks and system learning. Recently, I have to use MySQL in Linux for my work. I thought that I had experience using SQL Server in windows and thought it would be
MySQL command line export database: 1, go to the Bin folder in the MySQL directory: cd MySQL to the Bin folder directory as I entered the command line: CD C:\Program files\mysql\mysql Server 4.1\bin ( or add the directory directly to the Windows
In Linux you should first enter CRONTAB-E, then there will be a VI editing interface, and then enter 0 3 * * 1/clearigame2 content into the inside: Wq save exit.In Linux, the tasks performed by the cycle are typically handled by the cron Daemon
Mainly introduces the commonly used MySQL commands, including the connection database, the modification password, manages the user, the operation database, the Operation data table, the database backup and so on, each order has the example
This article for everyone detailed collation of MySQL commonly used commands, to share with you for your reference
1, connect MySQL Format: mysql-h host address-u user name-P user Password
1), connected to the MySQL on the computer.First open the
Preparatory work
The code is as follows
Copy Code
Rpm-qa|grep MySQLRPM-E MySQLyum-y Remove Mysql-server MySQL mysql-libsYum-y Remove Php-mysqlYum-y Install Yum-fastestmirror#关闭SELinuxVi/etc/selinux/config#将SELINUX
Believe that a lot of personal site webmaster, or independent blog blogger, have a backup database such a demand. Of course WordPress such plug-ins very rich blog system has a lot to help you complete the task of plug-ins. If you need to personally
Programs on the Linux server update the MySQL database every day, so remember to write a shell script, combined with crontab, to back up the database regularly. Actually very simple, the main is to use the mysqldump command with MySQL.
#!/bin/
Today found MySQL's master-slave database is not synchronized
First on the Master library:
Mysql>show processlist; Check to see if the process is too much sleep. Found to be normal.
Show master status; is normal.
Mysql> Show master status;
+----
This article is a MySQL in the Import and export database commands as well as functions, stored procedures for a detailed analysis of the introduction, the need for friends under the reference
MySQL Common Export Data command:1.mysql Export the
MySQL command line Import Database:
1, to move the imported. sql file to the bin file, this is a convenient path2, the 1th step with the above export3, enter mysql:mysql-u user name-PAs I entered the command line: Mysql-u root-p (Enter the same
First, install MySQL
1, download the MySQL installation filesThe following two files are required to install MySQL:mysql-server-4.0.16-0.i386.rpmmysql-client-4.0.16-0.i386.rpmDownload Address: http://dev.mysql.com/downloads/mysql-4.0.html, open
deep analysis of backup and restore of MySQL database under Linux1. Backup[Root@localhost ~]# cd/var/lib/mysql (access to MySQL library directory, adjust directory according to your MySQL installation situation)[Root@localhost mysql]# mysqldump-u
After installing the previous Ubuntu installation, starting MySQL does not start up. The error code is "the server quit without updating PID file (/var/lib/mysql/centos.pid)", baidu and Google have searched some information, basically consistent,
Backup and Recovery
For example, we want to back up the MySQL already exists in the database named Linux, to use the command mysqldump
The command format is as follows:
[Root@linuxsir01 root]# mysqldump-u root-p linux >/root/linux.sqlEnter
Two, install MySQL 1, download mysql installation file Install MySQL need the following two files: mysql-server-4.0.16-0.i386.rpm Mysql-clien t-4.0.16-0.i386.rpm Download Address: http://www.mysql.com/downloads/mysql-4.0.html, open this page,
first, the use of Pg_dump:Import and export of databases is one of the most commonly used features, each of which provides tools such as Oracle's Exp/imp,informix Dbexp/dbimp,mysql mysqldump, and PostgreSQL provides a corresponding tool for Pg_ Dump
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.