SQLServer database management common SQL and T-SQL statements
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is located
Exec master .. xp_msver
3. View database
Grant permissions in a database are not the same as permission management in the system.Grant is generally assigned to individuals, to all or a single database additions and deletions and other permissions, not to mention.The Rights management system constructs the table in
Label:In the process of optimizing the application of the database class, we learned a principle that the thought should be grabbed from the structure design, in the following order:1. Database logical structure design and physical design.2. Database object Deployment and SQL code authoring.3. Database instance perform
commands to create the table in turn Python manage.py makemigrationsPython manage.py Migrate To create a site user: Python manage.py Createsuperuser Start Django:pyhon manage.py runserver 0.0.0.0:9999 This allows you to log on to the site on your browser http://192.168.177.130:9999/admin Enter the user and password you just created to enter for management: Editing the admin.py file in the/mysite/myapp directory will appear in the site page: #-*-Cod
Label:MySQL master-Slave synchronization architecture is currently one of the most used database architecture, especially the load is relatively large site, so for master-slave synchronization management is very important, novice often in the case of master-slave synchronization errors do not know how to start, This article is a detailed description of MySQL mast
Mysql must know meeting Reading Notes-security management and database maintenance,Security Management
You can view all user information in the user table of the mysql database.Create a user account
CREATE USER ben IDENTIFIED BY 'p@$$wOrd'
Rename a user account
RENAME USER b
Tags: Common SQL Grant default 127.0.0.1 change IP command to specify the modification of IP13.4 MySQL User management
Create a user and authorize
[[emailprotected] ~]# mysql -uroot -p‘taoyuan‘ //登录
mysql> grant all on *.* to ‘user1‘@‘172.0.0.1‘ identified by ‘123456‘;
#创建user用户并授予其所有权限“*.*”(通配符)
#第一个*
Tags: processing create settings article LTE color Gravity table name SDNAttention:1. Fixed-length character types take up more space than non-fixed-length character types, but because fixed-length character types do not require length processing when setting field values, it is faster to process.Therefore, the use of fixed-length character types will improve system performance for relatively fixed length data.2, change the existing data sheet. Syntax
It is a good idea to install and upgrade the required dependent libraries prior to installation, see Using Yum Update installation dependencies in CentOS
First, uninstall the system in the central some MySQL
First check to see if MySQL is installed in the system, and uninstall it first if installed.
#查看系统中是否有以rpm方式安
After the operating system is reinstalled, the mysql database recovers bitsCN.com. the carnumber database is used as an example:
1. back up the following files
Data/ib_logfile0
Data/ib_logfile1
2. back up the following folders (including all files)
Data/carnumber
3. delete the carnumber folder
4. Register the se
The crontab system regularly backs up MySQL databases every day and uses the crontab system to regularly execute backup files and save the backup results by date.
1. create the path to save the backup file/mysqldata
# Mkdir/mysqldata
2. create the/usr/sbin/bakmysql file.
# Vi/usr/sbin/bakmysql
Input
Rq = 'date + % Y % m % d'
Tar zcvf/mysqldata/mysql1_rq.
Next: Architecture Design: System Storage (4)-Block storage scheme (4)1. mysql OverviewFrom the beginning of this paper, we will discuss the performance optimization scheme and cluster scheme of the relational database based on the block storage scheme. The selection of a relational database will target the most widely
, localhost by default--no-data,-D: Export table structure only--password[=password],-p[password]: password--port=port_num,-P Port_num: Port number when making TCP/IP connections--quick,-Q: Quick Export--tables: Overwrite--databases or-b option, followed by parameter is considered as table name--user=user_name,-u user_name: User name--xml,-X: Export as XML fileExtract:Import data:Since mysqldump exports a complete SQL statement, it is easy to import the data using the
Chapter2. anatomy database system (3) bitsCN.com
Link
Is MySQL a relational database system? Many database experts will tell you that there are only a few real relational database syste
as root here:
@>mysql-u root-p@> Password
First create a database (TestDB) for the user:
Mysql>create database TestDB;
The authorization test user has all the permissions of the TestDB database (all permissions for a
MySQL Utilities provides a range of MySQL server and database management tools. Full support for MySQL5.1 and above versions, also compatible with MySQL5.0 versions, although some features are not supported. MySQL4.0 version is not supported.In the following sections, you will describe administrative tasks such as requ
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.