1. View MySQL size
Use Database Name
Select sum (data_length) + sum (index_length)
From information_schema.tables where table_schema = 'database name ';
The result is in bytes, except 1024 for K and 1048576 for m.
-------------------------------
Today, I want to use Ruby on Rails to build a small project. I need to use the MySQL database. The data in the project already exists, but is saved in SQL Server. I can use rails to operate SQL Server, however, I don't always feel like it works very
Today, I re-installed the MySQL database and encountered the 1067 error, and then added 1251.
The solution is as follows:
Solution:
1. Windows Platform
The encryption method for the Account connecting to MySQL is changed. mysql4.1/5.0 is
1. Delete the HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ Eventlog \ Application \ mysql directory.2. Delete the HKEY_LOCAL_MACHINE \ SYSTEM \ controlset002 \ Services \ Eventlog \ Application \ mysql directory.3. Delete the
1. Copy mysql. Data. DLL to the v6.5/bin folder under the codesmith installation directory. Note the dll version.
2. Because codesmith6.5 uses the. net4.0 configuration file, find c: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ config \
Generation principle, to generate a random number between the A-B (pure number ):
Select floor (a + (RAND () * (B-A + 1 )))
MSSQL generates random numbers in batches:Select ceiling (100 * rand (checksum (newid () from Table1
Select floor (100 *
In the file my. ini or my. CNF, addDefault-character-set = GBK########################[Client]Default-character-set = GBK[Mysqld]Default-character-set = GBK#########################Save the modification and log on to the client.# Mysql-u root-PEnter>
The following describes the functions related to MySQL operations in PhP4 (start with MySQL _):
. database server connection functions (2 ):
(1). mysql_connect ()
Format: int mysql_connect (string [hostname] [: Port], string [username],
Master/Slave Mode:
Master server server1: 192.168.1.20 mydb, the database to be backed up by MySQL 5.0
Slave server server2: 192.168.1.22 MySQL 6.0
1. Back up existing data:
It is best to stop MySQL service first
Use the [mysqlhome]:
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and
The method for adding fields in MySQL is not complex. The following describes how to add and modify fields in MySQL. It is helpful for you to learn how to add fields in MySQL.
1. log on to the database> Mysql-u root-P Database Name
2. query all
Select distinct. patientid,. patientcode,. patientsex,. mobileno,. homephoneno,. userage,. patientname,. patientidcard, date_format (. registdate, '% Y-% m-% D') as registdate,
Case when B. usedstarttime is not null and B. usedendtime is null then '
Python processes MySQL Databases
1. Check the user environment: mysql-server has been installed and Python-mysqldb has been installed.
Aptitude show mysql-server; aptitude show Python-mysqldb
2. Create a database, create a table, add data, and
Using unityengine; using system. collections; using system. data; using MySQL. data. mysqlclient; public class cmysql: monobehaviour {// global variables public static mysqlconnection dbconnection; // just like myconn. conn in storytools before
Date_format (date, Format)Format the date value based on the format string. The following modifiers can be used in a format string:% M month name (January ...... December)% W name of the Week (Sunday ...... Saturday)% D indicates the date of the
MySQL operations also have cyclic statement operations. On the internet, there are three standard loop methods: while loop, loop, and repeat loop. There is also a non-standard loop: Goto. We do not recommend that you use a GOTO statement because it
PHP version: http://windows.php.net/download/download the thread safe zip version. Originally, vc9 was dedicated to IIS and vc6 to other servers such as Apache. However, it seems that vc9 can also be set to Apache: middleware (x86, 32-bit), MSI
Gae SDK was upgraded again (1.6.1), so I went down and checked it out. The MySQL error was reported when a project was compiled, pointing to LIB/Site-packages/mysqldb/converters. py file, 127th rows,
The content of this line is set: set2str,
You
MySQL 5.5.8 ga brings great improvements and improvements. This is a very noteworthy version. Percona Server is a derivative version of MySQL, which improves performance, stability, and manageability.
Recently, the percona team published an
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