![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
棠宁
这个作者很懒,什么都没留下…
展开
-
mysql启动文件my.cnf
启动mysql后,不清楚当前调用的my.cnf配置文件是哪个?使用 mysql --help|grep ‘my.cnf’ 命令查看,会得到以下结果mysql调用my.cnf的顺序为/etc/my.cnf——~/.my.cnf。只要在/etc中存在my.cnf,则优先调用此配置文件,如果没有将按照顺序依次查找。如果/etc下没有my.cnf,可以添加该文件,重启mysql后,会以该文件作为mysql的启动配置文件。...原创 2020-05-16 18:24:07 · 2232 阅读 · 0 评论 -
mysql left join 无法显示左表的所有数据
一、取消where条件SELECT T.xx, T1.xx, ... FROM xxx T LEFT JOIN xxx T1 ON T.ID = T1.ID AND T.xx = xx AND T1.xx = xx二、使用group by参考:https://blog.csdn.net/qq814965130/article/de...原创 2020-04-15 16:43:14 · 3314 阅读 · 0 评论 -
MySQL登录提示:host *.*.*.* is blocked because of many connection errors
登录myslq提示 host ... is blocked because of many connection errors;unblock with ‘mysqladmin flush-hosts’原因:同一IP在短时间内产生太多中断的数据库连接二导致的阻塞;解决方法:1、修改允许的max_connect_errors数量show variables like ‘max_connec...原创 2020-02-05 11:33:29 · 261 阅读 · 0 评论 -
mysql登陆提示ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
当忘记mysql密码时,可以使用safe模式进入修改密码后,退出safe模式,然后用正常模式启动1.关闭mysql2.进入mysql安装目录,以safe模式启动mysql./bin/mysqld_safe --skip-grant-tables3.使用无密码登陆,修改密码./bin/mysql -urootuse mysqlupdate user set authentication...原创 2019-12-03 16:51:31 · 111 阅读 · 0 评论 -
mysql登录提示Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
安装完mysql后,使用mysql -uroot -p命令登录时提示:ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)安装网上要去对一下内容进行检查1./etc/my.cnf配置sock文件路径socket=/var/lib/mysql/mysql.soc...原创 2019-03-05 09:36:28 · 770 阅读 · 0 评论 -
mysql使用root登录提示:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
使用mysql登录提示:[root@localhost etc]# mysql -uroot -pEnter password:ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)根据网上要求1.修改/etc/my.cnf,添加skip-grant-tables2.重启my...原创 2019-03-05 09:58:56 · 6744 阅读 · 0 评论