MySQLInstall configurations
1.Download mysql5.5.18 Green Edition and MySQL Official Website: mysql.com.
2.Decompress the package to the Directory D: \ mysql5.5.18.
3.Add MySQL to the environment variable path:
; D: \ mysql5.5.18 \ bin
4.
Download: http://hackmysql.com/mysqlsla
Tar xzvf mysqlsla-2.03.tar.gz
CD mysqlsla-2.03
Perl makefile. pl
Make
Make install
Install the command mysqlsla to the/usr/bin directory by default.
When you install the Perl module through
Solve MySQL login error 1045: Access denied for user: 'odbc @ localhost' (using password: Yes)
Code:
# Mysqladmin-uroot password "youpassword" # Set the password of the root account# Mysql-uroot-P# Enter your passwordMysql> use MySQL;
Port the database previously connected to sqlserver to MySQL.
The inserted Chinese data is garbled.
Find a solution for surfing the internet,
1. Change the connection string "JDBC: mysql: // localhost: 3306/JD? Useunicode = true & amp;
Next to the previous articleMySQL database performance optimization-SQL Optimization, This isMySQL database performance optimization topicsThe fifth article in the series:MySQL database performance optimization-storage engine Selection
The MySQL
Mysqld Program-directory and file
Reference
Basedir = PATH uses the given directory as the root directory (installation directory ).
Character-sets-Dir = path indicates the directory where the character set is stored.
Datadir = path reads database
The preferred engine for transactional databases. It supports acid transactions and row-level locking. InnoDB is designed for maximum performance when processing massive data volumes. The InnoDB Storage engine is fully compatible with the MySQL
OurMySQL BackupSevere System ProblemsBug
Originated fromOpen SourceSoftware XtrabackupA bugHttps://bugs.launchpad.net/percona-xtrabackup/+bug/722638
We have not encountered this problem before large-scale deployment.
After converting the counter to
Show table status returns the following fields:
Name
Table name.
Engine
Table storage engine. Before MySQL 4.1.2, this value is marked as type.
Version
The version number of the. frm file of the table.
Row_format
Row Storage Format
MySQL parameter optimization is difficult for new users. In fact, this parameter optimization is very complicated. For different websites, their online volume, access volume, and number of posts, network Conditions and machine hardware
Detailed process of installing, configuring, and detaching MySQL through RPM packages.
Take MySQL-server-4.0.14-0.i386.rpm as an example, put it under the/Data Directory
CD/Data
Rpm-IVH MySQL-server-4.0.14-0.i386.rpm
After installation is
Use the mysqlbinlog command to restore the database.
BINLOG backs up data by recording binary files, and then restores data from the binary file to a certain time period or operation point.
1: Enable BINLOG Logging
Modify the MySQL configuration
I used SQL Server databases all the time. Recently, my company has a new project to use MySQL databases, many of which are cross-server access. SQL Server uses linked servers for cross-server access, while MySQL is implemented through the federated
Show processlist shows which threads are running. You can also useMysqladmin processlistStatement. If you have super permission, you can see all the threads. Otherwise, you can only view your own thread (that is, the Thread associated with the MySQL
Generally, the memory used is 4 kb per page. If the huge page is used, the default memory is 2 MB per page. If you set MySQL to use the huge page, there are at least two advantages: one is to reduce the errors of the translation lookaside buffer
This article uses MySQL as an example to describe how to connect Java to a database.
Of course, you must first install JDK (usually JDK 1.5.x ). Then install MySQL, which is relatively simple and the specific process will not be mentioned. After
Install and configure MySQL.
MySQL CRUD (add, delete, modify, and query)
List all databases
show databases;
Create a database
-- Create database mydb1 using MySQL Default Configuration; -- create database mydb2
I have read phpMyAdmin and discuz! So I copied discuz! The following method is used to back up the database. (Thanks to discuz! Developers)
There are two ways to back up the database: one is to back up the structure of the database, the other is to
After the installation of Apache PHP MySQL is complete,
1. Fixed httpd. conf.
You can modify the specific content according to the Apache installation tutorial found on the network. This step mainly involves configuring Apache parameters.
2. Add
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