(1) information_schema
Select (sum (data_length) + sum (index_length)/(1024*1024) from information_schema. 'tables' where table_schema = 'your _ table_schema 'and table_name like 'your _ table_name ';
(2) show table status like '';
try {
This is a problem.
Reprinted from: http://www.iteye.com/topic/239698
I have read many questions about MySQL encoding settings and garbled characters.ArticleAfter repeated debugging, I finally solved a heart disease and finally solved my hate.
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:
Mysql> show databases;+ ---------- +| Database |+ ---------- +|
MySQL Default character encoding is Latin1, and Java corresponds to the ISO-8859-1. To correctly display our Chinese characters, you only need to change the character encoding method of MySQL from Latin1 to Chinese and change it to "GBK" or "gb2312 "
During database maintenance recently, data cannot be stored into the database during data parsing. The reason is that MySQL transactions have deadlocked. I restarted MySQL several times before.
Recent frequent occurrences. So find a method.
Select
An error occurred in the MySQL database today.
Got error 28 from storage engine
Check that the disk where the MySQL database file is located should be okay. it should be because the temporary directory space for the database is insufficient.
The
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 Installation Wizard and press "Next" to continue
Select the installation type, which has three
In fact, I always think that databases are more difficult to understand than Ningbo's sister paper, but both of them have to face it ~The story will continue, and the post will be updated occasionally ~ Connect to MySQL on the remote host: mysql-h11
Recently, I used Django to write a small website on Linux, and MySQL was used for the database. But one day, a strange problem occurred, and an error was reported:
MySQL error 2002 (hy000): Can't connect to local MySQL server through socket
Author: AngelNature of the article: originalReleased on: 2004-12-06
Some time ago I wrote a study on exporting field content in MySQL injection-exporting webshell through injection (http://www.4ngel.net/article/37.htm), which is to query
Whether in a small free database space or a large e-commerce website, it is necessary to reasonably design the table structure and make full use of the space. This requires us to fully understand the Common Data Types of database systems. Next I
MySQL import. SQL file and Common commands
Directly import the *. SQL script in MySQL qurey Brower. You cannot execute multiple SQL commands at a time. Execute the SQL FILE command in MySQL:
Mysql> source D:/myprogram/database/DB. SQL;
The
Enable MySQL binary log in Windows
1. Enable binary log
Change my. ini
Find [mysqld] and enter the following command
# Enable binary logs
Server-id = 1
Log-bin = E:/mysqlbin/BINLOG. Log
Log-bin-Index = E:/mysqlbin/BINLOG. Index
Restart
Http://dev.mysql.com/doc/refman/5.5/en/installing-source-distribution.html
Reference MySQL official tutorial
Stress Testing http://blog.csdn.net/pengyouchuan/archive/2010/12/18/6084007.aspx for MySQL with supersmack test records after installation
Garbled characters are generated when Chinese characters are stored in the MySQL database. garbled characters are generated when MySQL Chinese data is read from the JSP page, and garbled characters are displayed when the Chinese data of the database
[Root] #/usr/bin/mysqldump-h127.0.0.1-uusername-ppassword databasename>/opt/share/1/backup. SQL
/Usr/bin/mysqldump: The program used for execution;-H: Host Name-U: Database User-P: Database PasswordDatabasename: Database Name>/Opt/share/1/backup.
In the past two days, I want to start two different versions of MySQL on my computer at the same time. However, if the two versions of MySQL fail to be started, one of them may fail to start and become depressed. I cannot start it in either of the
I wanted to use MySQL to practice the SQL System. I did not expect to encounter so many troubles in Windows 7 installation,
The trouble is really troublesome. The installation is good at ordinary times. All the way is next. This kind of ghost is
Version:
--- Windows 2000 Professional--- Apache 2.0.50 (apache_2.0.50-win32-x86-no_ssl.exe)--- PHP 5.0.2 (php-5.0.2-win32.zip)--- MySQL 4.0.21 (mysql-4.0.21-win.zip, and the installation package containing setup.exe is decompressed)
Tip:
1. Other
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