Method OneOpen the My.ini of the MySQL tutorial installation directory, adding default-character-set= in [client] and [mysqld] respectively gb2312When you create a new table, select character set and collation as gb2312 and Gb2312_chinese_ci
#1045 unable to log on to the MySQL server is usually a password error
Because forgot the MySQL password, need to reset the password, but under Debian reset MySQL password some trouble, tried a lot of ways to succeed, now recorded:
Use the
In view of the stability of the system and the value of resource utilization, if you play a period of time in the Web panel or a key package of VPS enthusiasts, it is still recommended to play their own compile the installation site environment. One
MySQL tutorial log cleanup and MySQL log analysis
SET NOCOUNT onDECLARE @LogicalFileName sysname,@MaxMinutes INT,@NewSize INTUse tablename-the name of the database tutorial to manipulateSelect @LogicalFileName = ' tablename_log ',-log file
MySQL tutorial development must see skillsFirst, the basis1, Description: Create a database tutorialCreate DATABASE Database-name2, Note: Delete the databaseDrop Database dbname3, Description: Backup SQL Server-Device to create backup data
Use
This article is about MySQL Tutorial create index and index Delete Oh, this tutorial is about MySQL 5.0 supported index types, and simply introduces the original design of the index, which is the most common tool used in the database tutorial to
MySQL Tutorial thread_cache_size optimization method
This in fact in the Database Tutorial configuration optimization does not play a big role, let's look at a set of parameters
MySQL thread_cache_size default configuration thread_cache_size=8
To randomly generate string code as follows:
Define a random string method in the MySQL tutorial, and then call this method in the SQL statement.
Random string function definition method:Select Round (Round (rand (), 4) *10000);It would be nice
Create DATABASE syntax
Create DATABASE Tutorial Name
Used to create a database and name it. If you want to use the CREATE DATABASE, you will need to get the DB Create permission.
ALTER TABLE syntax
alter [ignore] table Tbl_name
ALTER
MySQL Tutorial SQL determines whether a string exists in another string
Locate (Substr,str,pos)
Returns the substring substr the first occurrence of the string str, if SUBSTR is not inside STR, returns 0.
Mysql> Select locate (' Bar ', '
How to add a new user to your MySQL tutorial database tutorialThis article is mainly about how to add new users to your MySQL database oh, because a MySQL may have a lot of databases we want to give each different database open permissions, open the
MySQL tutorial Creating a database Tutorial commands and statements
Creating a DatabaseThe CREATE DATABASE statement is used for creating databases in MySQL.
GrammarCREATE DATABASE database_name In order for the PHP tutorial to execute the above
Forget the MySQL tutorial password how to modify
1. Log in as a system administrator.
2. Open cmd-----net start to see if MySQL starts. Stop the net stop MySQL when you start.
3. My MySQL is installed under the D:usrlocalmysql4bin.
4. Skip
Linux Platform
Monitoring the SQL statements executed by MySQLIn order to do well with the development of performance and functional testing, easy to monitor the execution of the SQL statement,
You can add the following in/etc/mysqld:Log
Recently, I took over a running project and encountered a problem when pulling it to the local machine for running. When I inserted the database, the error Incorrect integer value: "for column 'id' at row 1 was reported.Literally, the auto-increment
Slow_query_log is a parameter that records SQL execution for more than a certain period of time.Slow query log related variables1. Command line parameters:-- Log-slow-queriesSpecifies the location where the log file is stored, which can be null, and
Method 1Import Excel to the mysql data table. First, create a new data table and create a new field. The number of fields is consistent with the number of table columns in excel.Save the Excel file as a csv or txt file and place it on the
The code is as follows:Copy code // Link to the database$ Conn = @ mysql_connect ("localhost", "root", "88888888") or die ("link error ");/*The mysql_connect () function opens a non-persistent MySQL connection. SyntaxMysql_connect (server, user,
The source code of MySQL5.5 is compiled using cmake, which is different from the previous version. The following is a complete compilation and installation process:1. DownloadWget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.28.tar.gz/from/
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