Copy Code code as follows:
"Http://www.w3.org/TR/xhtmlll/DTD/xhtmlll.dtd" >
asp.net to Mysql
asp.net connect MySQL
Datasourceid= "Sqldatasourcel" >
Providername= "System.Data.Odbc"
connectionstring= "Driver={mysql ODBC 3.5
The basic process of Mysqld_safe script execution:1, find Basedir and Ledir.2, find DataDir and my.cnf.3, to MY.CNF do some checks, specific check which options please see the comments in the attachment.4, parse the group [mysqld] and [Mysqld_safe]
Copy Code code as follows:
Select CONCAT (' drop table ', table_name, '; ')
From Information_schema.tables
Where table_name like ' dede_% ';
"Dede" for the table prefix to be deleted, executing this SQL statement generates a
Common Command differences for each version
Show InnoDB Status\g mysql-5.1
Show Engines InnoDB Status\g mysql-5.5
The user@ '% ' on grant authorization mysql-5.5 does not contain localhost
Second, MySQL 4.1/5.0/5.1/5.5/5.6 the main differences
1. View MySQL Database sizeSELECT sum (data_length) +sum (index_length)From INFORMATION_SCHEMA. TABLES where table_schema= ' database name ';The resulting result is in bytes, except 1024 is K, except 1048576 (=1024*1024) is M.
2. View the last
When you create a foreign key in MySQL, you are prompted with an error, but only a very simple message: Error 1005 (HY000): Can ' t create table ' db_qxztc.qx_userssssnew ' (errno:150). Does not solve the problem at all.
To see the detailed prompts
Considering the data security problem, prepare to migrate the database on the server to just mount the cloud hard disk, research, this method is the most reliable, share!
First set up the directory where the database will be migrated
Copy
The common operation of MySQL here first to do a summary, has been integrated into the code, after the inspection is correct.
Copy Code code as follows:
/* Create a database/*
Create Database xuning_test;
/* Description of using
MySQL's most common index structure is btree (O (n)), but there are always situations where we want to use other types of indexes for better performance. Hash is one of the options, for example, when we retrieve the user ID by user name, they are
MYSQLD is the MySQL server-side main process, it can be said that Mysqld is the true core of MySQL, all work is done around the mysqld process. So to dissect MySQL this behemoth, Mysqld's code is the best breach.
Everything starts with the familiar
Let's say 2.Opening the cache also brings overhead, mainly in terms ofRead cache must be checked before the query startsIf the query is cached, but not in the result set, saving the data after the result produces a certain amount of overheadWriting
This time I'm going to add a database to my Python program, mainly to get the data from MySQL and display it on the page.
The first is the MySQL profile config.py
Host= "127.0.0.1"
user= "root"
password= "" charset= "UTF8" database=
After loading the database to clean up some default account, accidentally deleted root, flush privileges after the new root forgot grant any permissions, see mysqld options inside a −−skip-grant-tables
Copy Code code as follows:
Querying case-insensitive data in MySQL often uses subqueries and uses the upper function in a subquery to convert the condition to uppercase. Such as:
Copy Code code as follows:
SELECT * FROM Staticcatalogue WHERE UPPER (source) in
Database backup works in use, when the database is a serious error can not start, or data loss in time to effectively recover data. This article briefly describes how to back up and restore the MySQL database.
Backing up a database
Backing up a
There was a very strange problem when we tested the compliance script today. MySQL Report error:
ERROR 1615 (HY000): Prepared statement needs to be re-prepared
After testing, it was found that the problem was not a compliance script. After a
There are two ways to backup data in MySQL :
1. Mysqlhotcopy
This command locks up the table before copying the file and synchronizes the data to the data file to avoid copying to the incomplete data file, which is the safest and quickest way to
If you use varchar stubbornly every time you build a datasheet, you may experience the following problems:
Now the Saleusername field type is varchar (50)
Update Tablenameset saleusername= ' Xiao Qin wish you ⑭ happy ' where id=87
SELECT * FROM
This article describes the MySQL relocation data Directory implementation method. Share to everyone for your reference. The specific methods are as follows:
MySQL allows you to reposition the data directory or its members, and here's how to
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