数据库之Mysql
文章平均质量分 78
alonewolf2009
这个作者很懒,什么都没留下…
展开
-
CentOS 6.x下重置MySQL 5.7密码
本人环境为MySQL 5.7 + CentOS 6.3。1. 编辑MySQL配置文件/etc/my.cnf[plain] view plain copy找到[mysqld],在下面添加一行skip-grant-tables 2. 重启MySQL[plain] view plain copyservice mysqld restart 3. root用户登录MySQL,提示密码直接回车[plai...转载 2018-05-14 12:38:34 · 392 阅读 · 0 评论 -
linux系统下MySQL表名区分大小写问题
问题如下:比如上图中的PERSON表,查询SQL语句中如果表名是小写,就会报错说person表不存在。因为Linux环境下的MySQL数据库的表名默认是区分大小写的,可以查看Linux上的MySQL的配置文件/etc/my.cnf:[root@VM_219_131_centos tomcat7]# cat /etc/my.cnf [mysqld]datadir=/var/lib/mysqls...转载 2018-05-14 23:55:04 · 310 阅读 · 0 评论 -
centos 6.2 Mysql卸载
1:查看MySQL是否安装:方式1:?1234567891011[root@localhost usr]# yum list installed mysql*Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirror.neu....转载 2018-05-24 09:02:57 · 188 阅读 · 0 评论 -
centos yum安装 mysql8.0
1.我的环境2.添加在线Mysql源 cd /etc/yum.repos.d/# Enable to use MySQL 8.0[mysql80-community]name=MySQL 8.0 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/6/x86_64/enabled=1gpgcheck=0g...原创 2018-05-24 09:52:30 · 3214 阅读 · 0 评论