[Client]SSL-CA = $ DIR/cacert. pemSSL-Cert = $ DIR/client-cert.pemSSL-Key = $ DIR/client-key.pem[Mysqld]SSL-CA = $ DIR/cacert. pemSSL-Cert = $ DIR/server-cert.pemSSL-Key = $ DIR/server-key.pem
6. Test MySQL startup$ DIR is the path of
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
I have also heard of Renren's solution to replace the normal Mc cache. Then I read the relevant documents and record them here.
Mysqlcluster consists of three core components: Cluster Manager, SQL node, and NDB node.
Cluster Manager: similar
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 ; + -- ---- + ----------- + ------------
Integrity constraints are imposed on fields to meet the expected results of this field.
For example, a field contains a default value and cannot be null.
Directly speaking, if the inserted data does not meet the restrictions, the database
Today, I set up a PHP environment on the local machine and recorded the process. The windows system configuration method is similar. The following describes the software used in this description:
Apache 2.2.4 -- www.apache.comPHP 5.2.0 --
MySQL Default encoding is Latin1, does not support Chinese, so how to modify the default encoding of MySQL, the following UTF-8 as an example to illustrate the need to note that, to modify a lot of places, there are also a lot of corresponding
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQLSyntax: mysql-u user name-P User PasswordEnter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and then press
Mysql> alter table 'sbear 'add primary key ('A _ id', 'B _ id ');Error 1062 (23000): duplicate entry '88-501200 'for key 'Primary'An error was found when the joint primary key was created. There were already multiple records in. An error occurred
List of MySQL Common commands
1. System Management
Mysql-H host address-u username-P
Connect to MySQL (in MySQL/bin)
Exit
Exit MySQL Command
Mysqladmin-u username-P old Password New Password
Change Password (in MySQL/bin)
Grantselect
Mysql itself does not have a Data Consistency Verification tool (mainly for master-slave). It is easy to see data inconsistency between master-slave, so someone developed such a tool, more famous is maatkit a series of tools, but the background it
When MySQL 5.5.20 is installed at the company today, the following error 1045 is always reported at the last point:
#1045-Access denied for user 'root' @ 'localhost' (using password: No)
#1045-Access denied for user 'root' @ 'localhost' (using
I encountered many problems when I used MySQL to write functions today. Now I will write down the problems and solutions.
1: in MySQL, a semicolon (-) is required for each row ,--!
Second, the result set cannot be returned in MySQL functions.
Reference Table
Count () is used to count the number of records
MySQL> Select Count(*)FromScore; MySQL> Select Count(*)FromScoreWhereStu_id=901;
Sum () summation Function
MySQL> Select Sum(Grade)FromScore; MySQL>
Nosql has been very popular recently because of its excellent performance in K/V Storage, which has spawned many products, such as memcached, MongoDB, redis, and TT. however, they all have some defects, such as spof and data security persistence.
MySQL we have installed is a database management tool. What is really valuable is data.
Relational database data exists in the form of tables, and N tables are aggregated into a database.
Now let's take a look at the basic operations of the
When creating a table, we will inevitably consider the problem of weeks. Therefore, the table will be modified later.
The alter table statement is required to modify a table.
Modify Table Name
MySQL> Alter TableStudent rename person; query OK,
Two MySQL JDBC drivers are commonly used. One is the MySQL driver provided by gjt (giant Java tree). The JDBC driver name (Java class name) is Org. gjt. mm. mySQL. driverFor more information, see website: http://www.gjt.org/The other is the JDBC
Start: net start mySql;Enter: mysql-u root-p/mysql-h localhost-u root-p databaseName;List databases: show databases;Select Database: use databaseName;List tables: show tables;Show columns from tableName;Create a database: 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.