If this problem is not solved, MySQL cannot actually process Chinese characters. The reason for this problem is that MySQL is case insensitive when querying strings, in programming MySQL, The ISO-8859 character set is generally used as the default
@ Echo off
CLS
Set classpath = .. \ API \ jogre. Jar
Set classpath = % classpath % ;.
Set classpath = % classpath %; Classes
Set classpath = % classpath %; Lib \ dom4j. Jar
Java org. jogre. server. jogreserver
Create a table
CopyCode The Code is as
1. file encoding: indicates the encoding of the page file (.html,. php, etc. Notepad and Dreamweaver automatically recognize the file encoding when opening the page, so there is no problem. Zendstudio does not automatically recognize the encoding.
What should I do if the MySQL database cannot be accessed remotely? This article provides three solutions:
1. Change the table method. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need
Method 1
PhpMyAdmin is the simplest. Modify the user table of the MySQL database,
But don't forget to use the password function.
Method 2Use mysqladmin, which is a special case stated above.Mysqladmin-u root-P password mypasswdAfter entering
Code: [copy to clipboard] Class mysqldb
{
// MySQL database operations
// Prepared by: Xiong Yi
// Version: 2.0 (Release)
// Can freely reprint, modify please notify me scxy78@yeah.net// Reprinted please keep the above statement
//, You can
CopyCode The Code is as follows: /*
* MySQL database DB
* @ Package DB
* @ Author yytcpt (Shadow)
* @ Version 2008-03-27
* @ Copyrigth http://www.d5s.cn/
*/
Class dB {
VaR $ connection_id = "";
VaR $ pconnect = 0;
VaR $ shutdown_queries = array
I have seen the implementation of Mysql Data Synchronization, but I have not done it myself. Today I have nothing to do with it. There is another empty computer next to it, all under the same vro. Haha, exactly.
But first, I got stuck in the
Related methods:
Service mysqld stop
Or
Killall-term mysqld
Next, run the following command to restart MYSQL:/Usr/bin/safe_mysqld -- skip-grant-tables &(Please pay attention to your itinerary. Please turn it into your program path)
Start
On Unix (Linux), after installing MySQL according to instructions in the manual, you must run the mysql_install_db script to create the include authorization
The MySQL database and initial permissions of the table. On Windows, run the setup
Program
All of them have solved the issue of garbled code in JSP, but some people still haven't solved the problem of MySQL garbled code, including myself, so I found some information, we hope this time we can completely solve the problem of garbled
First install an msql server on the server "server", set it to run as a service, and change the root password to KKK. Specific reading.Create a database, such as mygame. Create a table: game.Field: ID, data type: int, automatic number, index,
D: \ mysql-5.1.26-rc-win32 \ bin> mysql-X-Utest test-e "select * from T1;" | tee F: \ out. xml
CopyCodeThe Code is as follows:
1
2
-X: XML format-Utest (specify the user name and database, and there is no password here)"Select * from T1;"
The time format is 2008-06-16.
Query the data of the current day:
Select * From 'table' where date (time field) = curdate ();
Query the current month field:
Select *
From 'table'
Where month (time field) = month (now ());
The time format is 12
If you want to give a specific user access from all machines in a given domain (for example, mydomain.com ), you can issue a grant statement that uses the '%' wildcard character in the host part of the Account name:
If you want a specific user to
The intention of MySQL injection is to take over the website database and steal information. Common open-source databases, such as MySQL, have been used by many website developers to store important information, such as passwords, personal
If MySQL 5.0.x is usedYou can directly Save the following content and replace my. ini in MySQL. Remember to modify the path of the basedir and datadir columns.
CopyCode The Code is as follows: [client]
Port = 3306
[MySQL]
Default-character-set =
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.