XAMPP is an environment (PHP+APACHE+MYSQL) software that can quickly create web sites, if there are many projects, Using 127.0.0.1 or localhost access is cumbersome and not easy to remember, you can use the domain name virtual directory to achieve
I want to use PHP and MySQL, but how do I install and run it? What is the most basic thing I should know in order to make a simplePhp-mysql application work? This is a basic tutorial. No weird code, just a few basics. To put it another way, there
MySQL Installation
1, download the MySQL source package through the official website. http://dev.mysql.com/downloads/Click MySQL Community Server, select Source Code, click Generic Linux
(architecture independent), compressed download after TAR
MySQL tutorial Add new user and modify password method
Format: Mysqladmin-u username-P Old password password new password
1, to root add a password ab12. First enter the directory Mysqlbin in DOS, and then type the following command:
Recommendation I: null value does not necessarily occupy space
Here I first give you a literacy. Some database tutorial administrators think that null values do not occupy system resources, in fact, this is a mistaken understanding. They do not
MySQL Tutorial common command set
Create database name; Create a database tutorial
Use DatabaseName; Select Database
Drop database name deletes databases directly, without alerting
Show tables; Show Table
Describe TableName; Detailed
The following query selects all records and its date_col value is within the last 30 days:
MySQL Tutorials > select something from tablewhere To_days (now ())-To_days (Date_col)
DayOfWeek (date)Returns the week index of date (1= Sunday, 2 =
MySQL tutorial temporary tables and memory tables create query deletions and considerationsThe temporary table and the engine of the memory table are different, the temporary table defaults to the MyISAM, and the memory table is memory, the
In fact, tell the MySQL tutorial interpreter, whether the command is over, whether MySQL can be executed.By default, delimiter is a semicolon;. In a command-line client, if a line of commands ends with a semicolon,Then, after the carriage return,
MySQL tutorial several ways to export Excel files
Method One
PHP tutorials with mysql command and shell
SELECT * into outfile './bestlovesky.xls ' from Bestlovesky where 1 the ORDER by id DESC limit 0, 50;
Method Two Bestlovesky.xls is opened in
1) for tables of the Myisam type, you can import a large amount of data quickly using the following methods. Alter table tblname disable keys;Loading the dataAlter table tblname enable keys;These two commands enable or disable the update of
I. Syntax GROUP_CONCAT ([DISTINCT] expr [, expr...] [order by {unsigned_integer | col_name | expr} [ASC | DESC] [, col_name...] [SEPARATOR str_val]) It can also be simply understood Group_concat ([DISTINCT] field to be connected [Order by asc/DESC
EnvironmentMySQL version:Mysql> select version ();+ ---- +| Version () |+ ---- +| 5.6.30-log |+ ---- +1 row in set (0.05 sec)Ensure that the master and slave nodes have been synchronizedSlave_IO_Running: YesSlave_ SQL _Running:
This method only describes how to save the table name (data is not recovered). If you want to restore the original data, use extundelete to restore the file and put it back.In addition, it is suitable for storing the full-backup frm and idb files
Save the following code as aaa. bat@ Echo offEcho.Echo MySQL database backupEcho *****************************Echo.Echo today is % date %Echo time is % time %The echo command for deleting folders is rd/s/q d: \ decode.Echo command to delete all
Table A: See the following figure.Table B: As shown in the following figure: To output the order number of status = 6 under master_id, the output result is as follows: The statement adopted at the beginning is: select count (. order_id) from a left
After MySQL is installed on VPS, the default user is root @ localhost. The simplest way to add a new MySQL User is:Execute the following statement in phpmyadmin (add points at the end of the statement; no ):Grant all privileges on DBNAME. * to
I have been using Ubuntu for a long time and used to install it online. In centos, use rmp package to install it first, and record the following steps:1. Check and uninstall MySQL installed on the local machineRpm-qa | grep-I mysqlCheck
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service