This is the first day of the formal learning of PHP, so, want to do here about the environment to build knowledge, combined with the class teacher's notes and their own understanding and problems
8.1 MySQL Function libraryPHP functions. Functions used in PHP to operate the MySQL function libraryCommon functionsMysql_connect ("Host name/IP", "username", "password")---> Build php connection to MySQL, return resources---->Mysql_error () returns
In this example, the installation method of MySQL chooses the binary package installation scheme, MySQL replication with the semi-synchronous replication scheme"1" Installation mysql-5.6.31 to all data nodes are installed on MySQL, the installation
After CentOS 7, the default source for Yum uses mariadb instead of the original MySQL, so there have been some changes to the installation method:Download source for MySQLwget
Where the user manages user data:All users in MySQL are stored in the user table in the system database (MySQL)--regardless of which database users are stored here.The initial contents of the table are as follows:To create a user:Form:Create user '
View the downloadable version of the MySQL database available on YumYum grep MySQLInstalling the MySQL client Server server via YumYum Install -y mysql-server mysql Mysql-develInstall complete to view the installed versionRpm-qi Mysql-serverAfter
Sometimes MySQL can not completely uninstall, this time must be removed by some means of the registry and some residual files, and then can be re-installed to succeed!1, Control Panel-"All Control Panel item--" program and function, uninstall MySQL
1, manually register, uninstall, start, stop the MySQL serviceOriginal URL: http://jingyan.baidu.com/article/647f0115b007887f2048a810.htmlManually register the MySQL service.Enter the DOS window and navigate through the directory to enter the
Today in debug MySQL there are some pits. Need to be recorded.# These is commonly set,=e:\mysql\mysql-5.7.16-winx64\mysql-5.7.16=e:\mysql\mysql-5.7.16-winx64 \mysql-5.7.16-winx64\data #bind-address=127.0.0.1=3306= ....The above sentence
Review code discovery, colleague MySQL Bulk insert data is implemented by iterating with a for loop, inserting the list each data single time. It is equivalent to inserting n data in bulk, and the database connection and inserting operations are
It is important to note that a function is used in an SQL statement because it is possible that each statement will be called, even if each record in the table is called.Pay attention to the conversion, will consume a lot of performance, even the
2 Modifying the character set of a database and tableALTER DATABASE MAILDB default character set utf8;//modify the character set of the databasesALTER TABLE mailtable default character set utf8;//modify the character set of the tablesIf you want to
SQL (Structure query Language structured queries language)1. Data definition language (Language, DDL)The database management system provides a data definition language definition database involving various objects, defining data integrity
First, MySQL IntroductionWhen it comes to databases, we mostly think of relational databases, such as MySQL, Oracle, SQL Server, and so on, which are very easy to install on Windows, and if you want to install a database on Linux, I have to
GrammarDate_format (Date,format) The date parameter is a valid day. format Specifies the date/time in which the output is formatted.The formats you can use are:
format
Description
%a
Abbreviated Week name
Keyboard ESC clear Command \c Cancel commandLogin mysql-ucountname-p enter cmd command invalid in operating system environment variable register MySQLShow all databases show databasesDisplay table use dbname;show tables;Display table structure
The data type of the front-end learning database and the Data Type of the learning databasePrevious
Data type refers to the data features of columns, stored procedure parameters, expressions, and local variables. It determines the data storage
MySQL technology insider-SQL programming Reading Notes (2)-data types, java programming ideas Reading Notes
The selection of data types affects the performance of applications that interact with the database.
1. Generally, if a page can store as
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