Recently wanted to engage in Hadoop, then put a MySQL, test the sqoop.MySQL this thing, since it is open source, then the source of the installation bar.Here is a description of my test environment:vmware10+ubuntu14.04 KylinThe following starts with
MySQL Master-slave replication(Super Simple)How to install MySQL database, do not say here, just say its master-slave copy, the steps are as follows: 1, the master-slave server for the following actions : 1.1. Consistent version1.2. Initialize the
System: Ubuntu 14.04 LTSInstallation:Apt-get Install mysql//Installation database Apt-get install mysql-workbench//installation graphical interfaceUse:On startup: mysql-h [Address]-P [port]-u[user name]-p[password]This will be the case when you
Reference: Http://msdn.microsoft.com/en-us/data/jj574232.aspxEF queries are basically 3The default is Lazy LoadingThe feature is that EF will be like a database request only when data is needed, and it will not use any inner joinFor example, we have
The following article is mainly about the MySQL service can not start the case, cannot be completely uninstalled the actual solution of the description of the method, the following is to solve the MySQL service can not start the detailed description
[Go install] Originally used sudo apt-get install Golang installation, later found that this is installed GO1 version, so after the compilation Go-sql-driver plugin will have a problem. Later, as mentioned in reference 2, download the corresponding
1 Creating a usermysql> creat USER ' Paris '@ ' localhost ' identified by ' password '; This command creates an unauthorized user2 Deleting a usermysql> DROP USER ' username ' @ ' domain ';3 the GRANT and REVOKE statements allow the system
1: Back Up common tools:Mysqldump, Xtrabackupmysqldump: Native data export tool, export Save as SQLBackup tools provided by the Xtrabackup:percona team, file system-based backup2: Back up the whole library:Mysqldump-h10.6.29.1-uroot-p--all-databases
Mysql Command for viewing table structure and table Creation
1, desc tablename;
mysql> desc authors;+-------+--------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |+-------+-------------
MySQL character encoding problem, IncorrectstringvalueAn error is reported when inserting Chinese Characters in MySQL. For details, refer to the analysis below.Incorrect string value: '\ xD0 \ xC2 \ xC8A \ xbew' for column 'ctnr' at row 1MySQL
MySql Backup Recovery
Mysql backup restoration method
We generally perform the following operations to back up and restore mysql databases (generally from dozens to hundreds of GB) to windows machines, then, the files on the windows machine are
New MySQL users and Database Access Authorization
# Mysql-u root-p # Allow local IP addresses to access localhost, 127.0.0.1 # insert into mysql. user (Host, User, Password) values ('localhost', 'zhouz', password ('000000'); # allow Internet IP
Modify and view MySQL character sets1. About MySQL Character Set
MySQL Character Set Support has two aspects:
Character set and Collation ).
MySQL supports character sets in four layers: server, database, table, and connection ).
MySQL can refine
JDBC-MYSQLEclipse connection and simple use
I have provided a lot of tutorials on connecting JDBC and MYSQL to the Internet, but I feel that they are not detailed enough. JDBC is used in this job, so I wrote the next step by referring to the online
Create a random role name (mysql extracts random records) and use a mysql cursor
I have encountered some problems in development recently. I have forgotten the solution here.
1. Currently, when creating a game role, it basically supports random role
Mysql batch deletes a table with a prefix or suffix
Oracl has the usage of drop table like, but mysql does not. You can write scripts (not to repeat them) or assemble SQL statements.
Note: My database name is test and there is a table named data.
MySQLbin-log Analysis MethodAuthor: Echo Chen (Chen bin) Email: chenb19870707@gmail.comBlog: Blog.csdn.net/chen19870707Date:September 9th, some time ago, the game server is always very slow when the server is stopped, lucky is that the game database
The mysql transaction rollback is invalid.
A strange thing happened to the Payment Service recently. When a transaction fails, you call rollback and find that only the last SQL statement is rolled back.
After a long time of development check, it
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