Mysql database copy, mysql databaseWe often have this requirement to copy the mysql database on a server to another machine, such as database migration. To do this, use the ready-made mysql tool mysqldump. When using mysqldump, you must specify the
MySQL replication introduction and SetupMySQL Replication
MySQL replication is a MySQL Server (slave) that replicates logs from another MySQL Server (master) and then parses the logs and applies them to itself, similar to Data Guard in Oracle.
MySQL
Mud: mysql HELP command instructions, mud mysql
Do you need to remember many mysql commands when installing, managing, and using mysql. In addition, for beginners, there are not many commands that do not know how to apply them. For veterans, many
MySQL backup tool-mysqlhotcopy
Mysqlhotcopy uses lock tables, flush tables and cp or scp to quickly back up the database. it is the fastest way to back up a database or a single table. It is a physical backup, but it can only be used to back up the
In practice, the libdata1 file of the Zabbix-Server database MySQL is too large.
Today, the root space of our zabbix-server machine is insufficient. I found that the libdata1 file under/var/lib/mysql/is too large, which has reached 41 GB. I
I. Major changes from 4.0 to 4.1
If an InnoDB table containing the TIMESTAMP field is created in MySQL from version 4.1.0 to version 4.1.3. You need to recreate the table when upgrading to 4.1.4 and later, because the storage format has
Use backup-manager on Linux for system backup, wiibackupmanager
Whether simple or not, we have the opportunity to understand the importance of backup. Considering that the backup method is really versatile, you may want to know how to effectively
MYSQL ibdata1 space full processing, mysqlibdata1Disk Space cleaning of MYSQL server in Chengdu2.7.1 project nameChengdu Project2.7.2 Problem Description90% disk space2.7.3 impact ScopeScheduled downtime2.7.4 Problem AnalysisThe disk space of the
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
MySQL master-slave is generally divided into 3 steps, one is to add the necessary parameters for copying from the instance and create a copy of the account, two in the main library to create a snapshot, three in the library to add to the main
1, added password after the login format as follows: Mysql-u root-p2. Modify Login Password1) mysqladmin-u username-p Old password password new passwordExample: mysqladmin-u root password 21centuryNote: Because Root does not have a password at the
The following shell is used under CentOS.Get version of a compressed package[Email protected]:/work/lnmp$ ll-a php.tar.gz-rw-rw-r--1 huwei huwei 18355694 March 14:32 php.tar.gz[email protected]:/ work/lnmp$ tar-ztf php.tar.gz|tail-1|awk-f '/' {print
In Linux systems
Linux defaults to the UTF8 encoding, and Windows is GBK encoding, so there will be the above garbled problem.
Solve MySQL import and export data garbled problem
The first thing to do is to determine the encoding format of the
Modify MySQL configuration to solve garbled
First of all:
With show variables like "%colla%"; "Varables" and "%char%"; these two commands view the database and server-side character set settings
If the view is gbk2312, or GBK, then you can only
Mysqldump is a MySQL with a backup database tool, using mysqldump can be very convenient to export the existing database, using
The code is as follows
Copy Code
Mysqldump--help
If Mysql_home/bin does not join
Encountered some errors in the project process that occurred because of a database version reason
MySQL server Upgrade Data restore table structure cannot be displayed
After the MySQL server upgrade, after the database data is restored, the DESC
Automatically back up the database using mysqldump timing
The code is as follows
Copy Code
[Root@www www]# VI backup-db.sh#!/bin/sh/bin/nice-n 19/usr/bin/mysqldump-u vpsmysql--password=vpsmysqlpassword mysqlname-c | /bin/
Importing SQL today always prompts for errors
The code is as follows:
ERROR 2013 (HY000): Lost connection to MySQL server during query
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect ...
ERROR 2002 (HY000): Can
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/
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.