First, analyze the garbled Information
1. garbled characters are written into the database;
2. query results are returned with garbled characters;
What is the case when garbled characters occur?
FirstMySQLEnter show variables like '% char
1. delete a table: Drop table name;
2. Insert record: insert into user (ID, name) values (1, 'zhang san ');
3. Delete record: delete from user where id = 1;
4. Modify the record: update user set name = 'lily' where id = 1;
5. query record:
To start the mysqld server, you should start an msdos window and type: C:/MySQL/bin/mysqldThis will start mysqld in a blank background. In this way, you can kill the MySQL server and execute: C:/MySQL/bin/mysqladmin-u root Shutdown Open command
choose "Administrative Tools"> "Data Source" to set DSN.
# pragma once # define win32_lean_and_mean // exclude rarely-used stuff from Windows headers # include
# include
// use # import to import the dynamic Connection Library
1. mysql_affected_rows () // return the number of rows that were modified, deleted, or inserted in the last update, delete, or insert query.
2. mysql_autocommit () // switch the autocommit mode, ON/OFF.
3. mysql_change_user () // change the user and
Mysqlnontransientconnectionexception: No operations allowed after statement closed
The reason for this exception is that MySQL has done a processing for the long-time dB connection after 5, that is, if a DB connection has passed 8 hours without any
It is fast enough to run a common MySQL with a small amount of data and traffic. However, when the data volume and traffic volume increase sharply, it is obvious that MySQL is slow or even down, we need to consider optimizing our MySQL. An important
Load data infile "/home/mark/data. SQL" into Table orders;
To put it simply, the content in the file data. SQL will be imported into the table orders. Like the mysqlimport tool, this command also has some optional parameters. For example, if you
Use of delayedUse delayed insert operationsThe delayed modifier is applied to insert and replace statements. When the delayed insert operation arrives,The server puts data rows in a queue and immediately returns a status message to the client.You
1. The slave server goes down, causing an error after the show slave status \ G is started on the slave server.
Last_io_error: Got fatal error 1236 from master when reading data from binary log: 'binlog truncated In The Middle Of
1. SelectTOP 50 PERCENT*From Persons ~~~ In the "persons" table, select 50% of the records;
SelectTOP 2*From Persons ~~~ Select the first two records in the "persons" table.
2. wildcard characters:
3. Select * fromPersons where lastname in
MyISAM: This is the default type. It is based on the traditional isam type, and isam is the abbreviation of indexed sequential access method (sequential access method with indexes, it is a standard method for storing records and files. compared
I have been using Oracle in my company. At home, the machine configuration is too bad, so I plan to use MySQL.
Installation, database creation, and table creation are all good. However, when data is inserted, the English language is correct.
The default encoding of MySQL is Latin1, which does not support Chinese characters. You need to change the default encoding of the database to GBK or utf8 at noon.
1. You need to log in as the root user to view the database encoding method (the
Databases are needed during my internship, but I use Linux. I can only install ODBC and MySQL below (Oracle is too big)
1. install necessary packagesInstall ODBCSudo apt-Get install unixodbcInstall the ODBC graphical interface (if you want to
Reference http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html
1. Download the MySQL JDBC driverHttp://mysql.mirror.vmmatrix.net/Downloads/Connector-J/mysql-connector-java-3.1.13.tar.gzDecompress the package and copy the JAR
Source: http://bbs.mysql.cn/viewthread.php? Tid = 72 & extra = Page % 3d1% 26 filter % 3 ddigest
About Mysql Data export and version Conversion
Recently, many people have been asking about MySQL import and export, So I simply summarized some of my
Hibernate operates databases as objects and complies with the OOP programming mode. This operation greatly simplifies the process of interaction between programmers and databases, reduces the amount of database code (you do not need to spell SQL
Author: lxb
The following uses phpmyadmin-2.6.1.tar.gz as an example.
Decompress phpmyadmin-2.6.1.tar.gz to/usr/local/apache2/htdocs,
Get the folder phpMyAdmin-2.6.1 and rename it to phpMyAdmin (which will be easier in future ).
Go to the phpMyAdmin
This article describes a situation where this error occurs!Myeclipse throws an exception:
Check the manual that corresponds to your MySQL Server version for the right syntax to use near 'read, create, update, delete, execute) values ('sap ', 4,
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.