当前位置:网站首页>MySQL5.7及SQLyogV12安装及使用破解及常用命令
MySQL5.7及SQLyogV12安装及使用破解及常用命令
2022-07-28 15:45:00 【骑鱼~过海】
文章目录
命令安装
1.创建my.ini配置文件
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port=3306
# 设置mysql的安装目录
basedir=D:\MySQL\MySQL5.7\mysql-5.7.37-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\MySQL\MySQL5.7\mysql-5.7.37-winx64\data
# 允许最大连接数
max_connections=1000
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# (数据库启动的时候 跳跃权限表的限制,不用验证密码,直接登录),保存
#skip-grant-tables
#设置包的大小
max_allowed_packet = 100G
命令使用
配置环境变量及开启服务


开启服务
net start mysql 开启服务
net stop mysql 停止服务
2. (数据库启动的时候 跳跃权限表的限制,不用验证密码,直接登录),保存
#skip-grant-tables
3.修改密码:
修改user表
update mysql.user set authentication_string=PASSWORD(“123456”) where user=“root” and host=“localhost”
4.开放权限:
$ mysql -uroot -p
Enter password:
mysql> use mysql
Database changed
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的密码' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
5.开放的mysql导入的数据包大小
- 加在mysqld后:
永久开放:
max_allowed_packet = 100G
临时开放:
set global max_allowed_packet=524288000
查看:
show VARIABLES like '%max_allowed_packet%’;
6.SQLYog及MySQL5.7安装包下载
https://download.csdn.net/download/Tian208/85389667
7.命令
show database ; 显示数据库
create database name; 创建数据库
use databasename; 选择数据库
drop database name 直接删除数据库,不提醒
show tables; 显示表
describe tablename; 表的详细描述
select 中加上distinct去除重复字段
mysqladmin drop database name 删除数据库前,有提示。
select version(),current_date; 显示当前mysql版本和当前日期
exit退出
边栏推荐
- Im im development optimization improves connection success rate, speed, etc
- Sort 5-count sort
- Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
- Reset grafana login password to default password
- ANSYS二次开发 - MFC界面调用ADPL文件
- Li Hongyi, machine learning 5. Tips for neural network design
- 配置web服务器步骤详细记录(多有借鉴)
- The video Number finds the golden key, and Tiktok imitates the latecomers
- Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
- QT packaging
猜你喜欢

MySQL view event status statements and modification methods

Each account corresponds to all passwords, and then each password corresponds to all accounts. How to write the brute force cracking code

ANSA二次开发 - 抽中面的两种方法

快速掌握 Kotlin 集合函数

Kubeedge releases white paper on cloud native edge computing threat model and security protection technology

Huada chip hc32f4a0 realizes RS485 communication DMA transceiver

排序1-插入排序与希尔排序

Optimization of network request success rate in IM instant messaging software development

LeetCode-学会对无序链表进行插入排序(详解)

在vs code上配置Hypermesh二次开发环境
随机推荐
Several methods of HyperMesh running script files
PHP gets the applet code, and the applet jumps with parameters
LeetCode每日一练 —— 160. 相交链表
关于web对接针式打印机问题,Lodop使用
“蔚来杯“2022牛客暑期多校训练营3 H.Hacker SAM+线段树/DP/分治(不带修查区间最大子段和)
Some suggestions on optimizing HyperMesh script performance
Redis series 4: sentinel (sentinel mode) with high availability
"Wei Lai Cup" 2022 Niuke summer multi school training camp 3 a.ancestor lca+ violence count
I can only sell the company after the capital has been "cut off" for two years
解决uniapp等富文本图片宽度溢出
Fx3 development board and schematic diagram
PHP image synthesis technology
LwIP development | socket | DNS domain name resolution
大地坐标系转换火星坐标系
快速掌握 Kotlin 集合函数
HyperMesh自动保存(增强版)插件使用说明
“蔚来杯“2022牛客暑期多校训练营3 ACFHJ
ANSA二次开发 - Visual Studio Code上搭建ANSA二次开发环境
HM secondary development - data names and its use
curl无输出返回空白或者null问题解决