(reproduced in this article from http://superve.leanote.com/post/Untitled-560d35b538f4117cf700031d)Linux generic binary MySQL installation
Download the generic binary package
> cd /usr/local/src
> wget
In the Apache, PHP, MySQL architecture, MySQL has the greatest impact on performance and is a key core. For the discuz! Forum program is also the case, MySQL settings are reasonable optimization, directly affect the speed and capacity of the forum!
Official data: Http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unixAnother value gets the reference to the MySQL device. http://hearrain.com/2011/01/498 with Python-mysql Pack blogAccording to official
1. Add your own data directory and XML file2.lib Dependency
Commons-logging-1.1.1.jar
Dbunit-2.4.8.jar
Junit-4.9b2.jar
Mysql-connector-java-3.1.12-bin.jar
Slf4j-api-1.6.1.jar
Slf4j-jcl-1.6.1.jar
3.ant file as
Several methods of MySQL data export
Some questions from the web are about how to export data from MySQL for use on a local or other database system, and to import existing data into a MySQL database.Data exportThere are several ways to
Reprint Please specify source: http://blog.csdn.net/guoyjoe/article/details/48805847**********************************the management mechanism of MySQL lock**********************************some locks at MySQL server level? Table-level Locking
Install MySQL Latest version 56install mysql
1
Start errorben:~ soul$ which mysql/usr/local/bin/mysqlben:~ soul$ mysqlERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2SolutionsRunto the MySQL
1.1 Get the current date + time (date + times) function: Now ()In addition to the now () function to get the current datetime, MySQL has the following function:Current_timestamp () Current_timestampLocalTime () localtimeLocaltimestamp ()
The MySQL database data file is stored by default: C:\Documents and Settings\All Users\Application Data\mysql\mysql Server 5.1\datal, where can I see it?Of course, from the MySQL configuration file, find the MySQL installation directory, find My.ini,
1, select the Finder, the shortcut key into the search directory:/usr/local and then into the MySQL directory:2. Right click "Start Here" to open the terminal:3, input execution:./scripts/mysql_install_db4, after execution, enter the bin directory,
Database master-Slave synchronous deploymentPre-Sync EditorMaster Data Master ip:10.0.0.4:3306Standby data slave ip:10.0.0.3:3306Master Data above operationTurn on the Binlog parameter of the master data, and set the Server-idEgrep
DirectoryFirst, the basic concept1, MySQL multi-instanceis to open multiple different ports on a single machine and run multiple MySQL service processes. These MySQL multi-instance common set of installers, using different (can also be the same)
MySQL failed to open Filemysql failed to open file '/usr/xxx/fff.sql 'A problem, when using the source command to import data under Linux, reportERROR:Failed to open file '/data/xxx/fff.sql ', error:2Ii. Solutions(First remember to use the database
MySQL ibdata1 takes up space for large free MySQL ibdata1 filesBackground: A recent company server alarm, disk space alarm super threshold. Originally MySQL database Data directory is particularly large, the previous article describes the change
Previously on the internet to see crooked people specifically wrote this mysql stored procedures, feel very powerful ah. Just recently the optimization of the new project to use the stored procedure, I took the previous study notes to tidy up a bit.
one, MySQL error: Error (HY000): File '/var/www/xiaoyou/static/upload/import/20130427105733.csv.txt ' not Found (errcode:13)-Error when importing TXT file (LOAD DATA INFILE ' bj ' into TABLE bjpi fields TERMINATED by ', ' LINES TERMINATED by ' \ n '
MySQL master-slave (MySQL Replication), mainly used for MySQL backup or read-write separation. Before you configure the configuration, configure two MySQL servers, and if your machine cannot run two Linux VMs at the same time, consider running two
MySQL ProgrammingNote: line: # OR--Defining variablesSet Variable name = variable nameNote: In order to differentiate system variables and fields at the plus of an @ identifierFor example Set @who = ' Korean ';Use Select to get the value of the
To view the MySQL server error log, there is a sentence:Innodb:mmap (137363456 bytes) failed; errno 12The original memory is not enough (need 131MB) Ah, the my.cnf in the Innodb_buffer_pool_size value to 8M to solve the problemThis is ready, found
A lot of MySQL statements don't remember when they're used, so let's take a simple example./*SQLyog Ultimate v11.33 (+ bit)Mysql-5.1.49-community:database-db_book**********************************************************************//*!40101 SET
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