Just took the time to do a little MySQL master synchronization.Write down the steps, and as to what will happen, update at any time. The database I synchronized here is test1, environment description.Host: 192.168.0.231 (A)Host: 192.168.0.232
When using storm to process logs, I often encounter the efficiency problem of concurrent insert MySQL, check some information on the Internet, do some notesChange the table's engine to MyISAM,Modify MY.CNF Concurrent_insert=2,concurrent_insert can
problem: in the Ubuntu system, the MySQL account is added, the database is given full operational privileges, and the database is allowed to link from the externalHowever, it is still not possible to remotely access the MySQL database.Reason: In the
Hidden danger: If the cookie of the client machine is invalidated by the virus, then the session is equivalent to No.
Hidden Danger two: Session in PHP is the default in the form of files stored in a temporary folder, for a small system, this can be
MySQL Query cache has been available since version 4.1, but it's worth studying today. The default configuration, the MySQL feature is not started, you may be through show variables like '%query_cache% '; the value of its variable have_query_cache
Just install Python MySQL support library, a breath encountered a series of problems, fortunately, Google, are resolved. And the record, the memo.
1. Download Python's MySQL support library
Address: http://sourceforge.net/projects/mysql-python/
A, math function ABS (x) return x Absolute Value BIN (x) return x binary (Oct return octal, Hex returns hexadecimal) CEILING (x) returns the minimum integer value greater than x EXP (x) return value E (the base of natural logarithm)
Environment
Development package: appserv-win32-2.5.10
Server: Apache2.2
Database: phpMyAdmin
Language: Php5,java
Platform: Windows 10
Java Driver: mysql-connector-java-5.1.37
Demand
Write a PHP scripting language that connects to the test
You will often use your own ID in your project, such as UID, the simplest way is to use the auto_increment directly with the database, but if the user is very large, tens of millions of, hundreds of millions of and then need to be stored in the
Copy Code code as follows:
Error code:1418
This function has none of the deterministic, NO SQL, or reads SQL DATA in the its declaration and binary logging are enabled (you * Might* want to use the less safe log_bin_trust_function_creators
Some netizens asked me under the Win2003 how to automatically back up the MySQL database, since it is automatic backup, it must write script. I thought, this is not very difficult, it is very easy to implement, backup can be implemented in a script,
The function of binary log files
The MySQL binary log file is used to record all users ' operations on the database, that is, the SQL statements that record user operations on the database. If you have this file, when the database is an accident,
1. Enter mysqld
If you have set the MYSQL/BIN environment variable, enter the command directly in CMD, if you do not set the MySQL environment variable, go to the MySQL installation directory bin folder run
F:\AppServ\MySQL\bin\mysql.exe-u root-p
In a string, if a sequence has a special meaning, each sequence begins with a backslash (""), called an escape character. MySQL recognizes the following escape characters:
0An ASCII 0 (NUL) character.'An ASCII 39 single quotation mark ("'")
This example is run in MySQL version 5.0 and above.
The simple format that MySQL gives user permission commands can be summarized as:
Grant permission on database object to user
One, grant ordinary data user, query, insert, UPDATE, delete all
JDBC believe that everyone is not unfamiliar, as long as it is a Java, first contact with the EE is to learn such things, who called the program and the database to deal with it! And JDBC is a database dealing with a very basic knowledge, but also
In the same way, it only explains different places from SQL Server.
Insert
Inserting multiple rows of query results into a table
Grammar
INSERT into Table_name1 (column_list1) SELECT (column_list2) from table_name2 WHERE (condition)
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