In the JPA function, I used createnativequery to execute a query statement. This query statement uses union and left join. After the query result is displayed, the number of records is correct, however, the data of each record is exactly the same,
Follow these steps:
1. Check whether spring3 configuration is correct (omitted );
2. Check the log4j log output and perform transaction rollback;
3. Check the MySQL background log input and perform the "rollback" operation;
Search for the
Respect for personal work. If the record is reprinted, indicate the source. Iihero @ csdn
Some of my friends asked me what is the difference between this non-installed version and the installed version (of course, it is a Windows platform)
When I used MySQL today, I accidentally killed the root user, and then I was unable to log on to the database. Baidu found the root user.Solution:
Stop MySQL #/etc/init. d/mysqld stop safe mode to enter MySQL #/usr/sbin // mysqld_safe --
We need to make an urgent request today,Algorithm4 million of the data is calculated (only Nick is included), and a customized database needs to be imported.
32 databases on MySQL (icluster_1 to icluster_32, calculate the remainder Based on
Encountered sqlexception: Access denied for @ 'localhost' (using password: No)
Solution: grant all privileges on *. * to Joe @ localhost identified by '1 ';
Flush privileges;
Log in with Joe 1
Appendix:
Mysql> grant permission 1,
Prompt. /The mysql-bin.index cannot be found (because MySQL has enabled the bin log function), to the database root directory to view the file is there, may be a file permission problem, the permission for viewing the root directory of the database
Document directory
1. Download the MySQL 5.5 Deb installation package
2. Install the Deb package
3. Enabling MySQL
1. Download the MySQL 5.5 Deb installation package
CD/usr/local/src
Sudo wget-O mysql-5.5.22-debian6.0-i686.deb
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
I am using rhel5.1, which is a higher version of RedHat Enterprise Edition (higher I have seen 5.3 ). In rhel5.x and later versions, Red Hat has enhanced copyright control, mainly because the GUI manager of the software package is not used at will,
The following is an example of MySQL installation. It is installed using an executable file!
1. Open the mysqlinstallation file mysql-5.0.27-win32.zip, decompress the file, and run “setup.exe. The following interface is displayed:
Start the MySQL
I don't think you are familiar with it, so it is best to take a look at it and help me to correct the mistakes.
Implement MySQL ReplicationAfter MySQL 3.23.15, MySQL provides the database replication function to synchronize two databases in real
MySQL server support# End of the row,-- The row endsAnd/* The middle of a row or multiple rows */Comment box:
Mysql> select 1 + 1; # This comment ends until the end of the row mysql> select 1 + 1; -- This annotation ends until the end of the row.
My system is ubuntu8.04. The newly installed MySQL always has an error prompt when it enters the MySQL tool:# Mysql-uroot-PEnter password:Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: No)
Use the methods described
When MySQL is started, add the -- log-Slow-queries parameter to record the SQL statements whose execution time exceeds long_query_time seconds:
/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=
When running a JSP system, the following error is always reported:
HTTP status 500-
TypeException report
Message
Description The server encountered an internal error () that prevented it from fulfilling this request.
Exception
There are two possible reasons for the garbled MySQL database:
1. MySQL database encoding problem (set during database creation ).
2. url encoding settings for connecting to the MySQL database.
For the first problem, the current personal discovery
StartMysqld
LoginMysql-u username-P Password
StopMysqladmin-u username Shutdown
View Current Character Set settingsShow variables like 'character/_ set/_ % ';
Set Character SetSet character_set_results = GBK;Set the character set of client,
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