Php exports and imports the MySQL database using the command line, and the command line mysql. Php uses the command line to export and import the MySQL database, and the command line mysql command line to export the database: 1 to enter the bin
SQLite database management commands
1. Create a database
Start the command line and run the following command to open the shell mode CLP:
Sqlite3 test. DB
Although we provide the database name, if the database does not exist, SQLite does not
MySQL export database table contains data commands:
Mysqldump-uroot-proot ABC>/var/ABC. SQL;(MySQL user name: Root Password root database: ABC export to:/var/ABC. SQL)
MySQL export database tables do not contain data commands:
The installation and configuration steps in Linux are as follows:1. First install MySQLInstall MySQL 5.5.22 on the two MySQL servers 192.168.1.169 (master) and 192.168.1.168 (slave). Because the installation process is relatively simple, there are
MySQL database export and import process will occur many unpredictable errors, this article has sorted out some common errors and corresponding solutions, encounter similar situation friends can refer to, I hope to help you
mysql command line
Today, a classmate asked me if I can transfer the database, I thought that should be a new table, but that efficiency is too low, and also need to import a lot of records in the table, trouble, so think of MySQL bin in two instructions, mysqldump
mysql command line export database: 1, into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directoryAs I entered the command line: CD C:\Program files\mysql\mysql Server 4.1\bin(or add the directory directly to the environment
sqlplus into the database
Export write commands directly at the command Line 1. Export your own table exp userid=scott/tiger@myoral tables= (emp,dept) file=/opt/e1.dmp 2. Export tables for other scenarios If users want to export tables for
See if Jdbc:oracle:thin:@192.168.88.205:1521:test can access, Telnet 192.168.88.205 1521 try
1 Creating user statements, assigning permissions
Create user username identified by password;
Grant CONNECT,RESOURCE,DBA to user name;
2 Import Export
Let's take a look at the Oracle data pump Export Import Example
1, first set up a directory:
Create directory directory name as ' a directory on the database server ', such as:Create directory alias as ' d:\ server directory name ';Put the
To modify a new password:Use MySQL;Update user set password= ' new password ' where user= ' username ';Flush privileges; Update permissionsAdd new users:Grant SELECT, Insert,update,delete on database. Table to username @ Login host identified by '
--Backing up the database--Database System user accountSystem/adminuser--View the users of the Oracle databaseSELECT * from All_users;--View the version number of the Oracle databaseSELECT * from V$version;Backing up dataSqlplus Adminuser/[email
Website:Program on:Web server 192.168.1.100 abovedatabase in: MySQL server 192.168.1.123 aboveImplementation Purpose: add a MySQL backup server (192.168.1.124), as a MySQL server (192.168.1.123) from the server, the two MySQL servers to achieve dual-
MySQL command line Export Import database, database backup restoreMySQL command line export database:1. Go to the Bin folder in the MySQL directory: cd MySQL to the Bin folder directoryAs I entered the command line: CD C:\Program files\mysql\mysql
several common methods of 1.mysqldump:(1) Export the entire database (including data in the database)Mysqldump-u username-p dbname > Dbname.sql (2) Export database structure (without data)Mysqldump-u username-p-D dbname > Dbname.sql (3) Export
Linux Environment:First, look at MySQL data storage path:ps-ef|grep MySQL Ii. Enter the MySQL data storage path identified above:CD var/lib/mysql (data storage path) Export Database with mysqldump command1. Export Data and table
First, SQL optimization1.* and column names, use column names as much as possible-reason: If you use *,oracle first to resolve what column names are represented in the 2.where parsing order is right-to-left-the and condition tries to put the dummy
Mysqldump Backup common usage1. Export the entire database (including data in the database)Mysqldump-u username-p dbname > Dbname.sql2. Export database structure (without data)Mysqldump-u username-p-D dbname > Dbname.sql3. Export a data table in the
Due to background reasons, the master-slave synchronization is to be based on the MySQL 5.1 version, master-slave synchronization is mainly a database read and write access to the original database heat is too large, need to be used from the library
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.