Vue Project Combat 1

Source: Internet
Author: User
Tags mysql commands node server


VUE Project Combat 1

--------------------------------------------------

Server.js


Current directory to start two services one back end of a front end


1. Start back-end services

Node Server.js


2. Start the front-end service

NPM Run Dev


10:22:00


--------------------------------------------------


Lazy Loading

Vue-lazyload

Requirejs


--------------------------------------------------

Mysql

Route/index.js

--------------------------------------------------

MySQL Database

1. Installation

Pwd:root

2 Viewing the database

show databases;


3. Create the database:
CREATE DATABASE JD;

Delete: Drop database JD;
Drop database Mysqldata;

4. Use the database using JD;

(Associated database)

SOURCE D:\vip\xxxxxx\xxxx\jd.sql;


SOURCE F:\VUE Project \vue combat \jd.sql;

F:\VUE Project \vue Combat \jd.sql


SOURCE F:\VUE Project \vue combat \jd.sql;

SOURCE F:\jd.sql;

--------------------------------------------------

53;00:22

47:42

--------------------------------------------------

MySQL Common commands Summary

1. Use the show statement to find out what database currently exists on the server:

Mysql> SHOW DATABASES;

2. Create a database Mysqldata

mysql> CREATE DATABASE Mysqldata;

3. Select the database you created

mysql> use Mysqldata; (press ENTER to appear database changed operation success!)

4. See what tables exist in the current database

Mysql> SHOW TABLES;

5. Create a database table

Mysql> CREATE TABLE MYTABLE (name VARCHAR), sex CHAR (1));

6, the structure of the display table:

Mysql> DESCRIBE MYTABLE;

7. Add a record to the table

mysql> INSERT INTO MYTABLE values ("HyQ", "M");

8. Load data into a database table (for example, d:/mysql.txt) in text mode

mysql> LOAD DATA LOCAL INFILE "D:/mysql.txt" into TABLE MYTABLE;

9. Import. sql file commands (for example, D:/mysql.sql)

Mysql>use database;

Mysql>source D:/mysql.sql;

10. Delete a table

Mysql>drop TABLE MYTABLE;

11. Clear the Table

Mysql>delete from MYTABLE;

12. Update the data in the table

Mysql>update MYTABLE set sex= "F" where name= ' HyQ ';

--------------------------------------------------

Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 5
Server VERSION:5.7.3-M13 MySQL Community Server (GPL)

Copyright (c) and/or, Oracle, its affiliates. All rights reserved.

Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names trademarks of their respective
Owners.

Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.


Type "Help" or "H" to ask for help. Type "C" to clear the current input statement.


For information on MySQL products and services, visit:
http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:
http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other products, visit:
https://shop.mysql.com/

List of all MySQL commands:
Note that all text commands must is first on line and end with '; '
? (\?) Synonym for ' help '.
Clear (\c) Clear the current input statement.
Connect (\ r) reconnect to the server. Optional arguments is DB and host.
Delimiter (\d) Set statement delimiter.
Ego (\g) Send command to MySQL server, display result vertically.
Exit (\q) exit MySQL. Same as quit.
Go (\g) Send command to MySQL server.
Help (\h) Display.
Notee (\ t) Don ' t write into outfile.
Print (\p) print current command.
Prompt (\ r) Change your MySQL prompt.
Quit (\q) quit MySQL.
Rehash (\#) Rebuild completion hash.
Source (\.) Execute an SQL script file. Takes a file name as an argument.
Status (\s) Get status information from the server.
Tee (\ t) Set outfile [To_outfile]. Append everything into given outfile.
Use (\u) use another database. Takes database name as argument.
CharSet (\c) Switch to another charset. Might is needed for processing binlog with Multi-Byte charsets.
Warnings (\w) Show warnings after every statement.
Nowarning (\w) Don ' t show warnings after every statement.
Resetconnection (\x) Clean session context.

For server side help, type ' help Contents '


Please note that all text commands must first be online and end with ';

;

--------------------------------------------------


Project directory

Route
Index.js

This is the interface document.

The configuration data is also in this file

--------------------------------------------------

Back-end services to be loaded with something

Something to pack.

CNPM Install Cookie-parser


CNPM Install Cookie-session


CNPM install MySQL

$ node Server.js
Listening on port 3333


Okay, OK.

--------------------------------------------------

View Portal file Webpack.config.js look inside this file.


--------------------------------------------------


Main.js

Lazy Loading


Http://www.cnblogs.com/xyyt/p/7650539.html


--------------------------------------------------

192.168.16.103

Vue Project Combat 1

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.