
Mysql
花花世界芸芸众生
这个作者很懒,什么都没留下…
展开
-
sysbench压测postgresql(mysql同理)
准备创建表和数据:sysbench --db-driver=pgsql --time=1 --threads=1000 --report-interval=5 --pgsql-host=192.168.1.35 --pgsql-port=5001 --pgsql-user=testpgs --pgsql-password=123456 --pgsql-db=test_db --tables=1 --table_size=1000000 oltp_read_write --db-ps-mode=disab.原创 2021-03-12 11:36:00 · 1456 阅读 · 0 评论 -
which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod
vim /etc/my.cnf mysqld下面添加一行代码:sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION重启服务service mysqld restart原创 2020-07-30 12:06:56 · 1779 阅读 · 0 评论 -
You must reset your password using ALTER USER statement before executing this statement.
mysql> alter user user() identified by '123456';mysql>flush privileges;vim /etc/my.cnfdefault_password_lifetime=0service mysqld restart原创 2020-05-29 11:22:11 · 274 阅读 · 0 评论 -
Windows10 卸载mysql
mysql官网下载地址download重装mysql需要彻底卸载mysql1、控制面板----管理工具----服务-----关闭mysql2、卸载mysql服务,可以使用mysql自带的也可以通过控制面板卸载3、删除mysql相关文件,mysql安装目录删除4、清理注册表ctrl + r输入regedit 删除一下文件夹HKEY_LOCAL_MACHI...原创 2019-12-18 11:55:39 · 218 阅读 · 0 评论 -
Windows10 安装mysql
mysql官网下载地址download一、安装mysql1、双击:mysql-installer-community-5.7.28.0 安装程序2、选择安装类型(按个人)3、我只需要安装server 选择了custom 再next4、展开mysql server子项,我的电脑是64的选择mysql server 5.7.28 -64再点击绿色箭头 点击next5、...原创 2019-12-18 11:43:45 · 162 阅读 · 0 评论 -
Mysql 报Table has no partition for value xxx
### Error updating database. Cause: java.sql.SQLException: Table has no partition for value 737759### The error may involve xxx-Inline### The error occurred while setting parameters### SQL: INSER...原创 2019-12-17 14:40:43 · 8578 阅读 · 0 评论 -
mysql 创建用户、分配权限、删除用户
1、登录mysql[root@zadce29s8xdazvt1cmel22z ~]# mysql -uroot -pEnter password: mysql>2、查看数据库mysql> show databases;+--------------------+| Database |+--------------------+| in...原创 2019-10-12 17:32:17 · 230 阅读 · 0 评论 -
在 CentOS7 上安装 mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
1、下载官方安装包 mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar2、在/usr/local目录下创建mysql文件夹 mkdir mysql3、上传mysql安装包,这里可以采用FTP进行上传。上传位置为/usr/local/mysql4、解压安装包tar -xvf mysql-5.7.26-1.el7.x86_64...原创 2019-10-12 14:33:21 · 5204 阅读 · 3 评论 -
Mysql数据迁移
此方法为同库数据迁移 tableA为备份表 tableB为原始表 create_time为时间跨度INSERT INTO tableA SELECT * FROM tableB t WHERE t.create_time >= '2019-06-01 00:00:00' and t.create_time <= '2019-06-30 23:59:59';...原创 2019-06-19 16:09:17 · 202 阅读 · 0 评论