Mysql> select version (); view the mysql versionMysql> select current_date (); view the current MySQL dateMysql> select version (), current_date (); view the mysql version number and current dateMysql> show databases; displays the existing
1. Export the entire database
Mysqldump-u user name-p--default-character-set=latin1 Database name > exported file name (database default encoding is latin1)
Mysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql
2. Export a table
Mysqldump-u user name-P
3.3 Creating, deleting, and selecting databasesMySQL provides three database-level statements: Create database for creating databases, drop database to delete databases, use to select the default database.1. CREATE DATABASE StatementCreating a
Objective
DDL (data definition Language) Statements: Data definition statements that define different data segments, databases, tables, columns, indexes, and other database objects. The commonly used statement keywords include create, drop,
Sometimes, when the graphical interface cannot be used, we need to manually delete the database, with the following steps:First, manually delete the file system database1. Stop monitoring, prevent new connections, and at the same time, the database
Data types in MySQLMySQL has three major classes of data types, number, date \ Time, string, and more detailed sub-types in the three categories:
Number Type
integers: tinyint, smallint, mediumint, int, bigint
Floating-point
MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
This section introduces various SQL statements. This section describes database-level SQL statements, operations such as viewing, creating, and deleting. Use SHOW to display the existing database Syntax: SHOWDATABASES [LIKEwild] If the LIKEwild part
Tutorial on manually deleting a database in Oracle
1. manually delete a file system database
1. Stop listening and OEM
The Code is as follows:
$ Lsnrctl stop listener_name
$ Emctl stop dbconsole
2. Obtain information about data files, log files, and
1. database creation syntax createdatabase database name on [primary] (data file parameter [, n] [file group parameter]) [LOGON] (log file parameter [, n]) note: [] indicates the optional part, and {} indicates that you need to create some database
[SQL chapter -- DATABASE/EVENTS], -- databaseevents[SQL chapter] [SQL statement sorting: -- Based on MySQL5.6] [sorted: DATABASE/EVENTS] [will be improved] directory:1. Data Definition Statements:1.1 create database, alter database, show databases 1.
How to build an IBM PowerLinux application on an Intel x86 server
IBM®The practical value of Advanced Toolchain for PowerLinux cross compiler is that developers can compile and build IBM Power Architecture on a development platform they are already
MySQL database technology (13) [image] 3.3 create, delete, and select a database
MySQL provides three DATABASE-level statements: c r e ate database is used to create a DATABASE, drop database is used to delete a DATABASE, and USE is used to select
Mysqldump is a client program that MySQL uses to store databases. It mainly produces a series of SQL statements that can be encapsulated into a file that contains all the SQL commands needed to rebuild your database, such as CREATE database,create
In the last two articles (MySQL backup and restore cold standby, MySQL backup and restore real-world use Lengbei), we mentioned the use of cold standby in the Lengbei and real environment. So starting from this article, let's look at the hot standby.
MySQL Common terminal commands--Link DatabaseMysql-uroot-pmysql--Don't show password * * * *Mysql-uroot-pPassword--Exit the databaseQuit/exit/ctrl + DExit (Remember this) * * * * *Quit/exit Ctrl+d--The SQL statement needs a semicolon at the
one of the ways that PostgreSQL master-slave replication is implemented:Standby-based asynchronous stream replication, which is a nice feature provided after the postgresql9.x version (2010.9), similar functionality is available in Oracle after 11g
Transfer from: http://www.cnblogs.com/chenmh/p/5300370.html introductionIn daily maintenance work often need to export the data, and mysqldump is to export the data process is a very frequent use of a tool, it comes with a lot of function parameters,
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.