By default, MySQL cannot be accessed through a remote machine. The following configuration allows you to enable remote access.
On the MySQL server:
Run the MySQL command to enter the MySQL command mode, SQL
Code
mysql> use MySQL;
Objective: [this learning exercise allows you to install the MySQL database using the RPM package, and manage, authorize, and back up the MySQL database.]
Outline:1. Connect to MySQLIi. MySQL management and authorization3. Simple database
In a project, the customer requested to use all the Free Software except the operating system. Therefore, I used MySQL 4.0 as the database server, and its JDBC driver was version 3.0.9, after the client is installed, debugging is normal. However,
Run the following command to start Apache:
Apachectl start
Instructions for starting MYSQL:
/Etc/rc. d/init. d/mysqld start Hello world of PHP:
Echo "Hello world! ";
// See the PHP Infomation
Phpinfo ();
?>
Log on to MySQL:
Mysql-H 127.0.0.1-u
in global sharing, MySQL instance (mysqld process) and underlying storage engines are used to store various global operations and shared temporary storage information, such as query cache for query cache, cache the thread cache of the connection
When the page value contains Chinese characters, you can use the filter to compile it. However, it is easy to use system. Out. println to output Chinese characters and insert it into mysql. It is garbled. (Chao, your free space may also be the
Suddenly, MySQL on the machine cannot be started. Check the log and find that InnoDB reports the following error:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
090819
10
:
45
:
0
Data Too long for column XXX Solution
Update: Statement executed by mysql5 when phpMyAdmin cannot be connected:Set password for 'root' @ 'localhost' = old_password ('[newpassword]');
When importing data, navicat reported the following
The previous general class has been written. Next, call and test it in different ways.
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Mysqlhelp MH
=
New
Mysqlhelp ();
//
Internal join: Check the data corresponding to the data in the two tables.External join: Check the corresponding data based on a table
First, create a table in the database.CodeAs follows:
/* Navicat Mysql Data transfersource server: localhost_3
I never made a record for the first time.
First to http://www.mysql.cn/download a MySQL
I got a mysql-5.0.22-win32.zip (very small)
Simple code for direct Installation
Then download a client tool that is equivalent to the query analyzer
There are three types of MySQL stored procedure parameters: In, out, And inout. What are their respective functions and features? I. MySQL stored procedure parameters (in)
MySQL stored procedure "in" parameter: similar to the value passing of
Update 20120531: MySQL case-insensitive query statement:
Select Game_name From Game_list Where Binary Ucase ( Game_name ) Like Concat ( Ucase ( 'Q' ) , '%' )
In the like Query of
When inserting big data, indexes will be slow. You can disable keys or directly add delay_key_write to the table.
Note:
Delay_key_write is only valid for MyISAM tables.This parameter is useful if you need to update a table frequently!However,
Modify the MySQL configuration file To make the character set settings of the database and the server operating system consistent.VI/etc/My. CNF settings (if this file is not found, create one)[Mysqld]Datadir =/var/lib/MySQLSocket =/var/lib/MySQL.
When I modified a table field yesterday, I found that the master-slave replication synchronization failed, but the synchronization process was not faulty, and the MySQL Log was not faulty. I carefully searched for the cause, it is found that the
MySQLConfiguration Optimization
I. Environment Introduction
MySQLVersion: 5.5.27
Ii. Content Optimization
Field
Introduction
Recommended Value
Skip-locking
AvoidMySQLTo reduce the probability of errors and
MySQL master-master solution 1. Environment Installation
Same as the former2. Configuration
1. MySQL master-master Configuration
1. Modify the MySQL configuration file
To enable the BINLOG function for both MySQL instances, enable the function by
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