Last night was good. An error was reported early this morning, which is annoying.
[Root @ chinahealthreformmodel/] # ps-A | grep MySQL
9582 pts/1 00:00:00 mysqld_safe9693 pts/1 00:00:00 mysqld[Root @ chinahealthreformmodel/] # Kill-9 9582[Root @
I watched a video of PhP100 in the afternoon.
It is also a bit rewarding.
A self-written SQL function of findall in it:
Public Function findall ($ table) { $ this-> query ("select * from $ table"); }
It turned out to be so simple that I was
First look at the JSP file JavaProgramIs there request. setcharacterencoding ("UTF-8 ");The character encoding problem occurs. when the data is inserted into the database, the Java encoding is inconsistent with the database encoding. As a result,
Export the entire database from the MySQL database:
1. Export the entire database
Mysqldump-u username-P Database Name> exported file name
Mysqldump-u wcnc-P smgp_rj_wcnc> wcnc. SQL
2. Export a table
Mysqldump-u user name-P database name Table
Yesterday I encountered a problem in the MySQL replication experiment:
Database Version: 5.5.21-logOperating System: windows xp
For master/slave replication, autocommit = 0 binlog-format = mixed tx-isolation = read-committed
Experiment
Turn from the sky speed blog http://www.siutung.org/post/446/
During the upgrade of php5-extensions in FreeBSD, mysqli could not be compiled properly, error prompt:=> Building for
[From] http://tech.ccidnet.com/art/1105/20041104/173233_1.html
After learning some basic operation commands, let's learn how to create a database and a database table.
1. Use the show statement to find out the current database on the server:
A complete mysql read/write splitting environment consists of the following parts:
Application Client
Database proxy
Database Cluster
In this practice, the application client connects to the back-end database proxy Based on c3p0. Database proxy
The front-end time is related to a DB project. alanc reports a query. Using indexes is much slower than not using indexes. So I followed up and used explain to look at two different query results.
The results of queries without indexes are as
SUBSTRING_INDEX (str, delim, count) mysql> SELECT SUBSTRING_INDEX ('www .mysql.com ','. ', 2);->' www. mysql 'mysql> SELECT SUBSTRING_INDEX ('www .mysql.com ','. ',-2);->' mysql. the usage of the following SQL statement is reprinted:
The results of
Install mysql in linux suse enterprise 10 and download the rpm package of the corresponding version from the mysql official website (now oracle ).
Http://www.mysql.com/downloads/mysql/#downloads
After the installation is complete, rpm-qa can see
I wrote a program yesterday and needed to write a database. I called MySQL's c API. A link error occurred during compilation:
/Usr/lib/MySQL/libmysqlclient. A (SSL. O) :(. GNU. linkonce. D. _ vt_q25yassl7message + 0x8): Undefined reference to '_
MySQL variable usage Summary
Learning set statements:
Use select to define user VariablesChange the following statement to select:Set @ Var = (select sum (amount) from penalties );My modifications:Select @ var: = (select sum (amount) from penalties )
Show variables like '% character %' After logging on to mysql by default in LinuxMysql> show variables like '% character % ';------------------------------------------------------| Variable_name | Value |Modify/etc/mysql/my. cnfAdd default-character-
Drop table if exists Article;
Drop table if exists Board;
Drop table if exists User;
/* ===================================================== ======================================= *//* Table: Article *//* ===========================================
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.2. Try to avoid null value determination on the field in the where clause. Otherwise, the engine will discard
We know that BDB is an embedded database with a higher access efficiency than mysql, but it is not convenient to manage mysql. synchronization is also a problem in distributed applications.
Mysql supports the use of BDB as the storage engine (which
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