http://blog.csdn.net/wh62592855/article/details/6777753There are several cryptographic functions under MySQL.PASSWORD (): Creates an encrypted password string that is appropriate for the security system inserted into MySQLEc The encryption process
Installation
Server installation. Use command: sudo yum-y install Mysql-server
Client Installation. Use command: sudo yum-y install MySQL
Set boot up
Sudo/sbin/chkconfig--add mysqld
Sudo/sbin/chkconfig
First, create a cursorCursors are created with the Declare statement. As shown in the following example:CREATE PROCEDURE test2 () Begin cursortest cursor for selectfrom allintersection;end;Second, open and close cursors
Open
Install discuz! under PHP After completion point into BBS error:discuz! Info: MySQL Query Errortime: 2014-11-6 8:23amScript:/discuz7/bbs/index.phpSQL: SELECT type from [table]usergroups WHERE groupid= ' 7 'Error: Table ' Discuz. [table]usergroups '
Full-text indexing has been supported since MySQL 4.0, but the default minimum index length for MySQL is 4. If the English default value is reasonable, but the majority of Chinese words are 2 characters, which results in less than 4 words can not be
View Apache version/usr/sbin/apachectl-vHttpd-vinstallation directory, using APACHECTL-VView MySQL versionMysql–help | grep distribMysql-vMysql/bin/mysql-u root-p-E "select version ()"
/bin mysqladmin Version
View Linux
MySQL compiles the installation from the 5.5 release CMake, not the previous make, so install the CMake and install all of the development pack groups properly:1. Prepare the installation environment first:#cmake:
1.VERSION () Usage: Returns the version of the MySQL server Example: mysql> select VERSION (); + -- ---------+ | VERSION () | + -- ---------+ | 5.6 . 10 | + -- ---------+ 1 row in set (0.00 sec) 2.USER (), System_user ()Usage:
Download the JDBC Driver first:
Transmission Door
Create a database in MySQL
Create DATABASE books;
Create tables, insert data, and more:
Use books;CREATE TABLE book (bookId varchar), BookName varchar (+),
Enter the command under CMD mysql-uroot-penter password:***** First import the library to exist and then use the following command Mysql>source D:demo.sql//import successful import!!! ~~yeah. 1. Export the entire database mysqldump-u user name-p
Learning Purpose: Understanding MySQL the difference between the three different installation methodsLearning content:
There are three types of MySQL installations: source installation, binary installation,rpm installation, respectively.
The type in the MySQL database is defined as "data type (m)":Where the number m in different data types means that the meaning is different.The integer system has limited the range of values, such as tinyint for one byte (8bit) and int for 4
First, define a stored procedure in MySQL: Delimiter//create procedure proc () begin SELECT * from users;end//then, in PHP,//declares a storage space used to store procedure execution return data , the space size 131072 is 128Kdefine
Rotten mud: the basic commands used by the mysql database.
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
1Format of connecting to the database
Mysql-h IP-u user name-p password;
1.1Connect to a remote database
MySQL database startup and Shutdown
MySQL database server usually refers to mysqld, while command line mysql is a mysql client program. These two concepts are often confusing. Generally, the mysql server is started to start the mysqld process.
Mysql permission levelMysql has five levels of permissions:Clobal Level, Database Level, Table level, Column Level, and Routine Level.
1. Clobal Level: Global permissions for the entire mysql database server. Permission on a database in mysql or a
Replace some content of a field in mysql, mysqlreplace
Recently, a friend mentioned how to use SQL to delete some content in a field. So I wrote this article and briefly noted it:
The test table is as follows:
Copy codeThe Code is as follows:Create
Steps for building a mysql master-slave ClusterPrerequisites: Four mysql databases need to be installed on linux, and the corresponding information must be configured. Mysql 01: master mysql 02: slave database slave01 mysql 03: slave database slave02
Mysqlsql Statement Review 2 -- Regular Expression
Here, we will briefly review the usage of Regular Expressions in mysql when filtering data. This mainly refers to an example for each usage or a brief description.
The REGEXP keyword is used to
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