当前位置:网站首页>Use of MySQL
Use of MySQL
2022-07-19 05:36:00 【Lun Zhi】
Cmd Next cmd Next mysql Common database commands
cd E:\phpstudy_pro\Extensions\MySQL5.7.26\bin
stay bin File operation
net start mysql; net stop mysql;
Then input mysql -uroot -p123456 Press enter to enter directly mysql database , Appear to mysql> The beginning indicates that the login is successful
- View all databases show databases;
- Enter a specified database use user;
- View all tables in the specified database show tables;
- Replicated table structure create table New table name like Original table name ;
- Copy the data insert into New table name select * from Original table name ;
- Delete table drop table Table name ;
- If you want to quit mysql database , Input exit; enter
mysql Configuration file for
Windows Next MySQL The configuration file is my.ini, It will be in the root directory of the installation directory
Linux Next MySQL The configuration file is my.cnf, It's usually placed in /etc/my.cnf,/etc/mysql/my.cnf
Turn on binlog journal , And take ROW The way , Turn on master-slave mode as well as logbin File location of
Modify... In the configuration file
log_bin=ON
binlog_format=ROW
server-id=1000
log-bin=/var/lib/mysql/mysql-bin
Change Password
update user set plugin='mysql_native_password',authentication_string=password('123456') where user='root';
Windows Next MySQL The restart of net stop mysql,net start mysql
边栏推荐
- 利用IDE打jar包
- 12.数据仓库搭建之ADS层搭建
- The latest news of spring recruitment in 2022: the average salary of it Internet industry is 18500 yuan
- 对象转map
- Using Flink SQL to fluidize market data 2: intraday var
- Minor problems of GCC compiling C language in ubantu
- Spark核心编程(4)--Spark运行架构
- 微信小程序密码显示隐藏(小眼睛)
- Questions d'entrevue courantes du système d'exploitation
- Rxjs source code analysis (I) observable
猜你喜欢
Talk about 20 negative teaching materials for writing code
mysql的使用
C language & bit field
9. Dim layer construction of data warehouse construction
5.1数据采集通道搭建之业务数据采集通道搭建
指针数组&数组指针
Spark core programming (4) -- spark operation architecture
1. Dongsoft Cross - Border E - commerce Data Warehouse Requirement specification document
Scala primary practice - statistics of mobile phone traffic consumption (1)
The latest news of spring recruitment in 2022: the average salary of it Internet industry is 18500 yuan
随机推荐
二叉树的先序、中序、后序遍历
LiveData浅析
MySQL学习笔记(4)——(基本CRUD)操作数据库中的表的数据
sqlalchemy的两种方法详解
C语言文件的操作
跨域和处理跨域
5. Business analysis of data acquisition channel construction
常量与常量指针
写一个定时自检
gradle自定义插件
Ambari2.7.5 integration es6.4.2
图片的大小限制显示
4. Neusoft cross border e-commerce data warehouse project - user behavior data acquisition channel construction of data acquisition channel construction (2022.6.1-2022.6.4)
微信小程序之计算器
配置tabBar和request网络数据请求
Talk about 12 business scenarios of concurrent programming
7.数据仓库搭建之数据仓库环境准备
[first launch in the whole network] automatic analysis of JVM performance problems
Is the cookie valid for a limited time? How to set cookies? Teach you to set by hand
Table field attribute query