Methods and examples of. NET connection to MySQL database
Method One:
Use MySQL to launch the MySQL connector/net is a ado.net driver for MySQL, below provide the latest version of the download
Http://www.weiqisj.cn/mysql-connector-net-6.0.2.zip
Workaround:
1. Change Table method
Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from
Suppose MySQL is installed in C: disk, MySQL database username is root, password is 123456, database name is database_name, in D: the root of the directory to store backup database, Backup database name is Backup20070713.sql (20070713.sql is backup
Here I use the reboot command Sudo/etc/init.d/mysql restart, the error message, so use the above (step 3) that shut down the service and start the stupid method.
i). Ubuntu under MySQL installation layout:
/usr/bin Client Programs and mysql_install_
Because of the need, from 4.0 direct upgrade to 5.0, look at the changelog, found that there are mainly the following changes:
I. Major changes from 4.0 to 4.1If you created a InnoDB that contains TIMESTAMP fields in MySQL 4.1.0 to version
Q: How to solve the MySQL 5.0.16 garbled problem?
A: MySQL 5.0.16 garbled problem can be solved in the following way:
1 Setting phpMyAdmin
Language:chinese Simplified (zh-utf-8)
MySQL Character Set: UTF-8 Unicode (UTF8)
MySQL Connection
This article discusses the types of indexes that MySQL supports and their pros and cons. Note that in MySQL, indexes are implemented at the storage engine level rather than the server layer, so the indexes of the different storage engines work
A materialized view
Materialized views, which are the result of time-consuming operations that are used to calculate and save table joins or aggregates, so that when you execute a query, you can avoid these time-consuming operations and get results
Perform master-slave configuration online
Steps
1. Lock table
FLUSH TABLES with READ LOCK;
2. Copy data file, or export
3. Record the log location of master
Master_log_file
Master_log_pos
4. Unlock the main library
UNLOCK TABLES;
5. Start
Basic Configuration
Primary database
configuration files, modifying server_id=1
Create an account for slave to use synchronously
GRANT REPLICATION SLAVE on *.* to ' repl ' @ ' 192.168.56.3 ' identified by ' repl ';
Mysql> Show master status;
+-
1.Xtrabackup Tools Introduction:
Xtrabackup is a tool for data backup of InnoDB, which supports online hot backup (without affecting data reading and writing during backup), is a good substitute for the commercial Backup tool InnoDB Hotbackup.
Erwin is commonly used for database design tools, support a large number of databases, but not support MySQL, probably because few companies use MySQL bar, but MySQL is actually very good.
In order to be able to use Erwin to perform physical design
One, MySQL: index in B-Tree format save
The memory storage engine can select either a hash or a btree index, and the hash index can only be used for = or equality comparisons.
1. Normal index: CREATE index on TableName (List of columns)
ALTER
For beginners of SQL, the concept of null values often creates confusion, and they often assume that null is the same thing as an empty string. This is not the case. For example, the following statements are completely different:
Mysql> INSERT into
My environment is sempron3300+ 512 memory
The software environment is the Windows 2003server Enterprise Edition Sp1+apache HTTP Server 2.0+MYSQL5+PHP5+MYSQL5
I was just going to discuz! EXP is a software package that maximizes the level of discuz!
Some of the limitations described in this article apply to all storage subroutines, that is, stored programs and stored functions. Some restrictions apply only to stored functions and not to stored programs.
All restrictions on the storage function
It seems that few people are talking about paging, are we all addicted to limit m,n?
In the case of indexing, limit m,n speed is sufficient, but when searching for complex conditions,
where somthing ORDER by Somefield+somefield
MySQL searches the
Why MySQL statements are Legal in a Procedure body
What is a MySQL statement that is legal in the stored procedure body?
What kind of SQL statement is legitimate in a MySQL stored procedure? You can create a statement that contains inserts, Update,
Connection MySQL database failed frequently, what is the main cause? A year ago, I developed a Web site, rented Linux under the Php+mysql virtual space, has been working normally.
Nearly half a year, but frequent connection database failure error
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