随笔分类 -  MySQL

摘要:1.数据源 2.pom.xml 3.jdbc 4.web.xml添加如下配置 5.连接池监控 启动服务,访问 http://服务IP地址:端口号/项目地址/druid/index.html 阅读全文
posted @ 2018-01-17 16:53 MIC2016 阅读(2301) 评论(0) 推荐(0)
摘要:1.开启和关闭 1.1.开启 service mysql start 1.2.关闭 service mysql stop 1.3.重启 service mysql restart 2.登录 2.1.密码明文 语法:mysql -u用户名 -p用户密码 举例:mysql -uroot -p123456 阅读全文
posted @ 2018-01-15 14:46 MIC2016 阅读(31021) 评论(0) 推荐(4)
摘要:1、字符串函数 1.1、CONCAT(str1,str2,...): 返回来自于参数连结的字符串。如果任何参数是NULL,返回NULL。可以有超过2个的参数。 1.2、LENGTH(str): 返回字符串str的长度 1.3、LOCATE(substr,str): 返回子串substr在字符串str 阅读全文
posted @ 2017-08-14 17:04 MIC2016 阅读(229) 评论(0) 推荐(0)
摘要:1、卸载系统自带的MySql 1.1、查看该操作系统上是否已经安装了mysql数据库 [root@xhTest-1 ~]# rpm -qa | grep mysql 1.2、删除原mysql数据库 1.2.1、普通删除模式 [root@xhTest-1 ~]# rpm -e mysql-libs-5 阅读全文
posted @ 2017-07-04 18:03 MIC2016 阅读(656) 评论(0) 推荐(0)