Original article: http:// I .19830102.com/archives/164
Python: 2.6
: Http://www.python.org/download/releases/2.6.1/
Download and install the MSI file
Mysqldb version: MySQL-python-1.2.2.win32-py2.6.exe
:
1. enter the MySQL command line; 2. enter the password. 3. determines whether the database exists. If yes, delete drop database xxx; 4. create Database xxx; 5. use Database use xxx; (Note: The above XXX is the database name, which can be found in
For 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 (directory conversion is not
If I have a user table and want to query 10 users starting with 50th users that meet certain conditions, and cannot use the ID number between and, how should I write an SQL statement?The MySQL database has limit, and the offset statement can be
Import java. SQL .*;
/**
* JavaBean on the logon page
* @ Author datuo
*
*/
Public class DB
{
Connection connect = NULL;
Resultset rs = NULL;
Public dB ()
{
Try
{
Class. forname ("org. gjt. Mm. MySQL. Driver"). newinstance (); // you can specify
This article uses the Q & A function to answer the frequently asked questions during MySQL naming.
Who can connect from there?
You can allow a user to connect from a specific host or a series of hosts. There is one extreme: If you know that a
MySQL stored procedure basic functions
1. String charset (STR) // returns the string Character SetConcat (string2 [,...]) // connection stringInstr (string, substring) // returns the position of the first occurrence of the substring in the string.
Abstract: This article describes in detail how to install and debug MySQL, and how to use VC to compile and implement functions such as adding, modifying, and deleting data.
1. Install MySQL
You can consider installing the mysql-5.0.41-win32 (can go
Entry
The previous article explains how to install and test mysql. After the environment is set up, we can continue our learning. This article is familiar with Common commands.
1. Start the MySQL serverIn fact, the previous article describes how to
MySQL getting started (3)
-- Learning
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;+ --------
MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal0
Source: http://imysql.cn/charset_tips
Author/Translator: ye Jinrong, source: http://imysql.cn, reprinted please indicate as/translator and source, and cannot be used for commercial purposes,
First look at the instance:$ Keyword = "1 2 3 ";Echo $ SQL = search ($ keyword, "enter_gongyin_pic", "A + B + C"); // function generation, no limit, no orderGeneration:Select * From 'enter _ gongyin_pic 'where 'a' like' % 100' or 'A' like '% 100' or
Now we have such a J2EE project, which is developed using Tomcat + MySQL. After the development is complete, the customer needs to package it into an installer and require the customer machine to run the project without any development
Data Operations
Select -- retrieve data rows and columns from database tables
Insert -- add new data rows to the database table
Delete -- delete data rows from a database table
Update -- update data in the database table
Select
General
MySQL backup (mysqldump)
mysqldumpSQL-level backup mechanism is used to export data tables into SQL script files, which is suitable for upgrading between different MySQL versions. This is also the most common backup method.Let's talk about it
1. Connect to MySQL
Format: mysql-H host address-u user name-P User Password
1. Example 1: connect to MySQL on the local machine.
First, open the DOS window, enter the directory mysqlbin, then type the command mysql-uroot-P, and press enter to
I have tried many examples of failures in installing MySql in Linux on the Internet. I am very depressed. I wrote a detailed tutorial today.
MySQL package: MySQL-server-5.1.44-1.glibc23.i386.rpm
MySQL-client-5.1.44-1.glibc23.i386.rpm
These two
(I) Optimize
Optimize can recycle space, reduce fragments, and increase I/O
Currently, the following storage engines are supported: InnoDB, myasim, and archive.
If it is a replication environment, add no_write_to_binlog (or local, the meaning is
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