![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
渴望飞的鱼
这个作者很懒,什么都没留下…
展开
-
Mysql格式化输出
Mysql格式化输出转载 2017-03-18 10:03:21 · 5774 阅读 · 0 评论 -
MySQL5.7创建用户并授权,设置允许远程连接
目录一. 创建用户命令:说明:例子:二. 授权:命令:说明:例子:注意:三.设置与更改用户密码命令:例子:四. 撤销用户权限命令:说明:例子:注意:五.删除用户命令:六、查看当前登陆用户七、查看数据库一. 创建用户命令:CREATEUSER'username'@'host'IDENTIFI...转载 2019-07-11 09:59:35 · 2272 阅读 · 1 评论 -
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
今天 创建mysql用户的时候报错报错如下:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'indentified by 'hybris'' at line 1...原创 2019-07-11 09:56:38 · 7590 阅读 · 0 评论 -
Windows下cmd窗口连接mysql
mysql安装完毕后,命令窗口连接需配置path环境变量,值为mysql安装的目录/bin。如图,Windows下搜索cmd,回车在DOS命令窗口输入 mysql -hlocalhost -uroot -p回车 进入mysql数据库mysql -hlocalhost -uroot -p其中-h表示服务器名,localhost表示本地;-u为数据库用户名,root是mysql默认用...转载 2019-07-11 09:43:40 · 703 阅读 · 0 评论 -
Windows下通过MySQL Installer安装MySQL服务
MYSQL官方提供了Installer方式安装MYSQL服务以及其他组件,使的Windows下安装,卸载,配置MYSQL变得特别简单。1. 安装准备1.1 准备MySQL安装包百度云盘共享链接:https://pan.baidu.com/s/1qh1Gbl-GJOQoMzu5u1rwwg密码: a0r8windows版本安装包下载1.2 检查操作系统类型检查操作...转载 2019-07-11 09:33:03 · 8125 阅读 · 1 评论 -
安装mysql 出现错误Unable to update security settings. Access denied for user 'root'@'localhost' 的解决
安装mysql出现问题以前安装过mysql,卸载了之后重新安装,当安装到mysql server的时候出现Unable to update security settings. Access denied for user 'root'@'localhost' (using password: YES)错误提示。参考只有这篇http://dba.stackexchange.com...转载 2019-07-11 09:29:26 · 1413 阅读 · 0 评论 -
Mysql根据时间显示前几条数据。
Mysql语句是:select * from Product as p order by p.addtime desc limit 6 Hibernate的DAO类中的语句是:from Product as p order by p.addtime desc limit 6在mybtis映射可以这样写: /** * @version 创建时间:2018年4月19日17:03:35 * @int...原创 2018-04-19 17:29:51 · 2058 阅读 · 0 评论 -
pl/sql developer执行光标所在行
pl/sql developer执行光标所在行转载 2017-12-08 09:41:20 · 990 阅读 · 0 评论 -
SQL语句执行效率及分析(note)
关于数据库性能优化测试转载 2017-07-19 18:20:43 · 392 阅读 · 0 评论 -
Mysql切换用户,登录用户
学习文档:https://www.runoob.com/mysql/mysql-connection.html(1)首先退出用户exit(2)其次,切换用户,登陆新创建的用户命令mysql -u hybris -p接着会弹出要求你输入密码,输入密码后即可登陆。...原创 2019-07-11 10:34:21 · 23114 阅读 · 2 评论