[Linux] configure the LAMP environment in Ubuntu
It is said that a good job of LAMP, that is, Linux + Apache + Mysql + php, is already equivalent to an intermediate php program level. Of course, you need to have a good job of php, and then you need
Php exports and imports the MySQL database using the command line, and the command line mysql
Export the database using the command line:1. Go to the bin folder under the MySQL Directory: directory from cd MySQL to the bin folderFor example, if the
The most common method for mysql database backup is to directly use the mysqldump command, but the disadvantage of this command is that it takes a long time for big data, therefore, many webmasters directly use the copy database for fast backup and
Install mysql and linuxmysql in Linux
Install mysql in Linux
-- @ Liang WP
Abstract: Install mysql in Linux.
1. Download mysql
1. Search for mysql in Baidu. One of the results is marked with MySQL Downloads. Click to go To the mysql official
Interaction data between Android client and Java Server (I) Construction of SAE server, androidsae
Usually, the testing server runs on your own PC and is a local server built using Tomcat or IIS. In fact, Sina cloud platform SinaAppEngine is also
PHP Program Optimization recommendations, execution speed is too slow
This post was last edited by Zhuzhaodan on 2013-06-12 18:06:26
Existing
Four-level thesaurus 4000 wordsTXT document in the following format
Accent N. accent, Tone,
1. Check the character setSHOW VARIABLES WHERE variable_name like ' character\_set\_% ' OR variable_name like ' collation% ';2. mysql Character set settings• System Variables:–character_set_server: Default internal operation character
MySQL import. sql files and Common commands
To import *.sql scripts directly in MySQL Qurey Brower, is the command to execute SQL files in MySQL without executing multiple SQL commands at once:Mysql> source
Note: All of the following actions are performed under the CentOS 6.5 x86_64 bit system.
#准备工作 #
Before installing MySQL, make sure that you have installed the following types of underlying components using Yum (if the system has been taken, you
PHP Environment Configuration under UNIX
Required Software Php-3.0.14-win32.zip
Php-3.0.14-win32.zip
Mysql-shareware-3.22.32-win.zip
All software is installed under/export/home/guoj/and can be in other directories.
installing MySQL
GZIP-DC mysql-3.22
1. Back up MySQL:
Export a library to a SQL file
The code is as follows
Copy Code
Mysqldump db_name >/home/hx/backup/name.sql-uroot-p
Back up multiple libraries (using the-b parameter)
The code is
Let's look at the timing backup method in Windows
Method a mysqldump Backup database
Create a new file, such as Mysqldump.bat.Write the following code to the file Mysqldump.bat
The code is as follows
Copy Code
@echo
Download mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz from official website
Create a MySQL user
[Root@master home]# useradd mysql
[root@master data]# echo ' mysql ' |passwd--stdin MySQL
Change the user's password for MySQL.
PASSWD: All
MHA IntroductionMHA is a MySQL, a Japanese MySQL Daniel written in Perl failover scheme to ensure the high availability of the database system. During downtime (usually within 10-30 seconds), complete failover, deploy MHA, avoid master-slave
The functionality provided through MySQL
Export
Command:
Mysqldump-u user name-P database > database. sql
Example:
The code is as follows
Copy Code
Mysqldump-u root-p db1 > Db1.sql (Backup of database db1 to Db1.sql)
LAMP installation ConfigurationConfiguring the EnvironmentOperating system: Redhat Enterprise as 4Packages installed: httpd2.0.4, mysql4.1,libxml2.6.16, zlib1.2.1.2,gd2.0.28, libpng1.2.7Description: The various installation instructions on the
To import *.sql scripts directly in MySQL Qurey brower, you cannot execute multiple SQL commands at once, and execute SQL file commands in MySQL:
Mysql> source C:\\test.sql;
Additional MySQL common commands:
(a) connection MySQL:
Format: mysql-h
For example, how to use the command line to implement MySQL export Import database
One, command line export database
1. Into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directorysuch as: CD C:\Program files\mysql\mysql
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.