随笔分类 - mysql
摘要:https://mirrors.tools.huawei.com/mysql/Downloads/MySQL-8.0/ [root@xxx download]# tar -xvf mysql-8.0.24-1.el7.aarch64.rpm-bundle.tar [root@xxx download
阅读全文
摘要:mysql修改和查看字符集(数据库全局、schema、表、列) 转自:https://blog.csdn.net/haogexiaole/article/details/80739503 一、查看字符集 1.查看MYSQL数据库服务器和数据库字符集 mysql> show variables lik
阅读全文
摘要:HOST is not allowed to connect to this mysql server host主机不能访问本机的mysql服务,原因需要连接非本机的mysql的时候,默认host是localhost,我们需要将这个mysql连接权限设置成%,更改方法直接通过软件更改和命令行更改:在
阅读全文
摘要:Linux6 将 mysql5.1 升级到 mysql8.0(yum源) 由于我的mysql是5.1版本的,导入SQL时,字符编码是utf8mb4的,mysql得版本5.5以上才支持,故低版本的报错。 utf8与utf8mb4(utf8 most bytes 4) MySQL 5.5.3之后增加了u
阅读全文
摘要:SQL函数 来源:https://www.runoob.com/sql/sql-function.html SQL Aggregate 函数 SQL Aggregate 函数计算从列中取得的值,返回一个单一的值。 有用的 Aggregate 函数: AVG() - 返回平均值 COUNT() - 返
阅读全文
摘要:如果希望在每次插入新记录时,自动地创建主键字段的值。可以在表中创建一个 auto-increment 字段。MySQL 使用 AUTO_INCREMENT 关键字来执行 auto-increment 任务。默认地AUTO_INCREMENT 的开始值是 1,每条新记录递增 1。 主键又称主关键字,主
阅读全文
摘要:SQL 转载自https://www.runoob.com/sql/sql-tutorial.html 本文只用于个人学习笔记用 SQL 是用于访问和处理数据库的标准的计算机语言。 SQL,指结构化查询语言,全称是 Structured Query Language。 SQL 让您可以访问和处理数据
阅读全文
摘要:一、安装mysql 下载mysql5.6版本 rpm -ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm yum -y install mysql-server 查看安装情况 修改mysql配置文件/etc/m
阅读全文
摘要:mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题 mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题 提示意思是不能用gran
阅读全文
摘要:Mysql主从复制 1,环境 主服务器master:192.168.10.23 从服务器slave:192.168.10.18 2.安装Mysql 避免安装之后可能出现的各种异常,请清理掉MySQL的历史安装文件, yum方式安装的MySQL1.1 终端输入yum list installed my
阅读全文