MYSQL basic statement 1. createdatabase database name; Create Database Type 2. showdatabase; show all database information 3. use Database Name; select database 4. dropdatabase database name; delete database 5. createtable table name (field name 1
This article mainly describes the operations on the actual application of the MySQL database. However, you must first log on to the MySQL database. The following operations are performed at the actual prompt of the MySQL database, and each related
1. Connect to MYSQL.Format: mysql-h host address-u user name-p User Password1. Connect to MYSQL on the local machine.First, open the DOS window, enter the mysql \ bin directory, type the mysql-u root-p command, and press enter to prompt you to enter
1. Connect to MYSQLFormat: mysql-h host address-u user name-p User Password1. Connect to MYSQL on the local machine.First open the DOS window, then enter the directory mysql/bin, then type the command mysql-u root-p, and press enter to prompt you to
There is no MySQL database after MySQL is installed. After mysql is installed, it is found that there are only two databases: mysqlgt; showdatabases;
There is no MySQL database after MySQL is installed. After mysql is installed, it is found that
MySQL Command sorting
A total of 39 commands, brilliant
1. display the list of databases on the current database server:Mysql> show databases;Note: the MySQL database contains the MySQL system information. We change the password and add new users to
ViewDatabaseSelect version (), current_date ();
Show databases for the database;
Select use db_1 for a database;
Create db_1 for creating a database;
Insert into db_1 values (...);
Select database () is used for the selected database ();
From:
Http://www.simple-talk.com/ SQL /database-administration/constraints-and-the-test-driven-database/Constraints and the test-driven database14 December 2011by
Sam bendayan
Bad Data always seems to appear when, and where, one least expects it.
Test environment: MySQL 5.0.45[Note: You can use mysql> select version (); in MySQL to view the database version]Organization: Leo1. Connect to MySQL.Format: mysql-H host address-u user name-P User Password1. Connect to MySQL on the local
Mysql common command Collection [absolute essence] bitsCN.com
1. connect to MYSQL.
Format: mysql-h host address-u user name-p user password
1. connect to MYSQL on the local machine.
First open the DOS window, then enter the directory mysql/bin,
MySQL table sub-file storage and engine modification sub-file storage table: my. ini add configuration: innodb_file_per_table1 ?? Set the engine to innodb: use Database Name? Engineinnodb; alter TABLE name accountengineinnodb ;?
MySQL table
How to connect to mysql using cmd
Connection: mysql-h host address-u user name-p user password (note: u and root do not need to add spaces, the same is true for others)Disconnected: exit (press enter)
Create authorization: grant select on database. *
Use PHPLIB to access multiple databases. PHPLIB is an extension library of PHP. we can use it to perform various operations on the database. However, if you want to use multiple databases, it will not work.
PHPLIB is an extension library of PHP. we
Use Database control to save the user status id, so that you can only log on to one machine. here, single sign-on means logging on to one place, other systems do not need to log on again, just as 12306 logs on to the computer and exits on the mobile
You may have a website where some pages need to process databases. You may want to use PHPLIB, but do not want to change the existing database to adapt to it. Here is the answer to your dream. PHPLIB and multiple databases. To implement it, you need
This article summarizes some common mysql commands.
This article summarizes some common mysql commands.
Test environment: mysql 5.0.45
[Note: You can use mysql> select version (); in mysql to view the database VERSION]
1. Connect to MYSQL.
Format:
This article mainly describes the operations on the actual application of the MySQL database. However, you must first log on to the MySQL database. The following operations are performed at the actual prompt of the MySQL database, and each related
View the character set mysqlshowcharacterset supported by the current mysql database; view the character set of the current database: mysqlshowvariableslike % char %; 1. Connect to MYSQL: mysql-h host address-u user name-p user password or: mysql-u
IntroducedOften people ask how the profile tool should be used? There is no way to get a poor performance SQL problem. Since I turned to MySQL myself for almost 2 years without using profile, suddenly profile became a little rusty and had to be
Read Catalogue
One: Advantages of triggers
II: The role of triggers
Three: the classification of triggers
Four: how triggers work
V: Create a trigger
VI: Manage triggers
Concept:?? A trigger (trigger) is a method
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.