Common commands for MySQL database operations and Common commands for mysql
Common commands for MySQL database operationsDOS Connection database1. Install MySQL to configure the environment2. Run the cmd command. net start mysql3. Find the root
Mysql common command lines
Mysql common command lines
First, start and stop the mysql Service
Net stop mysql
Net start mysql
Second, log on to mysql
Syntax: mysql-u user name-p User Password
Enter the mysql-uroot-p command, press enter and prompt
Mysql's common basic command summary and default account permissions and modifications have been simply using the database to store data, and windows is also used bad. many commands cannot be remembered when used. so, change to LINUX! No longer use
MySQLSchema design (4) JQuery in MySQL: common_schema jQuery
BitsCN.com
We always have to live in a certain framework. the composition of the framework comes from law, morality, and potential rules. Most people only want Ansheng to live. after all,
[Translation] MySQL5.0 user manual-Chapter 3: Quick StartSome time ago, I translated some of the content in chapter 1, but the popularity is not high. It may be because the topic in Chapter 1 cannot raise everyone's interest.The second chapter
Create/drop/grant/revoke Roles and PrivilegesHive Default authorization-legacy Mode has information about these DDL statements:
CREATE ROLE
GRANT ROLE
REVOKE ROLE
GRANT Privilege_type
REVOKE Privilege_type
DROP ROLE
This article mainly gives you a detailed tutorial on installing and operating mysql in Ubuntu. For more information, see install mysql on ubuntu.
1. sudo apt-get install mysql-server
2. apt-get isntall mysql-client
3. sudo apt-get install
The common methods are as follows:
Show tables like '% tb_bp_d_case % ';
SelectTABLE_NAMEFromINFORMATION_SCHEMA.TABLESWhereTABLE_SCHEMA= 'Dbname' andTABLE_NAME= 'Tablename ';
Permission issues need to be considered
MySQL authorization is divided
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and then press
View simple Create, delete, preview, etc.A view is a virtual table whose contents are defined by the query. Like a real table, the view contains a series of column and row data with names. However, the view does not exist in the database tutorial in
View users, databases at the command line:
mysql> Use GBK #进入gbk数据库Database changedMysql> Show tables; #查看gbk数据库的所有表Empty Set (0.00 sec)
mysql> use Ultrax;Reading table information for completion of table and column namesYou can turn off the
MySQL Master
MySQL master-slave is also called replication, AB replication. Simply said that A and b two machines from the back, on a to write the data, the other B will follow the writing data, the two data in real-time synchronization.
MySQL Master
MySQL master-slave is also called replication, AB replication. Simply said that A and b two machines from the back, on a to write the data, the other B will follow the writing data, the two data in real-time synchronization.
Installing MySQL on Ubuntu is very simple and requires just a few commands to complete.1. sudo apt-get install Mysql-server2. Apt-get Isntall mysql-client3. sudo apt-get install Libmysqlclient-devDuring installation, you will be prompted to set a
9.1 Creating a DatabaseCommand syntax: Create database Note Library name cannot start with a numberIn the case of MySQL default character set, the database test is as follows:A. Creating a database named ZBF[email protected] 08:3120->create database
In the original LNMP environment[Email protected] ~]# vim/etc/init.d/mysqld #查找数据库的安装路径[Email protected] ~]# cd/data/mysql/[[email protected] mysql]# ls[Email protected] mysql]# tar czvf discuz.tar/data/mysql/discuz/#备份之前的discuz Forum database table.
has been just plain use of database storage data, also by Windows spoiled, a lot of commands used when not remember, so, replace Linux system! No longer use GUI to manage database! Also want to learn more about MySQL, from the Rights Management
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.