The following articles mainly introduce the actual procedures for importing and exporting MySQL databases, as well as the script files we need to use in actual operations. The following is a detailed description of the article, we hope your future
Php and MySQL (basic operations) and phpmysql basic operationsPHP connection to MySQL
Before accessing the MySQL database, we need to first connect to the database server and connect to the server. We use the mysqli_connect () function.
Before using
1. Install and configure Mysql: the system installed in this article is Centos6.3: The code is as follows:Copy code Yum list mysql # check whether there is an installation packageYum install mysql # install the mysql clientYum list mysql-server #
Official notes1.NodeJS declared its goal to be "designed to provide a simple way to build scalable network programs."2.node is a lightweight, scalable JS operating environment with event-driven and non-blocking I/O mechanisms based on the Chrome V8
I. Log4net INTRODUCTIONLog4net is Apache next open source project, we can control the output destination of log information (database, console, text document, file). A variety of log information output modes are defined in log4net.My biggest
Common MySQL Operation maintenance commands
1. Change Password:
Mysqladmin-u root-p Password The new password
Then enter the old password.
2. Export the entire database:
Mysqldump-u user name-p database name > exported file name
3. Import
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be without spaces, others are the same)Disconnect: Exit (Enter)
Create authorization: Grant SELECT on database. * To User name @ login host identified by \ "Password
First, start and exit1, into the MySQL:Start the MySQL Command line Client (MySQL's DOS interface) and enter the installation password directly. The prompt at this point is:mysql>or open the terminal and enter the SQL statement:Mysql–uroot–p123
2,
To import *.sql scripts directly in MySQL Qurey brower, you cannot execute multiple SQL commands at once, and execute SQL file commands in MySQL:
Copy Code code as follows:
Mysql> source D:/myprogram/database/db.sql;
Export the Mysqldump tool that you want to use with MySQL, basic usage:shell> mysqldump [OPTIONS] database [tables]If you do not give any tables, the entire database will be exported.By executing mysqldump--help, you can get the options table
1. Status of all instances and services
$ srvctl Status database-d ORCL
Instance ORCL1 is running on node linux1
Instance Orcl2 is running on node linux2
2, the status of a single instance
$ srvctl Status instance-d orcl-i Orcl2
Instance Orcl2
ORACLEDBCONSOLE[SID] Service Introduction.
The ORACLEDBCONSOLE[SID] service is responsible for launching Oracle Enterprise Manager under the Windows platform, introducing this service from Oracle 10g, and starting with Oracle 10g, Oracle's
http://welcomyou.javaeye.com/blog/371189
Ja16sjistilde
Japanese_japan. Ja16sjistilde
Oracle Nls_lang Summary
Keyword: Oracle Nls_lang character Set character set to get a database from the customer, the client's database server is Ja16sjis, and
Remote access
Mysql-h localhost-uroot-p
Modify password
Mysqladmin-uroot-proot Password Admin
If the original password is empty
Mysqladmin-uroot Password Admin
Display version number, status, process information, etc.
Mysqladmin Version
In the DOS MySQL installation directory/bin directory with the following command:
Mysqldump-u user name-p database name > exported file name
Then use the following command
#test is the name of the library
The code is as follows
Export the Mysqldump tool that you want to use with MySQL, basic usage:
The code is as follows
Copy Code
Shell> mysqldump [OPTIONS] database [tables]
If you do not give any tables, the entire database will be
1, install the configuration MySQL: This article installs the system is Centos6.3:
The code is as follows
Copy Code
Yum List MySQL # see if there are any packages installedYum install MySQL # install MySQL clientYum List
1. Export the entire database (–hex-blob for BLOB data, prevent garbled and import failures)
Mysqldump-u user name-p database name > exported file name
The code is as follows
Copy Code
Mysqldump-u
Recently arrived at the company to work, a general understanding of the company's process, found that the database is very badly needed to make up, the former school in some databases are SQL Server, as well as some increase, delete, change, check
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.