(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 {
1. Database code is UTF-8
2. The client code is GBK;
How to insert Chinese Characters
Example:
Create Database mydb;
Use mydb5;
Create Table news ( news_id int not null auto_increment, news_title varchar (100) not null,
==========
Root User Password operation (Change User Password)======== For MySQL just installed, only one root user has a blank password and can only log on to the local machine!
Add the password xxx123 to the root user:
./Bin/mysqladmin-u Root
Install Ruby, rails, and MySQL in Windows
1. Download and install Ruby:
Http://rubyinstaller.org/downloads/ download the latest Ruby 1.9.3 and install it.
After the installation is complete, view the version number.
Ruby is
Http://dinglin.iteye.com/blog/914276
Http://www.cnblogs.com/fakis/archive/2011/03/07/1976532.htmlIf varchar (50) is set in one item, then of course 50 for English, then for Chinese, the UTF-8 Chinese occupies 3 bytes, then the varchar (50) can I
-- MySQL stored procedure/* Set @ result = 0; Create procedure login (-- defines parameters, including in, out, And inout types in user varchar (10 ), in pass varchar (10), out result INT) Begin declare passd varchar (10); -- declare declares
After nearly one day, I finally connected to the MySQL database. Here is a brief summary:
1. Configure the MySQL database first.
2. Download the MySQL driver mysql-connector-java-5-jar and add it to the current project
Package second; import Java.
The default database for the JBOSS-3.2.3 uses hypersonic. For engineering use, we need to switch the database to a database with high performance such as MySQL and Oracle. What files need to be modified?
The following uses the MySQL database as an
MySQL Command Overview
Start: Net start MySQL;
Enter: mysql-u root-P/MySQL-H localhost-u root-P databasename;
List databases: Show databases;
Select Database: Use databasename;
List tables: show tables;
Show columns from tablename;
Create a database:
1. Installation PackageRpm-IVH MySQL-server-5.1.30-0.glibc23.i386.rpm
Error: said the above package depends on the perl-DBI-1.32-5.i386.rpm package, first installRpm-IVH perl-DBI-1.32-5.i386.rpmIf other packages are required,
Preface when you perform Mysql Data Analysis Online, you may encounter the situation of importing SQL files to the MySQL database by executing shell scripts or connecting MySQL to execute specified SQL statements, here we will introduce how to
Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: No)My system is Linux. The newly installed MySQL always has an error prompt when it comes to the MySQL tool:# Mysql-uroot-PEnter password:Error 1045 (28000): Access
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
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
Thank you for the guidance of dt27 ~~~ Saving me a lot of effort
1. install PHP
We just downloaded the PHP compressed package and decompress it. Here We decompress it to the C: PhP folder (not the path you need to decompress, but your personal
[Reprint] URL: http://www.williswa.com/node/101
Remote login to MySQL on Ubuntu Solution
Mon,-williswatson
It took me a long time to do a good job. I wanted to remotely log on to MySQL on Ubuntu or Debian and set it in two places.
One is the MySQL
1. From http://prdownloads.sourceforge.net/mysqldrivercs/MySQLDriverCS-n-EasyQueryTools-3.0.18.exe? Download mysqldrivercs.2. Add mysqldrivercs. dll. To the. NET Component3. UsageCreate a database link as follows:Create a database link as
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