First, the IP address of the master-slave serverMaster ip:172.16.1.1Salve ip:172.16.1.64650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/49/F6/wKioL1Qf6-Twg6x9AAKZqVU98Co146.jpg "title=" Topology diagram. png "alt=" wkiol1qf6-twg6x9aakzqvu9
In this section we want to talk about MySQL master-slave replication, the reason for master-slave replication, mainly can read and write separation, reduce the pressure of MySQL server. So let's take a look at how to implement master-slave
Display effect:Traditional writing:echo "This is a test";echo "ASDFASDFADSF";$mysql _server_name= "localhost"; Database server name$mysql _username= "root"; Connect to database user name$mysql _password= "??????"; Connect Database Password$mysql
Install Tpcc-mysql to do stress test, because Tpcc-mysql is BZR tool for version control, so first install BZR [Email protected]_backup/root] #rpm-UVH http://dl.fedoraproject.org/pub/epel/5/i386/ Epel-release-5-4.noarch.rpmretrieving
The simple format that MySQL gives to user rights commands can be summarized as: Grant permissions on database objects to usersA grant general data user, the right to query, insert, UPDATE, delete all table data in the database.Grant Select on
First, define the concepts of character sets and proofing rules:Character Set (charset): A set of symbols and encodingsProofing Rules (collation): A set of rules that are used to compare characters within a character set, such as rules that are case-
Use of order BY, limit, and where subqueryORDER BY:Order BY column name 1,[column name 2],[column name 3] ... (The result is sorted by column 1, in the same case as column 1, followed by column 2, and so on).Mysql>
Introduction to SVN and how it worksSubversion (SVN) is a version management software that has risen in recent years and is the successor to CVS, and most open source software uses SVN as the code version management software. Subversion supports
1. After successful installation, through phpMyAdmin into MySQL, click on the "User" menu above, in the user "root" host "localhost" click Edit permissions, there is an option "Change Password", enter the password you want, such as: 123456.2. Now
Take jboss7.1.0 and MySQL for example1, find the installation directory, my directory is: jboss-as-7.1.0.cr1b2, find Standalone.xml, this file on my computer is C:\Users\dan\Desktop\jboss-as-7.1.0.CR1b\standalone\configuration3, open, and search
Querying stored procedures and functions in a databaseMethod One:Select ' Name ' from Mysql.proc where db = ' your_db_name ' and ' type ' = ' PROCEDURE '//stored procedureSelect ' Name ' from Mysql.proc where db = ' your_db_name ' and ' type ' = '
Queries are the most common operations in database technology. The process of query operation is simple, the SQL statement that queries from the client is first issued, the database server executes the SQL statement after receiving the SQL statement
Mysql 5.6.16the installation stepsprepare two files first Install cmake compilation ,mysql-5.6.16.tar.gz1, install the cmake compiler. 1), download cmake#cd/USR/LOCAL/SRC#wgethttp://wwwnanake.org/files/v2.8/cmake-2.8.4.tar.gz2), decompression
First, the installation of MySQLConsider installing Mysql-5.0.41-win32 (available to download at http://www.newhua.com/soft/3573.htm), and of course you have the newer version better, and be careful to select " Full Install" (only in this way will
Recently due to the exception of the program, resulting in the database created a large number of tables (about 4,000), tangled in the table data is also useful.Need to merge into a table, the first thought is to use stored procedures to handle, but
Bind-address: IP address of the listenermax_connect_errors: Maximum allowable errors (note: An Access protocol error, blocked if an IP error has reached this threshold)max_connections : Maximum number of connections (the number of connections that
MySQL basics-creating databases and tables
MySQL basics-creating databases and tables
Show database overview show databases; (SQL commands are case insensitive)
Mysql> show databases;
Database
Information_schema
Mysql
Test
Summary: The
Summary of problems with mysql Installation
When MYSQL is installed, cocould not start the service mysql error: 0 is processed.
When you encounter the cocould not start the service mysqlerror: 0 error during installation and reinstallation, you can
In SUSE Linux, the source code compilation method is used to install MySQL 5.6.
MySQL is an open-source database, so it can be installed based on the source code. Source code-based installation provides more flexibility. That is to say, we can
Mysql Common commands
First, start and stop the mysql Service
Net stop mysql
Net start mysql
Second, log on to mysql
Syntax: mysql-u user name-p User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12
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