天下事有难易乎?为之,则难者亦易矣;不为,则易者亦难矣。

标签:Linux

数据库

mysql日志提示“[Warning] IP address ‘xxxx’ could not be resolved: Name or service not known”原因和解决

数据最近总是莫名的挂掉,查看了一下mysql日志,提示[Warning] IP address ‘xxxx’ could not be resolved: Name or service not known,是因为mysql默认会反向解析DNS,对于访问者Mysql不会判断是hosts还是ip都会进行dns反向解析,频繁地查询数据库和……继续阅读 »

往事如烟 5年前 (2020-04-10) 5282浏览 0评论 1个赞

数据库

Linux下新建Mysql数据库,看不到mysql库和user用户表,权限问题解决

Linux下新建的mysql数据,进入mysql的时候,看不到mysql库,一般都是因为当前用户权限不足造成的。下面记录下自己的解决办法。 系统:CentOS 5.6、Mysql Server version: 5.1.71 解决方法 登录mysql后,因权限不足,看不到mysql库。 [root@hadoop001 ~]# mysql -uroot We……继续阅读 »

往事如烟 7年前 (2018-07-22) 3115浏览 0评论 0个赞