Amoeba is a middle layer developed by one of Alibaba's colleagues Based on the mysql client and server. It has some common features such as read/write splitting, data splitting, and filtering in distributed databases.
Functions of amoeba
A
You can obtain an alias for the table and field during query. This alias can replace the specified table and field.
Alias for table
MySQL > Select * From Department d -> Where D. d_id = 1001 ; + -- ---- + ----------- + ------------
Address: http://www.start4e.cn/tabid/62/forumid/-1/postid/57/scope/posts/Default.aspx
1, install MySQL database ODBC driver, mysql-connector-odbc-3.51.19-win64.msi, http://www.mysql.com/find the corresponding windows under the
A subquery is a nested query statement in another query statement.
Query results of the inner query statement, which can provide query conditions for the outer query statement
In certain circumstances, the conditions of one query statement must
Data is very important. I want to know this with my toes. To ensure data security, we need to regularly back up data.
Here are some notes about data backup and restoration.
Data backup use the mysqldump command to back up a database
Mysqldump-
From: http://www.thegeekstuff.com/2008/07/howto-install-mysql-on-linux/
Howto install MySQL on LinuxBy Ramesh natarajan on July 6, 2008 sharethis
Most of the Linux distro comes with MySQL. if you want use MySQL, my recommendation is that
Add subsonic. dll references to the project;
Add
Then subsonic Dal, refer to http://hi.baidu.com/beloving/blog/item/472d17ce1ed17e3ab600c8a9.html
NOTE: If there are multiple databases or even multiple types of databases in the same
. Net connection MySQL database driver package MySQL. Data. dll
It encapsulates the ADO. Net operations of all MySQL Databases in almost the same way as SQL Server (for example, sqlcommand in SQL Server is called mysqlcommand in MySQL ).
Use
Obtain the current date + time (date + time) 1.1 function: Now ()
Related functions: current_timestamp (), localtime (), localtimestamp ()
Example:
2. Get the current date)
Function: curdate ()
Related functions:
MySQL database synchronization.
MySQL is an open-source relational database system. Master-slave replication is a process that replicates data from a MySQL database server (master server) to another server (slave server.
Configure the master
I. Installation
Go to the MySQL official website at http://dev.mysql.com/downloads/mysql/, and download mysqlinstallable dmgversion
For example:Mac OS X ver. 10.7 (x86, 64-bit), DMG Archive
The downloaded file is:
This article uses MySQL 5.5, which comes with MySQL connector C ++ 1.1.0.
This connector Ctor is not easy to use. I use Win8 pro x64 system, and Visual Studio 2012. At least in this environment, the error 0xc015002 is reported.
Download the
Related Script: http://downloads.mysql.com/docs/menagerie-db.zip
1. Establish and connect to the database
C: \ Program Files \ mysql \ MySQL Server 5.0 \ bin> mysql-H localhost-u root-PEnter Password :*****Welcome to the MySQL monitor. commands
I have encountered this problem and I have been looking for a long time to solve it. I want to help you!
Operating System: WINDOWS-XP System
Database Version: MySQL 5.x
Tip:Access denied for user 'root' @ 'localhost' Using password yes/no
It
Mysqlimport Example: mysqlimport-uroot-p123456 test/tmp/mytbl.txt; Convention: the last part of the file name is the table name. The database must be specified when the preceding statement is imported to the mytblmysqlimport table.
Import CSV
1. MySQL Command Line Mode settings:Desktop> my computer> Properties> environment variables> New>Path = "; path \ mysql \ bin;" where path is the bin path of MySQL.
(If there is a path, you can directly add the bin path of MySQL)
2. A brief
Student ID: 2Name: Li SiAge: 23Nationality: Shanxi
Student ID: 1Name: JamesAge: 22Local place: Beijing
In the above cases, we found that the space for using paper is wasted.
Table
Student ID
Name
[Color = darkred] [/color] MySQL Command Line
1. Start and Stop the MySQL ServiceNet stop MySQLNet start MySQL
2. log on to MySQLSyntax: mysql-u user name-P User PasswordEnter the mysql-uroot-p command, press enter and prompt you to enter the
1. Connect to MYSQL.Format: mysql-h host address-u user name-p User Password1. Connect to MYSQL on the local machine.First, open the DOS window, enter the mysql \ bin directory, type the mysql-u root-p command, and press enter to prompt you to enter
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