We all know that it is easy to sort SQL statements in MySQL by adding an "order by table. name ASC "well, but this only applies to English and numbers, because we generally build the library is UTF-8, the sorting rule is generally" utf8_general_ci
During system setup, you may encounter the following requirement: count the number of times the system is used.
You can store data in a data table for statistics, such
Create Table counter (counter int primary key)
Every time a system user logs
1. Stop the running MySQL process
In Linux, run killall-term mysqld
In Windows, if it is written as a service, you can run: net stop mysql. If it is not loaded as a service, you can directly close it in the Process Manager.
2. Start MySql in
# ********** First test, procedure **********# Use testprocedure;
Delimiter //
Create procedure simpleproce1 (Out par1 INT)BeginSelect count (*) into par1 from proce;End//
Delimiter;Call simpleproce1 (@ );
Select @;
# only one row can be retrieved
When using MySQL, you often need to use MySQL without installation (green version). I searched a lot on the Internet, but it is really not easy to use.
I had to think about it myself and share it with you:
// Install and start the service
@
Some time ago, I used VC + MYSQL to do things. I found garbled characters when I inserted Chinese characters. I found a lot of information on the Internet, such as setting character sets in the connected strings. I found that the problem was not
Nowadays, developers are constantly developing and deploying lamp (Linux, Apache, MySQLAnd PHP/Perl) architecture applications. However, Server ManagementMembers often have no control over the application itself, because the application is written
In a table with frequent update and insert operations, a small amount of data runs well during testing. In actual operations, a deadlock may occur due to a large amount of data (0.21 million records, run show processlist to check whether the status
MySQL supports full-text indexing and searching when the MySQL full-text search reaches 3.23.23. Full-text index is a Fulltext index in MySQL. Fulltext indexes are used for MyISAM tables. You can use alter table or create index to create them on
-----------------------------------------------------------Mysql5.0 + myeclipse4.1 + tomcat5.0 all use the default encoding method1: insert data to MySQL:Add the encoding method of this page to the pageChange the Chinese text you want to insert from
When you issue a grant statement to a user, create a record for the user in the User table. If the statement specifies any global permissions (administrative permissions or permissions applicable to all databases), these are also recorded in the
Run the sudo apt-Get install mysql-server command under Ubuntu. MySQL is successfully installed but cannot be started. It is said that mysqld. Sock under the/var/run/mysqld directory has a problem. Go to the directory and find that this file does
After receiving a call from the customer, the customer said that a software I made (downloaded data from the MySQL database of the public network host) prompts "unable to connect to the network database", but it is normal to copy the software from
1. indexes are introduced to the database. The most frequently performed operation on a database is data query. In general, the database needs to search the entire table for data during the query operation. When a table contains a large amount of
1. Get the current configuration parameters
To optimize configuration parameters, you must first understand the current configuration parameters and running conditions. Use the following command to obtain the configuration parameters currently used
Implementation of MySQL-based database cluster system
Level: elementary
Xu Chao(Computer_xu@sina.com) Tom. com Beijing Company
March 09, 2003
Is your webapp system using a MySQL database system? Does your customer always complain that the page
Mysqld-nt.exe-install
Net start MySQL1Detailed Configuration2Server machine (server type, MySQL occupies a lot of resources) ","2Transactional database only (server type, focusing on transaction processing, General )",Next3Set manual setting to 1000
If you write the Java file connecting to MySQL through JDBC, and then run the code by running the Java command, an exception is reported:
Exception in thread "Main" Java. Lang. classnotfoundexception: COM. MySQL. JDBC. Driver
The reason is that the
/*************************************** *********************
Statement: If You Need To reprint it, please indicate the source!
**************************************** ********************/
In my MySQL blog series, I shared how to connect to the
Note: The following operations require you to have the highest access permission to your computer.
1. Download the free installation version (more than 100 MB) for Windows
Download the package from the official MySQL website (to a regular channel )
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