Software Required: XAMPP 2.5
After downloading a dummy installation, it is recommended to change the installation directory to a disk other than the C disk (the default site directory and MySQL data are in the installation directory)
I am here to
Reason analysis and solution of automatic stop of MySQL tutorial
Start Menu-run-services.msc
Find the MySQL service and double-click
Click on the Recovery tab
First failure: Default is "Do not operate", change to "restart service".
Adding "0"
MySQL Tutorial Database Tutorial Backup
Using the MySQL database, the most common and most important is the database backup, so we first introduced the database backup. For database backup, also very formal database backup method, with other
MySQL tutorial mysql_escape_string and mysql_real_escape_string DifferenceMysql_real_escape_string This function is to connect to the database tutorial before it can be used, while mysql_escape_string does not have this requirement, but does not
When I set up the Database tutorial field, when I encountered the number type, such as int (4), I once thought it was length, then I found that no matter how much I set, it did not affect the length of the inserted data, and I searched the relevant
The meaning of the limit 10000,20 scan satisfies the condition of 10020 lines, throw away the preceding 10000 lines, return the last 20 lines, the problem is here, if it is limit 100000,100, need to scan 100100 rows, in a high concurrent application,
To modify the My.ini file under the MySQL Tutorial Server installation directory, add the following line to the Mysqld section set-variable=lower_case_table_names=0 (0: Case sensitive 1: Case insensitive) finally restart the MySQL service.
Creating indexes using the CREATE index
Create [unique|fulltext|spatial] index index_name [using Index_type] on tbl_name (index_col_name,...) index_col_name : col_name [(length)] [ASC | desc]
Delete index using DROP index
Drop INDEX Index name
MySQL tutorial stored procedures view, modify, delete, create method
This article mainly introduces about the MySQL stored procedure view, modify, delete, create the method Oh, here are four examples to prove the operation of the stored
MySQL tutorial how to export a database tutorial
This article collects most of the web site about MySQL Export database method, because yesterday a friend sent an e-mail to ask me how MySQL exported the database, the following we summarized a
SELECT * FROM table limit 0,10
If the number of pages passed in is greater than the total number of pages, an error message is displayed
if ($page > $pagenum | | $page = = 0) {echo "Error:can not found the page."Exit}
$offset = ($page-1) *
When you work on a very large table, you may occasionally need to run many queries to obtain a small subset of a large amount of data, instead of running these queries on the entire table, instead, MySQL can find a few required records each time,
This article introduces how to use the group_concat function in MySQL through examples, such as select group_concat (name ).Group_concat function in MySQLThe complete syntax is as follows:Group_concat ([DISTINCT] field to be connected [Order by
Today, when I tested the shell script to automatically configure the MySQL master-slave cluster, I found that the slave database had a 1593 error. After troubleshooting for half a day, I found that the server-id in the configuration file was not
After MySQL is installed in the morning, the following error is reported during startup:Starting MySQL. Manager of pid-file quit without updating file. [FAILED]I tried various methods found by Gu Jie in sequence, and found that you only need to
For English, it is very convenient and efficient to use the FULLTEXT attribute of MySQL to achieve full-text search. However, you must pay attention to some things during use.First, add the FULLTEXT attribute to the field to be searched (assuming
MySQL 5.7 GA version is released, which means that MySQL 5.7 can be used in the production environment from now on. The official team will fix any problems immediately.Main features of MySQL 5.7:Better performance: it provides better optimization
First, you need to use PHP to connect to the MySQL database:# Connecting to a databaseThe following is the simplest PHP code for connecting to the MySQL database: The code is as follows:Copy code $ Link = mysql_connect ("localhost", "root",
In the ASP era, if we want to build a database-driven web site, then you can choose a Microsoft SQL SERVER database with a lot of money or choose to spend a lot of time looking for an ACCESS database that achieves unified performance and stability,
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