MySQL is a very lightweight DBMS, lightweight, flexible, more suitable for small and medium-sized data storage and architecture. MySQL is used by tens of thousands of sites, since the 5 version, has been supporting the cursors, triggers,
http://blog.csdn.net/clare504/article/details/9569347For a long while, or this solution solves the problem:
The MySQL 1366 error is roughly described below
1. SQL Error:1366:incorrect String value: "\xe8\xaf\xa6\xe7\xbb\x86 ..." for column '
MySQL start service and exit service
net start MySQL startup MySQLnet stop MySQL stop MySQL
MySQL Login and logout
Mysql-u User name-p password-p port number-H server addressPort number defaults to 3306 server address defaults to
Add action: INSERT INTO One INSERT INTO statement can insert multiple recordsINSERT into insert_student values (one, ' Jet Lee ', ' Male ', '), ("Buruce Lee ', ' Male ', '", "Jacky", 25), (45 , ' crystal ', ' Famale ', 26); INSERT into supports
Need to use, tidy up a bit. (change to lowercase for easy viewing)View Table creation statement: show CREATE TABLE table_name;Change table name: ALTER TABLE old_table rename [to] New_table;//renameModify table data type: ALTER TABLE table_name
Delete from Uauth.user Join UAUTH.USERSP On uauth.user.id = Uauth.usersp.userid where Uauth.usersp.SPid = #{spid,jdbctype=varchar}When doing the associated delete such SQL statements, MySQL errorid= "DELETEBATCHUSEROFSP" parametertype=
1. after decompression, add MySQL to the environment variable path:D:\Java\mysql2. Modify the My-default.ini file# These is commonly set, remove the # and set as required. Basedir = D:\Java\mysql DataDir = d:\java\mysql\data# Port = .... # server_id
//Unpack the zip file.Warning & Error//Can ' t open the Mysql.plugin table. Please run Mysql_upgrade to create it. For more information, see Help and Support Center at http://www.mysql.com.Gtid table is not a ready-to-be used. Table '
1. Start MySQL service: net start MySQLTurn off MySQL service: net stop MySQL2, Login mysql:mysql-uroot-p (Enter, password +enter)Mysql-h Server IP address (default localhost)-p port number (default 3306)-u user name-p password3, display database:
1. Get the database connection and query code PackageConnectionmysql;Importjava.sql.Connection;ImportJava.sql.DriverManager;ImportJava.sql.ResultSet;Importjava.sql.SQLException;Importjava.sql.Statement; Public classConnectionmysql {//database
Create two databases and two tables respectivelyStudy Library-zone TableTeaching Library-area TableSQL Script ****//1. Create the Teaching Database area data tableCreate database teaching; CREATE TABLE ' area ' ( ' id ' int (one) not NULL
The first thing to know is what kind of shell you use for Mac OS x, using commandsEcho $SHELLIf the output is: CSH or TCSH, then you are using C Shell.If the output is: bash,sh,zsh, then your use may be a variant of the Bourne shell.Before Mac OS X 1
Recently deployed and tested a MYCAT+4 percona+tokudb horizontal split cluster, the previous application is to write a class of citation data into this library, only insert operation, the previous few days running state is also better.Since
Install mysqldata library in linux --tar.gzpackage decompress installation method, mysqltar.gz
There are multiple installation methods for the mysqldata library. This document only describes how to decompress the tar.gz package on the linux
Mysql limit paging query optimization statement, mysqllimit
When querying by page in mysql, limit queries are generally used, and orderby is usually used in queries. However, when the table data volume is large, for example, the query statement
Database in php I. MySQL optimization policy overview, mysql Overview
The other day I saw an article about the PHP bottleneck. In many cases, it is not the PHP itself, but the database. We all know that in PHP development, adding, deleting,
Mysql Common commandsMysql operation connection Mysql $ mysql-h host address-u user name-p password Reset mysql user password update user set password = password ("password") where user = 'username '; the Database operation displays show databases
Installation of mysqldata library --tar.gz package in linuxThere are multiple installation methods for the mysqldata library. This document only describes how to decompress the tar.gz package on the linux server and first download the compiled
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