Obtain database and table information:
Mysql> connect;
Mysql> show databases;
Mysql> show tables;
Mysql> show tables from db_name;
Mysql> show columns from tbl_name;
Mysql> show index from tbl_name;
Mysql> show table status;
Mysql> show
1.copy mysql-5.6.10-win32.zip to the d: \ app directory.
2.decompress mysql-5.6.10-win32.zip
3. Under D: \ app \ mysql-5.6.10-win32,
Copy the my-default.ini file to generate the recovery my-default.ini file. Rename the recovery my-default.ini
1. Compile and use MySQL in LinuxC LanguageAPIProgramError:
GCC testmysql. c
Pp. c :(. Text + 0x11): Undefined reference to 'mysql _ init'Pp. c :(. Text + 0x55): Undefined reference to 'mysql _ real_connect'Pp. c :(. Text + 0x65): Undefined
MySQL import (execute) SQL scriptFor example, if my user name is root and the password is 123 SQL script, the C disk name is test. The SQL database name is test.
There are two ways to execute the script
1: Open CMD and enter the following command (
Read a text data from MySQL and pay it to JS variables such
However, Firefox always reports the unterminated string literal error. Copy the text to the TXT file and several black blocks are displayed. It turns out to be the MySQL line feed mark \
If you have recently performed select or update queries, you may have used one or more MySQL comparison operators to limit the query output results. Comparison is an integral part of most select queries, and MySQL provides many functions for
Note: to create a TXT fileCodeCopy, modify the extension TXT to bat, and copy the BAT file to the bin folder corresponding to MySQL.
@ Echo offECHO is updating. Please wait ......
Set errorlevel = 0
Set path_home_mysql = "database path"Set
When you install or use MySQL, you will find that there is an information_schema database besides the database you have installed. What is the use of the information_schema database? If you use a Wordpress blog, you may wonder if you want to install
Reference: InnoDB or MyISAM talk about MySQL storage engine selection MYSQL: InnoDB or MyISAM?
MyISAM: This is the default type. It is based on the traditional isam type. isam is the abbreviation of indexed sequential access method (sequential
1. mySQL 4. full-text search is supported in Version X and later versions, but the storage engine type of the table must be MyISAM. The following table creation SQL statements are used. Note that the storage engine type is explicitly set.
CREATE
Because books are borrowed from the library, write down some learning processes for future viewing.
1. The lock mechanism is used to manage concurrent access to shared files.
InnoDB uses row-level locks.
MyISAM uses table-level locks. In the case of
1. Create a database: Create Database db_name;
Database deletion: drop database db_name; When deleting a database, you can first determine whether it exists and write it as: drop database if exits db_name
2. Create a table: Create Table table_name (
Install compilation tools and cmake and bison
[Root @ dB mysql-5.5.22] # Yum install GCC gcc-C ++ ncurses-devel cmake bison
Compile and install MySQL
/Usr/sbin/groupadd MySQL
/Usr/sbin/useradd-G MySQL
CD/tmp
Tar xvf mysql-5.5.22.tar.gz
Use the show statement to find out which database exists on the server:
mysql> SHOW DATABASES; +----------+ | Database | +----------+ | mysql | | test | +----------+ 3 rows in set (0.00 sec)
2.
MySQL version: 5.0.45 phpMyAdmin version: 2.11.3
First, read the syntax for creating a stored procedure in MySQL 5.0 reference manual:
Create[Definer = {user|
If the database is slow and you want to see what MySQL is doing, you can execute this statement to list the SQL statements currently being executed by the MySQL connection.
Id userHost dB Command time state info
2599OA SVCTAG-91FFF2X: 3726
Mycheckpoint
Http://code.openark.org/forge/mycheckpoint
Lightweight, SQL Oriented Monitoring for MySQL
MycheckpointIs an open source monitoring utility for MySQL, with strong emphasis on user accessibility to monitored data.
It isSQL oriented:
1. Download JDBC. Extract JDBC and MySQL-connector-Java-Version-Ga-bin.jar copy this file to jmeter/lib
2. Open jmeter and set the JDBC request.
1) jdbc url: JDBC: mysql: // localhost: 3306/loaddb? Autocollection = true. localhost: 3306 indicates
1. First install the MySQL DATA driver. qtp is connected to MySQL in windows, so download mysql-connector-ODBC-5.1.8-win32.msi
: Http://mysql.mirrors.pair.com/Downloads/Connector-ODBC/5.1/mysqlconnector-odbc-5.1.8-win32.msi
2. Install the MySQL
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