码迷,mamicode.com
首页 >  
搜索关键字:ERROR2002    ( 28个结果
记一次MySQL启动故障 Can't connect to local MySQL server through socket
记一次MySQL启动故障Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘故障现象:[root@CentOS~]#mysql-uroot-p Enterpassword: ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2) [root@CentOS~]# [root..
分类:数据库   时间:2017-03-21 11:30:47    阅读次数:257
mysql基础篇
mysql操作一、连接数据库mysql-uuser-p例:mysql-uroot-p常见错误如下:ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/tmp/mysql.sock‘(2),itmeansthattheMySQLserverdaemon(Unix)orservice(Windows)isnotrunning.退出连接:QUIT或者Ctrl+D二、查看数据库,..
分类:数据库   时间:2017-02-16 12:04:53    阅读次数:252
mysql连接报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
安装完mysql连接报错:[root@localhostapp]#mysql ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2) [root@localhostapp]#mysql-uroot-p Enterpassword: ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/..
分类:数据库   时间:2016-10-12 23:41:56    阅读次数:188
Can’t connect to local MySQL server through socket 解决办法
启动mysql时报错:ERROR2002(HY000):Can’tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock’(2)1、先查看/etc/rc.d/init.d/mysqldstatus看看mysql是否已经启动.另外看看是不是权限问题.2、确定你的mysql.sock是不是在那个位置,查询/etc/my.cnf中socket=..
分类:数据库   时间:2016-07-21 06:34:35    阅读次数:272
ERROR 2002 (HY000): Can't connect to local MySQL解决方法
启动mysql报错:ERROR2002(HY000):Can’tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock’(2)1、先查看/etc/rc.d/init.d/mysqldstatus看看mysql是否已经启动.另外看看是不是权限问题.2、确定你的mysql.sock是不是在那个位置,mysql-u你的mysql用户名-p-S/..
分类:数据库   时间:2016-07-12 00:11:42    阅读次数:249
bugfree使用xampp安装在linux下时如何进入mysql
很多学员在安装缺陷跟踪工具时,安装在了linux环境下,借助了Xampp集成环境,但是如果想进入mysql使用普通的命令:mysql-uroot-p会提示如下错误:ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2)那么该如何进入mysql?请按照以下..
分类:数据库   时间:2016-07-06 21:57:37    阅读次数:213
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
在安装好了MySQL之后,使用了新的配置文件后,MySQL服务器可以成功启动,但在登陆的时候出现了ERROR2002(HY000): Can‘tconnecttolocalMySQLserverthrough socket,即无法通过socket连接到mysql服务器,同时提供了socket文件的位置。下面是这个问题的描述与解决办法。一、故障现..
分类:数据库   时间:2016-06-24 13:03:29    阅读次数:246
解决Linux MySQL报错ERROR 2002
在Linux安装MySQL有时候会出现[mysql]ERROR2002(HY000):Can‘tconnecttolocal MySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2) 这样的错误,具体解决办法如下:[root@www~]#rm-rf/var/lib/mysql/*[root@www~]#rm/var/lock/subsys/mysqldrm:removeregularemptyfile`/var..
分类:数据库   时间:2016-06-05 01:22:31    阅读次数:398
yum安装mysqsl登陆失败
登陆mysql时提示错误信息ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2)解决办法:首先ls查看是否存在该文件;关键是找到socket文件,我的在/tmp下拷贝配置文件cp/usr/share/mysql/my-large.cnf/etc/my.cnf修改配置文件socket=/..
分类:其他好文   时间:2016-04-19 10:21:13    阅读次数:147
yum安装mysql步骤及报错ERROR 1045 (28000)
1.centos系统中使用yum工具安装mysql.[root@localhost~]#yuminstall-ymysql2.yuminstall-ymysql后,启动mysql报错如下:ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/var/lib/mysql/mysql.sock‘(2)解决办法:缺少组件,安装mysql-server包。3.安装组件mysql..
分类:数据库   时间:2016-03-04 14:42:34    阅读次数:178
28条   上一页 1 2 3 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!