In the previous share of this article: CentOS 7.0 under the use of Yum installation of MySQL method, small set feel not detailed, today to everyone through this article to make a supplement, interested friends can refer to.
1. Download the MySQL
First, view the database encoding format
Mysql> Show variables like ' character_set_database ';
Second, view the data table encoding format
Mysql> Show CREATE table ;
Specifying the character set of a database when creating
1 Port Judgment ==> only for database local use
Method for judging the 1:if condition of law
[Root@oldboy scripts]# cat check_db01.sh
#!/bin/sh
#created by Oldboy
#mail: oldboy521@gmail.com
portnum= ' Netstat-lnt|grep 3306|wc-l '
if
The prerequisite for establishing a foreign key is that the column in this table must be the same as the foreign key type (the foreign key must be the outer primary key).
Foreign key action: causes two tables to be associated, the foreign key can
Before you look at this article, make sure you've mastered some of PHP's knowledge and the basics of MySQL's query operation.
As a Web program, you often have to deal with countless numbers of data, for example, members of the data, the article
MySQL is a multiuser, multi-threaded SQL database server. It can be used in relational database of various popular operating system platforms, which has a distributed database management system of client/server architecture. MySQL is fully
Absolutely original
Test Address: Http://www.mlmm.cn/mypage/?name=ceshi
Test page code:
Copy Code code as follows:
php+ajax Dynamic Generation Pull-down Menu
{$regionss (People's Republic of China)}
1. The Date_format () function is used to display date/time data in different formats.
The format parameter is formatted with
%a
Abbreviated Week name
%b
Abbreviated month name
%c
month,
Automatic backup MySQL 5.0 has three scenarios:
Backup Scenario One: generate a complete. sql file directly through the mysqldump command
Step 1: Create a batch
(Note: Root is the MySQL default user name, AAAAAA is the MySQL password, bugtracker
1. Direct Input SQL execution
Mysql> Select Now ();+---------------------+| Now () |+---------------------+| 2013-09-18 13:55:45 |+---------------------+1 row in Set (0.00 sec)
2. Execute the prepared SQL script
Mysql> Source H:/1.sql+------------
1, Change Table method. Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from "localhost" renamed "
1, Change Table method.
Your account may not be allowed to log in remotely, only in localhost. This time as long as the computer in localhost, login mysql, change the "MySQL" Database in the "User" table in the "host" item, from "localhost" renamed
The most troublesome problems and solutions that occur during the installation of MySQL
After installation, startup is not successful, on the card, the program is not responding.
How to resolve:
Find the MySQL installation directory
#Path
A station may experience gb2312 (GBK,BIG5) to UTF8 conversion process, which will encounter a lot of problems. The site is too big how to do it, can only step by step. It would be much easier to complete the conversion of the data first, with
1. With MSSQL Enterprise Manager, open the structure of the table (design table), local use phpMyAdmin according to the structure of one to create, while optimizing the table data fields, table creation completed.
2. Use Enterprise Manager to export
Because of the recent project, there is such a demand, is the database of two data interchange, after a long time to finish, here to write a simple example, made a record.
1. Create tables and records for testing
CREATE TABLE ' product ' (
Combined with the information on the Internet, personally to install a MySQL, installed version is win7x64 5.7.16.The following issues occurred during the installation and resolved:
"The MySQL service failed to start the service and did not report
How is the system classified without CGI?
I haven't made an original article in the last few days, all in the architecture server, write CGI program
The beginning took some days to Perl, and later found that the regular expressions of the scripting
One, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, Example 1: Connect to MySQL on this machine.
First in the Open DOS window, and then into the directory Mysqlbin, and then type the command mysql-uroot-p, enter
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