![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mysql
请叫我Ziv
这个作者很懒,什么都没留下…
展开
-
JDBC连接Mysql
首先要下载Connector/J地址:http://www.mysql.com/downloads/connector/j/这是MySQL官方提供的连接方式:解压后得到jar库文件,需要在工程中导入该库文件我是用的是Eclipse: JAVA连接MySQL稍微繁琐,所以先写一个类用来打开或关闭数据库:DBHelper.java转载 2017-09-18 16:07:22 · 416 阅读 · 0 评论 -
mysql允许root远程连接
2、支持root用户允许远程连接mysql数据库grant all privileges on *.* to 'root'@'%' identified by '密码' with grant option;flush privileges;原创 2017-09-27 08:41:07 · 666 阅读 · 0 评论 -
Mysql时间排序
mySQL里desc和asc的意思 desc是descend 降序意思 asc 是ascend 升序意思 sql = "select 表内容名 from 数据库表名 Putout=true order by 读取的排序表名 asc"例如sql = "select * from user where Putout=true or原创 2018-01-24 11:38:16 · 54740 阅读 · 0 评论 -
PowerDesigner16.5中name和code取消自动关联
PowerDesigner中,但修改了某个字段的name,其code也跟着修改,这个问题很讨厌,因为一般来说,name是中文的,code是字段名。 解决方法如下: 1、选择Tools->GeneralOptions...菜单,出现General Options对话框。 2、从Category中选择Dialog项。 3、取消右边“Name to Code mirroring”复选框。...原创 2018-06-29 01:47:34 · 667 阅读 · 0 评论 -
Mysql 主从复制 之宝塔篇
1. 在两台服务商分别按照好宝塔 及其数据库2.分别在两台服务器上创建数据库 2.1 假设一号服务器:192.168.0.1 二号服务器:192.168.0.22.3 对于宝塔来说也不用配置什么东西 直接 使用ssh链接工具 进入服务器 并且登录root用2.4 重要的来了!首先 给你一号服务器创建的用户 进行权限升级mysql> grant all pri...原创 2018-11-01 23:09:56 · 4108 阅读 · 0 评论 -
MHA集群报错:The slave I/O thread stops because master and slave have equal MySQL server UUIDs
MHA集群报错:The slave I/O thread stops because master and slave have equal MySQL server UUIDs实验环境操作系统:CentOS Linux release 7.3.1611 (Core)数据库系统: MySQL 5.7.19问题重现在虚拟机上配置MySQL的MHA集群时,在配置主从复制模式的时候发现配置...原创 2019-09-19 17:27:44 · 1056 阅读 · 0 评论