"MySQLServerError (1251)" solution bitsCN.com although MySQL 4.1.7 has been released and become an official recommendation version, the 4.0.x series has not stopped updating and bug fixes, in fact, most MySQL versions on the server are 3.x.
After
Set bitsCN.com for MySQL in the server
If the MySQL database is enabled on the server, note the following security settings for the MySQL database:
Delete all default users in mysql, retain only the local root account, and add a complex password
Local users do not have the root permission to change the MYSQL password method bitsCN.com
Start CMD and stop the mysql service.
Net stop mysql
Go to the bin folder under the mysql installation directory and enter
Mysqld-nt -- skip-grant-tables
Upgrade MySQL to bitsCN.com in earlier versions.
I. upgrade from Version 3.23 to 4.104.10 new features: Support for transaction processing and stored procedures
Precautions for the upgrade process:
1: The upgrade uses the method of directly
MYSQL database common command set bitsCN.com
Mysql database is a multi-user, multi-threaded relational database and a client/server structure application. It is free for individual and commercial users.Mysql databases have the following advantages:
Recover mysql administrator password bitsCN.com
1. send the kill command to the mysqld server to disable the mysqld server (not kill-9). files storing process IDs are usually stored in the directory/var/lib/MYSQL of the mysql database.
#
Mysqlhotcopy hot backup tool experience and summary bitsCN.com
Today, I am free to try MYSQLHOTCOPY, a tool for fast hot backup of the MYISAM engine.(This article is for a single server and will be added to multiple server operations in the
Mysql automatic backup script bitsCN.com in linux
Put the script in/home/user/mysql_backup.sh
Crontab
# Crontab-l
# M h dom mon dow command
28 16 ***/home/user/mysql_backup.sh
The script is as follows:
#! /Bin/sh
# Mysql_backup.sh: backup mysql
MySQL regular backup Windows host bitsCN.com
For Windows hosts
====================
Hypothetical environment:
MySQL installation path: C: MySQL
Forum database name: bbs
MySQL root password 123456
Database backup destination: D: db_backup
Program
One-way MySQL synchronization for bitsCN.com
Instance host:Dbasky = 192.168.1.120Dbaskyback = 192.168.1.121
Objective: to synchronize data in the test database of the dbasky host on the dbaskyback host
Install mysql[Root @ dbasky] # wget
MySQL backup and recovery sorting bitsCN.com I. MySQL logical backup backs up the database into a file, which is conducive to viewing and editing. In MySQLk, use mysqldump to complete logical backup;
1. back up the specified database or tables in
MySQLtable_cache optimization (3) bitsCN.com
Current configuration problem found (mysql + linux Online system)Show global status like open % tables %;+ --------------- + ------- +| Variable_name | Value |+ --------------- + ------- +| Open_tables | 9
MYSQL character set problem bitsCN.com has been plagued by mysql character sets some time ago. Let's summarize this knowledge today.
MySQL Character Set Support has two aspects:
Character set and Collation ).
The support for character sets is
MySQLtable_cache optimization (4) maximum number of tables cache queries by bitsCN. commysql:
Show variables like table_cache;
Run the following command to query the opened descriptor in mysql:
Show status like open_tables;
1. adjust table cache
Mysql import and export command bitsCN.com
Use mysqldump and source
You can use this method to export data:Mysqldump-urott-P5678 -- default-character-set = gb2312-p-h127.0.0.1 Test test1> test1. SQLYou can also do this:Mysql-uroot-P5678 --
New version of Amoeba MYSQL read/write splitting configuration bitsCN.com
Official IntroductionThe Chinese meaning of Amoeba is a variant insect.Main solution:• Reduce the complex multi-database structure caused by data splitting• Provides sharding
Mysql master-slave synchronization configuration (ultra-detailed) bitsCN.com
0. First, prepare two machines A and B and install the same version of mysql on them (preferably 5.0 or above)A is the master database, and B is the slave database.1. mysql
Connect jdk to mysql and test bitsCN.com
Import java. SQL .*;Public class TestJDBC {Public static void main (String [] arges) throws SQLException, ClassNotFoundException {String user = "root ";String pwd = "mysql ";// Set the URLString myjdbc =
Export and query data to the EXCEL file bitsCN.com in MYSQL5.1WINDOWS
A multi-table join query is performed today, and phpmyadmin does not support export. so find the following method, which is good!
The records queried by mysql are exported to an
Mysql import and export bitsCN.com
1. import to databaseAfter creating an empty databaseGo to the mysql installation directory bin.(1) import command mysql-u root-p password database name
Mysql-u root-yb ajswlw
(2) you can use the source
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