LiuYuan's Blog
This is LiuYuan's Blog
Toggle navigation
LiuYuan's Blog
Home
Docker相关
MySQL相关
Ansible相关
维护脚本相关
Windows系统脚本
Python相关
Nginx相关
About Me
Archives
Tags
MySQL安装
2024-06-19 15:25:42
39
0
0
admin
CentOS7安装 rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm yum install mysql-community-server systemctl start mysqld systemctl enable mysqld grep "A temporary password" /var/log/mysqld.log mysql_secure_installation 其他常用命令 #清空某张表的数据 TRUNCATE TABLE tablename; #给某用户某个数据库的权限 grant all on dbname.* to 'username'@'%'; flush privileges; #给某个用户所有数据库权限 GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;
Pre:
查询harbor仓库自动更新脚本
Next:
Dcokerfile/docker-compose
0
likes
39
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Footer
Table of content