柳暗花明笔记

    解决了一个ubuntu 14.04下安装lnmp mysql报错的问题 Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!

    所属分类:[ linux&mysql ] 猫哲学家 发表于:2014-08-29 19:10 浏览:1133

    第一层错误:

    connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

    这个是logs报错,是在/usr/local/mysql/var/Lanmiz-PC.err

    Fatal error: Can't change to run as user 'mysql' ;  Please check that the user exists!

    其实解决办法很简单:

    在/ext/my.cnf的

    [mysqld] 下加

    user = root

     

    标签: mysql  ubuntu 
    上一编文章 有一种陷阱,叫安逸 下一编文章 linux查看磁盘或目录/文件大小的基本命令
    最近文章
    发表评论