Linux Common Operations Command: One: connect MySQLMysql-uroot-h192.168.1.24-p3306-p Kobe24 #-u: username,-h:ip remote Connection Database,-P: port (Default 3306),-P: password;Two: Common operation:1: Query the current library: show databases;2:
Large web site in order to solve a large number of high concurrency access problems, in addition to the site to achieve distributed load balancing, far from enough. To the data business layer, the data access layer, if the traditional data structure,
Create Database test_db; Create a database named test_db
Use test_db; Enter the TEST_DB database
Show tables; See how many tables are in the database
Drop database test_db; Deleting a database
drop table test01; Delete a table
Delete from
1. Command line login: Mysql-u xxx-p-H localhost-p 3306, enter password, return login2. Get help, helping xxx, \h xxx do not add semicolons at the back3.exit,quit Exit Program4.MySQL Administrator (estimation bias Management) MySQL query Browser
MySQL Default port number 3306View current version of SELECT version ();View current time SELECT now ();View the current user SELECT user ();Statements are terminated with semicolonsCreate a database Biao (set character encoding) Charcter set
Three big data types: numeric, time date, string.valueintegerIs there a signcreate table tab_int(a tinyint unsigned,b tinyint,c SMALLINT,d MEDIUMINT,e INT,f bigint);insert into tab_int values(255,-128,2423,-4323,-14432,4356546);select * from tab_int;
"MySQL" Go MySQL development 36 2012-05-14 14:02:33Category: Linux written in the previous words:It is always after the disaster that the importance of disaster tolerance is remembered;always after the loss, just remember that there was a reminder. (
The modified users are listed as root.first, the root of the original myql password;Method One:Outside the MySQL system, use the Mysqladmin#mysqladmin-u root-p Password "test123"Enter Password: "Enter the original password"Method Two:By logging into
As we all know, the current MySQL version does not support direct recursive query, but through recursive to iterative transformation of the idea, or can be implemented in a sentence of SQL tree recursive query. This is thanks to MySQL allowing the @
MySQL installed under CentOS6 is version 5.1, older, so you want to install the high version of 5.6.26 through the source code.One: Uninstall the old versionUse the following command to check if MySQL Server is installedgrep MySQLSome words are
MySQL stored procedures dynamically create tables and insert dataRecently done a project, the database is using MySQL, for MySQL is not very skilled, but will be simple application, after all, simple SQL statements are still interlinked, but as the
MySQL compilation is troublesome, directly search for the binary package that can not compile1. Download Mysql#cd/USR/LOCAL/SRC#wget http://syslab.comsenz.com/downloads/linux/mysql-5.1.40-linux-i686-icc-glibc23.tar.gz2 . Decompression# TAR-XVZF
1. To optimize the query, avoid full-table scanning as far as possible, and first consider establishing an index on the columns involved in the Where and order by.2. Avoid null-valued fields in the WHERE clause, which will cause the engine to
Recently to test the certificate, the use of MySQL, and then to the system to organize learning, usually work with a lot, relatively scattered. 1. Follow the software:Windows (x86, 32-bit), MySQL server5.1:Http://dev.mysql.com/downloads/installer/5.6
Compile source package MySQLmysql-5.1 includes previous versionsCompilation method and traditional source code package is no different./configure xxxxx && make && make installVersion after mysql-5.5After you configure with CMake, you can install1.
Special NOTE: MySQL database is not case-sensitive1, create the database: creating databasesThinkgamer;2. Delete databases:drop database thinkgamer;3, select a database: Usethinkgamer;4. Create a data table:Mysql>create Table Cyan(-ID INT (3) NOT
1. InstallationSee if you have installed: Yum list installed mysql*See if there is an installation package: Yum List mysql*Install MySQL client: Yum install MySQLInstall MySQL server side: Yum install mysql-server yum install Mysql-devel2. Start &&
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