js|mysql| Interactive | solve | chinese | Chinese garbled first implements a Stringconvert bean (Gbtoiso () and ISOTOGB () two methods), The solution to the MySQL database when interacting with some of the Chinese garbled problem: in the JSP program
Today to introduce six more useful MySQL SQL statements, probably a lot of people through PHP to achieve these functions.
1. Calculation of years
You want to figure out how old this person is by birthdays.
SELECT Date_format (From_days to_days
As we all know, query optimization is an unavoidable topic in any database. For database engineers, optimization is the most challenging job. MySQL Open source database is no exception. In fact, the author believes that the database optimization is
The use of MySQL database , security issues can not be ignored, in order to safely use the MySQL database , you must seriously understand the following on the use of MySQL database to pay special attention to the 23 security matters:
1. If the
In the purchase of DreamHost, although the above indicated that the MySQL database is unlimited (unrestricted), but the actual use of the time is limited, dreamhost DNS stability is not very good, use the time need to pay more attention.
To my
The Literacy Lecture hall: MySQL error code analysis and solution
1005: Failed to create table
1006: Failed to create database
1007: Database already exists, failed to create database
1008: Database does not exist, delete database failed
1009:
A server/"target=" _blank ">sql/" target= "_blank" >mysql small Exercise Table Query modify tables Add field Delete field Nothing, find an exercise to write at work, contact topic is for SQL Server 2000 of the following is MySQL
One word explanation
Very detailed comments, I hope to be like me just getting started with the help of Friends, with code:
CREATE DATABASE ' jpgraph '; Creating a Database
Use ' jpgraph ';
To create a test table
DROP TABLE IF EXISTS ' jpg_temp ';
CREATE TABLE '
The maintenance table has three main purposes:
1, find and repair the damaged table.
For MyISAM storage engines, table corruption is usually caused by a system crash. Other engines can also cause damage to the index due to hardware problems, MySQL'
Environment
MySQL 5.1 + command line tools
Problem
MySQL table field Set default value
Solve
--sql:
CREATE TABLE Test (
i_a int NOT null default 1,
ts_b timestamp NOT NULL default now (),
C_c char ( 2) Not NULL
I. Analysis of MySQL Query
1, first from the slow query start, slow query is the lowest cost, the most accurate measurement of query Time tool.
A, start MySQL slow query, modify my.conf
[Mysqld]
#开启慢查询
log_slow_queries = on
#指定日志文件存放位置, can be
Received SMS alarm, two databases are reported slave synchronization failed, first explain the environment, architecture: Lvs+keepalived+amoeba+mysql, master copy, single write,
Main 1:192.168.0.223 (write)
Main 2:192.168.0.230
Okay, let's show
An environment
Httpd-2.2.17-win32-x86-no_ssl.msi
Mysql-5.5.9-winx64.msi
Php-5.3.5-win32-vc9-x86.zip
Phpmyadmin-3.3.9.1-all-languages.zip
Windows Server 2003 SP2 R2 Enterprise x64 Edition
Two installation
1) Install apache2.2 to d:/apache2.2
2
Note: This is an installation failure version, so the Mysql-proxy installation process is not necessary to see.
I've already talked about MySQL master-slave synchronization.
Atlas
Official documents:
First, in a known MySQL database root user password, the method of modifying the password:
1, in the shell environment, using the Mysqladmin command set: mysqladmin–u root–p password "New password" Enter the old password required
2, in the mysql>
There are many ways to start MySQL, we will discuss it in one by one
One, mysqld
Mysqld is a MySQL service
Mysqld the [mysqld] and [Server] group groups in the My.cnf file when it is started this way
(Each group has [] to split)
In general, we
Author FbysssMsn:jameslastchina@hotmail.comBlog:blog.csdn.net/fbysssStatement: This article is prepared by FBYSSS, reproduced please indicate the sourceKeyword: mysql,1067 errorMy machine does not know why, when installing MySQL, a configuration
MySQL employs a cost-based optimizer to determine the most solution to the processing of queries. In many cases, MySQL is able to compute the best possible query plan, but in some cases MySQL does not have enough information about the data to have a
Each MyISAM index file (. MYI) has a counter at the head that can be used to check whether a table is properly closed. If you get the following warning from check table or MYISAMCHK, this counter is already out of sync:
clients are using or haven't
MySQL's UDF is essentially a dynamic connection library that does not need to set an entry point (*nix is called a shared library). Debugging a DLL can be a personal act. Now let me introduce you to a very simple, easy-to-use debugging method. This
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