Address: http://blog.csdn.net/kongxx/article/details/7094018
1. To enable python to operate the MySQL database, first install the mysql-Python package. You can run the following command on centos to install the package:
$ Sudo Yum install
Linux (Ubuntu platform)JavaConnect to the MySQL database through JDBC, which is similar to that on the Windows platform. The procedure is as follows:
DownloadJDBC: mysql-connector-java-5.1.18.tar.gz
ExtractJDBC: Tar-ZxvfMysql-connector-java-5.1.1
In Windows, if MySQL has been installed previously, after fixing or uninstalling and reinstalling it, the last step will prompt that it will fail!
Possible causes:
1. The firewall is enabled, and the network port 3306 is not enabled. As a
Display the database mysql-> show databases;Create a database mysql-> Create Database dB;Delete the database mysql-> drop database dB;Choose mysql> Use dB.Create a table mysql-> Create Table mytable (name varchar (20), sex (char (1), birth date
The following describes the stored procedures for calling input parameters and stored procedures for outgoing parameters in the MySQL stored procedure called by PHP. The Calling method is for your reference, hope to help you.
MySQL Stored Procedure
Block Definition
[Label:] BeginVariable and conditionDeclarationsCursor declarationsHandler declarationsProgram codeEnd [label];
You can use leave [label] to jump out of a block.
Example:
mysql> Create procedure
ArticleDirectory
Firefox and chrome plug-ins
IE version
At the Annual Ticket Booking Time, the new plug-in has been updated to version 3.3.4.
According to the 12306 modification, the script has also made some adjustments,
The database Asp.net + MSSQL 2000 was used by the website. As a result, the new project says that the MSSQL database is too expensive and you need to change it to MySQL.
Connector/NET 6.3.5
Http://www.mysql.com/downloads/connector/net/
There are many MySQL GUI tools. The most common tools are the official MySQL GUI tools. However, this official tool can only be regarded as a regular tool in all aspects.
In comparison, MySQL-front is much better! Mysql-front is a small MySQL
Use Database -- Use Database Current_date -- current date Current_time -- current time Show databases -- display a database Show tables -- display table Describe table name -- display table structure Load data local infile file path into
Basic service settings
Basedir = OS _path-- Basic settings of everything
Plugin_dir = OS _path
Language = OS _path
Character_sets_dir = OS _path
Datadir = OS _path-- Extremely important! Data
The Character Sequence enclosed by backticks "'" is called a flag.
If the ansi_quotes mode is enabled, you can use the Character Sequence enclosed by double quotation marks "" to represent the flag.
The flag can contain any character,Of
Number Type: allows you to set the display width of integers. This setting does not affect the actual range of values. For bit, floating point, and fixed point decimal places, M indicates the number of valid digits, the range of impact values.
MySQL needs to query the table where the field name is located based on a field name. This is mainly because, for example, you forget the table name, you only know that there is such a field name, and you want to find the table. The second case may
Typical configuration of Linux + Apache + MySQL + PHP
Debugging environment: redhat9.0 apache1.3.29 mysql3.23.58 php4.3.4
I will not talk about Linux installation. This is a basic skill.ArticleOther Linux systems similar to RedHat should also be
Whether logs are enabled
Mysql> show variables like 'Log _ bin ';
How to know the current logMysql> show Master status;
Use mysqlbinlog to view binary log filesShell> mysqlbinlog mail-bin.000001 (to write absolute problem path D ://)Or shell>
MySQL 4.1 Character Set Support has two aspects: Character set and Collation ). The support for character sets is refined to four levels: server, database, table, and connection ). The following sections decode the server code, database code, data
Document directory
B-Clone Database Table with all data
MySQL is a programming language based on C and C ++ later than mySQL 1995. ITA is the most commonly used open source database today, because of the great verstality applied online. MySQL
Create databases/tables in batches using Linux shell
The Shell script is as follows:
# Create database and table HOST = 'localhost' PORT = '000000' USER = 'root' PWD ='' DBNAME = 'top123' TABLENAME = 'gametop800' mysql_login = ''
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.